mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-09-04 16:25:10 +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:
@@ -89,12 +89,12 @@ static int process_file_entries(Profile *prof)
|
||||
}
|
||||
|
||||
/* check for merged x consistency */
|
||||
if (!is_merged_x_consistent(cur->mode, next->mode)) {
|
||||
if (!is_merged_x_consistent(cur->perms, next->perms)) {
|
||||
PERROR(_("profile %s: has merged rule %s with conflicting x modifiers\n"),
|
||||
prof->name, cur->name);
|
||||
return -1;
|
||||
}
|
||||
cur->mode |= next->mode;
|
||||
cur->perms |= next->perms;
|
||||
cur->audit |= next->audit;
|
||||
cur->next = next->next;
|
||||
|
||||
|
Reference in New Issue
Block a user