mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-30 22:05:27 +00:00
drop most of apparmor_kill()
AppArmor can't be built as a kernel module since years, which also means it's impossible to unload it.
This commit is contained in:
@@ -359,22 +359,13 @@ apparmor_stop() {
|
||||
}
|
||||
|
||||
apparmor_kill() {
|
||||
aa_log_daemon_msg "Unloading AppArmor modules "
|
||||
if ! is_apparmor_loaded ; then
|
||||
aa_log_failure_msg "AppArmor module is not loaded"
|
||||
return 1
|
||||
fi
|
||||
|
||||
if is_apparmor_present ; then
|
||||
MODULE=apparmor
|
||||
else
|
||||
aa_log_failure_msg "AppArmor is builtin"
|
||||
return 1
|
||||
fi
|
||||
/sbin/modprobe -qr $MODULE
|
||||
rc=$?
|
||||
aa_log_end_msg $rc
|
||||
return $rc
|
||||
aa_log_failure_msg "apparmor_kill() is no longer supported because AppArmor can't be built as a module"
|
||||
return 1
|
||||
}
|
||||
|
||||
__apparmor_restart() {
|
||||
|
Reference in New Issue
Block a user