
Stopped
The AppArmor module is loaded into the kernel, but no policies are enforced.
Detect the state of the AppArmor module by inspecting
/sys/kernel/security/
apparmor/profiles
. If
cat
/sys/kernel/security/apparmor/profiles
reports a list of profiles,
AppArmor is running. If it is empty and returns nothing, AppArmor is stopped. If the
file does not exist, AppArmor is unloaded.
Manage AppArmor through the script
rcapparmor
, which can perform the following
operations:
rcapparmor start
Behavior depends on the AppArmor module state. If it is unloaded,
start
loads
the module and starts it, putting it in the running state. If it is stopped,
start
causes the module to rescan the AppArmor profiles usually found in
/etc/
apparmor.d
and puts the module in the running state. If the module is already
running,
start
reports a warning and takes no action.
rcapparmor stop
Stops the AppArmor module if it is running by removing all profiles from kernel
memory, effectively disabling all access controls, and putting the module into the
stopped state. If the AppArmor module is unloaded or already stopped,
stop
tries
to unload the profiles again, but nothing happens.
rcapparmor restart
Causes the AppArmor module to rescan the profiles in
/etc/apparmor.d
without unconfining running processes. Freshly created profiles are enforced and
recently deleted ones are removed from the
/etc/apparmor.d
directory.
rcapparmor kill
Unconditionally removes the AppArmor module from the kernel. This is unsafe,
because unloading modules from the Linux kernel is unsafe. This command is
provided only for debugging and emergencies when the module might need to be
removed.
288
Security Guide
Содержание LINUX ENTERPRISE DESKTOP 11
Страница 1: ...SUSE Linux Enterprise Server www novell com 11 March 17 2009 Security Guide...
Страница 9: ...32 7 Managing Audit Event Records Using Keys 433 33 Useful Resources 435...
Страница 10: ......
Страница 29: ...Part I Authentication...
Страница 30: ......
Страница 55: ...Figure 4 2 YaST LDAP Server Configuration LDAP A Directory Service 41...
Страница 126: ......
Страница 127: ...Part II Local Security...
Страница 128: ......
Страница 158: ......
Страница 173: ...Part III Network Security...
Страница 174: ......
Страница 194: ......
Страница 197: ...Figure 16 2 Scenario 2 Figure 16 3 Scenario 3 Configuring VPN Server 183...
Страница 210: ......
Страница 228: ......
Страница 229: ...Part IV Confining Privileges with Novell AppArmor...
Страница 230: ......
Страница 274: ......
Страница 300: ......
Страница 328: ......
Страница 340: ......
Страница 342: ......
Страница 386: ......
Страница 387: ...Part V The Linux Audit Framework...
Страница 388: ......