Skip to contentSkip to conversation

Docs: Update LSM/apparmor.rst

PATCH Superseded Siddharth Menon 2 participants 2 messages Jul 27, 2024 – Jul 29, 2024

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

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
index 6cf81bbd7ce8..f324d750468a 100644
@@ -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
maintainer
#1 lore raw

Hi, 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.rst

Update AppArmor documentation after deprication of CONFIG_DEFAULT_SECURITY to enable and configuring AppArmor.

Please try to stick to the 80-column limit whenever you can. Also, "deprecation".

Quoted 12 lines
---
 Documentation/admin-guide/LSM/apparmor.rst | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
Documentation/admin-guide/LSM/apparmor.rst +0 -0
index 6cf81bbd7ce8..f324d750468a 100644

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