~ubuntu-branches/ubuntu/trusty/apparmor/trusty-updates

« back to all changes in this revision

Viewing changes to parser/parser_regex.c

  • Committer: Package Import Robot
  • Author(s): Jamie Strandboge
  • Date: 2014-04-04 01:07:24 UTC
  • Revision ID: package-import@ubuntu.com-20140404010724-n7pyk2cd5er3gi6m
Tags: 2.8.95~2430-0ubuntu5
debian/control: add versioned Breaks to apparmor for lxc, libvirt-bin,
lightdm and apparmor-easyprof-ubuntu

Show diffs side-by-side

added added

removed removed

Lines of Context:
43
43
        e_parse_error,
44
44
};
45
45
 
46
 
/* match any char except \000 0 or more times */
47
 
const char *default_match_pattern = "[^\\000]*";
48
46
 
49
47
/* Filters out multiple slashes (except if the first two are slashes,
50
48
 * that's a distinct namespace in linux) and trailing slashes.
675
673
static const char *mediates_file = CLASS_STR(AA_CLASS_FILE);
676
674
static const char *mediates_mount = CLASS_STR(AA_CLASS_MOUNT);
677
675
static const char *mediates_dbus =  CLASS_STR(AA_CLASS_DBUS);
 
676
static const char *mediates_signal =  CLASS_STR(AA_CLASS_SIGNAL);
 
677
static const char *mediates_ptrace =  CLASS_STR(AA_CLASS_PTRACE);
678
678
 
679
679
int process_profile_policydb(Profile *prof)
680
680
{
701
701
        if (kernel_supports_dbus &&
702
702
            !prof->policy.rules->add_rule(mediates_dbus, 0, AA_MAY_READ, 0, dfaflags))
703
703
                goto out;
 
704
        if (kernel_supports_signal &&
 
705
            !prof->policy.rules->add_rule(mediates_signal, 0, AA_MAY_READ, 0, dfaflags))
 
706
                goto out;
 
707
        if (kernel_supports_ptrace &&
 
708
            !prof->policy.rules->add_rule(mediates_ptrace, 0, AA_MAY_READ, 0, dfaflags))
 
709
                goto out;
 
710
 
704
711
        if (prof->policy.rules->rule_count > 0) {
705
712
                prof->policy.dfa = prof->policy.rules->create_dfa(&prof->policy.size, dfaflags);
706
713
                delete prof->policy.rules;