mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-31 06:16:03 +00:00
Add the ability to specify ptrace rules
ptrace rules currently take the form of ptrace [<ptrace_perms>] [<peer_profile_name>], ptrace_perm := read|trace|readby|tracedby ptrace_perms := ptrace_perm | '(' ptrace_perm+ ')' After having used the cross check (permission needed in both profiles) I am not sure it is correct for ptrace. Signed-off-by: John Johansen <john.johansen@canonical.com> Acked-by: Seth Arnold <seth.arnold@canonical.com>
This commit is contained in:
@@ -697,6 +697,8 @@ static void set_supported_features(void) {
|
||||
kernel_supports_dbus = 1;
|
||||
if (strstr(features_string, "signal"))
|
||||
kernel_supports_signal = 1;
|
||||
if (strstr(features_string, "ptrace {"))
|
||||
kernel_supports_ptrace = 1;
|
||||
if (strstr(features_string, "diff_encode"))
|
||||
kernel_supports_diff_encode = 1;
|
||||
else if (dfaflags & DFA_CONTROL_DIFF_ENCODE)
|
||||
|
Reference in New Issue
Block a user