mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-04 08:24:42 +01:00
Merge Fix aa-remove-unknown for 'unconfined' profiles
Without this patch, aa-remove-unknown uses 'profile_name (unconfined)' when trying to unload unconfined profiles, which fails for obvious reasons with (picking a random example) Removing 'busybox (unconfined)' /sbin/aa-remove-unknown: line 112: echo: write error: No such file or directory I propose this patch for 4.0 and master. MR: https://gitlab.com/apparmor/apparmor/-/merge_requests/1240 Approved-by: Georgia Garcia <georgia.garcia@canonical.com> Merged-by: Georgia Garcia <georgia.garcia@canonical.com> (cherry picked from commitcf5be7d356
)cabd88a9
Fix aa-remove-unknown for 'unconfined' profiles Co-authored-by: Georgia Garcia <georgia.garcia@canonical.com>
This commit is contained in:
parent
fcd02fb69b
commit
9ec5134322
1 changed files with 1 additions and 1 deletions
|
@ -89,7 +89,7 @@ LOADED_PROFILES=$("$PARSER" -N $PROFILE_DIRS) || {
|
|||
echo "$LOADED_PROFILES" | awk '
|
||||
BEGIN {
|
||||
while (getline < "'${PROFILES}'" ) {
|
||||
str = sub(/ \((enforce|complain)\)$/, "", $0);
|
||||
str = sub(/ \((enforce|complain|unconfined)\)$/, "", $0);
|
||||
if (match($0, /^libvirt-[0-9a-f\-]+$/) == 0)
|
||||
arr[$str] = $str
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue