mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-31 06:16:03 +00:00
fix
- rc.apparmor.functions were not correctly removing profiles on replace and reload, also convert to using the module interface directly bypassing the parser. - fix cx -> named transitions - fix apparmor_parser -N so that it emits hats as profiles under new kernel modules. This is the correct behavior as hats are promoted to profiles.
This commit is contained in:
@@ -426,7 +426,7 @@ __apparmor_restart() {
|
||||
MODULE_PLIST=$(mktemp ${APPARMOR_TMPDIR}/tmp.XXXXXXXX)
|
||||
sed -e "s/ (\(enforce\|complain\))$//" "$SFS_MOUNTPOINT/profiles" | sort >"$MODULE_PLIST"
|
||||
sort "$PNAMES_LIST" | comm -2 -3 "$MODULE_PLIST" - | while read profile ; do
|
||||
echo "\"$profile\" {}" | $PARSER -R >/dev/null
|
||||
echo -n "$profile" > "$SFS_MOUNTPOINT/.remove"
|
||||
done
|
||||
rm "$MODULE_PLIST"
|
||||
rm "$PNAMES_LIST"
|
||||
|
Reference in New Issue
Block a user