mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-31 06:16:03 +00:00
Update x conflict failure message
Output a better failure message when a conflict of x permissions cause policy compilation to fail. We don't have enough information available to output which rules during the dfa compilation so just improve the message to let people know that it means there are conflicting x modifiers in the rules. Signed-off-by: John Johansen <john.johansen@canonical.com>
This commit is contained in:
@@ -108,8 +108,9 @@ static int process_file_entries(struct codomain *cod)
|
||||
if (file_comp(&cur, &next) == 0) {
|
||||
/* check for merged x consistency */
|
||||
if (!is_merged_x_consistent(cur->mode, next->mode)) {
|
||||
PERROR(_("profile %s: has merged rule %s with multiple x modifiers\n"),
|
||||
cod->name, cur->name);
|
||||
PERROR(_("profile %s: has merged rule %s with "
|
||||
"conflicting x modifiers\n",
|
||||
cod->name, cur->name);
|
||||
return 0;
|
||||
}
|
||||
//if (next->audit)
|
||||
|
Reference in New Issue
Block a user