diff --git a/profiles/apparmor/profiles/extras/bwrap-userns-restrict b/profiles/apparmor/profiles/extras/bwrap-userns-restrict index 5088430db..286131626 100644 --- a/profiles/apparmor/profiles/extras/bwrap-userns-restrict +++ b/profiles/apparmor/profiles/extras/bwrap-userns-restrict @@ -17,7 +17,7 @@ abi , include -profile bwrap /usr/bin/bwrap flags=(attach_disconnected) { +profile bwrap /usr/bin/bwrap flags=(attach_disconnected,mediate_deleted) { allow capability, # not allow all, to allow for pix stack # sadly we have to allow m every where to allow children to work under @@ -42,7 +42,7 @@ profile bwrap /usr/bin/bwrap flags=(attach_disconnected) { include if exists } -profile unpriv_bwrap flags=(attach_disconnected) { +profile unpriv_bwrap flags=(attach_disconnected,mediate_deleted) { # not allow all, to allow for pix stack allow file rwlkm /{**,}, allow network,