mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-30 22:05:27 +00:00
Add support for rlimit and signal rules to aa-mergeprof
Acked-by: Kshitij Gupta <kgupta8592@gmail.com>
This commit is contained in:
@@ -631,7 +631,7 @@ class Merge(object):
|
|||||||
elif re.search('\d', ans):
|
elif re.search('\d', ans):
|
||||||
default_option = ans
|
default_option = ans
|
||||||
|
|
||||||
for ruletype in ['capability', 'network', 'change_profile']:
|
for ruletype in ['capability', 'change_profile', 'network', 'rlimit', 'signal']:
|
||||||
if other.aa[profile][hat].get(ruletype, False): # needed until we have proper profile initialization
|
if other.aa[profile][hat].get(ruletype, False): # needed until we have proper profile initialization
|
||||||
for rule_obj in other.aa[profile][hat][ruletype].rules:
|
for rule_obj in other.aa[profile][hat][ruletype].rules:
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user