mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-31 06:16:03 +00:00
parser: int mode to perms
Move from using and int for permissions bit mask to a perms_t type. Also move any perms mask that uses the name mode to perms to avoid confusing it with other uses of mode. Signed-off-by: John Johansen <john.johansen@canonical.com>
This commit is contained in:
@@ -120,7 +120,7 @@ static void process_entries(const void *nodep, VISIT value, int level unused)
|
||||
len = strlen((*t)->from);
|
||||
|
||||
list_for_each(target_list, entry) {
|
||||
if ((entry->mode & AA_SHARED_PERMS) || entry->alias_ignore)
|
||||
if ((entry->perms & AA_SHARED_PERMS) || entry->alias_ignore)
|
||||
continue;
|
||||
if (entry->name && strncmp((*t)->from, entry->name, len) == 0) {
|
||||
char *n = do_alias(*t, entry->name);
|
||||
|
Reference in New Issue
Block a user