mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-04 08:24:42 +01:00
regression tests: add stacked attr/current access by default
Signed-off-by: Steve Beattie <steve.beattie@canonical.com>
This commit is contained in:
parent
fb773fec36
commit
6e66065877
1 changed files with 2 additions and 0 deletions
|
@ -97,6 +97,7 @@ sub gen_default_rules() {
|
|||
|
||||
# give every profile access to change_hat
|
||||
gen_file("/proc/*/attr/current:w");
|
||||
gen_file("/proc/*/attr/apparmor/current:w");
|
||||
|
||||
# give every profile access to /dev/urandom (propolice, etc.)
|
||||
gen_file("/dev/urandom:r");
|
||||
|
@ -363,6 +364,7 @@ sub gen_hat($) {
|
|||
$hat = $rules[1];
|
||||
# give every profile/hat access to change_hat
|
||||
@{$output_rules{$hat}} = ( " /proc/*/attr/current w,\n",);
|
||||
push(@{$output_rules{$hat}}, " /proc/*/attr/apparmor/current w,\n");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue