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

Remove the old unused ptrace code that snuck in years ago.

It was never used, never supported, and we are doing it differently now.

Signed-off-by: John Johansen <john.johansen@canonical.com>
Acked-by: Seth Arnold <seth.arnold@canonical.com>
This commit is contained in:
John Johansen
2014-03-12 05:02:32 -07:00
parent 61fb0e9cea
commit fa1a5f8a61
5 changed files with 6 additions and 53 deletions

View File

@@ -120,8 +120,7 @@ static void process_entries(const void *nodep, VISIT value, int __unused level)
len = strlen((*t)->from);
list_for_each(target_list, entry) {
if (entry->mode & (AA_SHARED_PERMS & AA_PTRACE_PERMS) ||
entry->alias_ignore)
if ((entry->mode & AA_SHARED_PERMS) || entry->alias_ignore)
continue;
if (entry->name && strncmp((*t)->from, entry->name, len) == 0) {
char *n = do_alias(*t, entry->name);