2
0
mirror of https://gitlab.com/apparmor/apparmor synced 2025-08-31 22:35:35 +00:00

[8/9] Add support for handling dbus rules everywhere

"Everywhere" means aa-mergeprof and aa-cleanprof. In theory also
aa-logprof, but that needs some code that parses dbus log events ;-)

Also add some dbus rules to the aa-cleanprof test profiles to ensure
superfluous dbus rules get deleted.


Acked-by: Seth Arnold <seth.arnold@canonical.com>
This commit is contained in:
Christian Boltz
2016-05-23 23:21:13 +02:00
parent c32e4d8b84
commit c91fd7688a
3 changed files with 6 additions and 1 deletions

View File

@@ -62,7 +62,7 @@ from apparmor.rule.rlimit import RlimitRuleset, RlimitRule
from apparmor.rule.signal import SignalRuleset, SignalRule
from apparmor.rule import parse_modifiers, quote_if_needed
ruletypes = ['capability', 'change_profile', 'network', 'ptrace', 'rlimit', 'signal']
ruletypes = ['capability', 'change_profile', 'dbus', 'network', 'ptrace', 'rlimit', 'signal']
from apparmor.yasti import SendDataToYast, GetDataFromYast, shutdown_yast

View File

@@ -22,6 +22,9 @@
ptrace tracedby,
unix (receive) type=dgram,
dbus send bus=session,
dbus send bus=session peer=(label=foo),
set rlimit nofile <= 256,
set rlimit nofile <= 64,

View File

@@ -12,6 +12,8 @@
network stream,
dbus send bus=session,
signal set=(abrt alrm bus chld fpe hup ill int kill pipe quit segv stkflt term trap usr1 usr2),
ptrace tracedby,