5 or 6 months ago, while reading the contents of Manjaro’s PKGBUILD for systemd, I found that it had the following line in meson options: -Dapparmor=false
I checked yesterday and I see it’s still there.
Could someone please explain why? I’m just curious.
PS: I tried to build it with true, installed it, everything seems to work fine.
I reinstalled Manjaro yesterday, because of some problem, and i noticed it had: apparmor=1 security=apparmor as kernel parameters in the bootloader.
So i think it is used already using these kernel options…
No this is not correct. It is set to automatic, which means it will be enabled if the apparmor library is found and disabled if the library is not found. Since apparmor is not installed in the default Arch build environment it is automatically set to disabled.
I also think this is the reason it is disabled in Manjaro. Because otherwise every Manajro system would need apparmor installed. It would not be optional anymore.
If it is enabled, a Manjaro system will not boot without the apparmor library.
It depends what you do. Smack does not require any libraries, it just needs to be enabled in the Kernel. And even if it is not enabled in the Kernel, systemd can be build with support for it.
Even if a feature is enabled does not mean it will be used. But if a enabled feature requires a third party library, it needs to be available.
For example a systemctl --version form a rhel8. And rhel can’t boot without selinux, it does not need to be enabled or used. But the library need to be available. Also Smack is enabled.