Docs: Update LSM/apparmor.rst
Subsystems (2)
PATCH 1/1 Docs: Update LSM/apparmor.rst
Docs: Update LSM/apparmor.rst
Update AppArmor documentation after deprication of CONFIG_DEFAULT_SECURITY to enable and configuring AppArmor.
--- Documentation/admin-guide/LSM/apparmor.rst | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
Documentation/admin-guide/LSM/apparmor.rst +4 -2
@@ -18,8 +18,10 @@ set ``CONFIG_SECURITY_APPARMOR=y`` If AppArmor should be selected as the default security module then set:: - CONFIG_DEFAULT_SECURITY="apparmor" - CONFIG_SECURITY_APPARMOR_BOOTPARAM_VALUE=1 + CONFIG_DEFAULT_SECURITY_APPARMOR=y + +Since kernel 5.0, `CONFIG_SECURITY_APPARMOR_BOOTPARAM_VALUE` is no longer used. +Instead, the `CONFIG_LSM` parameter manages the order and selection of LSMs. Build the kernel
Signature · 1 line
2.39.2
Jonathan Corbet
maintainerHi, Siddharth, thanks for working to make our documentation better!
I do have a few comments, needless to say...:)
First is that you always need to send a patch to the appropriate maintainers; scripts/get_maintainer.pl will help you there.
Quoted 3 lines · Siddharth Menon
Docs: Update
LSM/apparmor.rstUpdate AppArmor documentation after deprication of
CONFIG_DEFAULT_SECURITYto enable and configuring AppArmor.
Please try to stick to the 80-column limit whenever you can. Also, "deprecation".
Quoted 12 lines
Signed-off-by Siddharth Menon <[email protected]>Signed-off-by Siddharth Menon <[email protected]>--- Documentation/admin-guide/LSM/apparmor.rst | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)Documentation/admin-guide/LSM/apparmor.rst +0
-0
Documentation/admin-guide/LSM/apparmor.rst set ``CONFIG_SECURITY_APPARMOR=y`` · line 24
Quoted 9 lines
Documentation/admin-guide/LSM/apparmor.rst +4
-2@@ -18,8 +18,10 @@ set ``CONFIG_SECURITY_APPARMOR=y`` If AppArmor should be selected as the default security module then set:: - CONFIG_DEFAULT_SECURITY="apparmor" - CONFIG_SECURITY_APPARMOR_BOOTPARAM_VALUE=1 + CONFIG_DEFAULT_SECURITY_APPARMOR=y + +Since kernel 5.0, `CONFIG_SECURITY_APPARMOR_BOOTPARAM_VALUE` is no longer used. +Instead, the `CONFIG_LSM` parameter manages the order and selection of LSMs.
The documentation covers the current state of the kernel, so we do not normally put historical information like that. Best to just describe how things work now.
Thanks,
jon