Hello,
I found two different ways to enable Apparmor LSM. I've read that I needed to add a line into the file etc/default/grub. Which is the right one?
GRUB_CMDLINE_LINUX=apparmor="1 security=apparmor"
or
GRUB_CMDLINE_LINUX_DEFAULT="quiet apparmor=1 security=apparmor"
Thanks in advance.
Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230
Enable Apparmor LSM [RESOLVED]
-
- Posts: 1939
- Joined: 2006-04-21 11:19
- Location: Sol Sector
- Has thanked: 1 time
- Been thanked: 2 times
Re: Enable Apparmor LSM
Hi Hélène,
All I did was install it. At least in my case it appears that it was enabled during installation.
Try this command:
Does that command find instances of "apparmor" in grub.cfg?
Phil
All I did was install it. At least in my case it appears that it was enabled during installation.
Try this command:
Code: Select all
grep apparmor /boot/grub/grub.cfg
Phil
Freespoke is a new search engine that respects user privacy and does not engage in censorship.
Re: Enable Apparmor LSM
Neither of the ones you've mentioned. You have misplaced quotation mark in your first alternative. Your second alternative MAY work, but... I'm running Stretch and my /etc/default/grub lists following lines (among others):
GRUB_CMDLINE_LINUX_DEFAULT="quiet"
GRUB_CMDLINE_LINUX="apparmor=1 security=apparmor"
I suggest using process described in Debian Wiki: https://wiki.debian.org/AppArmor/HowToUse
GRUB_CMDLINE_LINUX_DEFAULT="quiet"
GRUB_CMDLINE_LINUX="apparmor=1 security=apparmor"
I suggest using process described in Debian Wiki: https://wiki.debian.org/AppArmor/HowToUse
Debian 12 Stable with sway
Secure your stuff: Securing Debian Manual
Don't break your stuff: Source List Management DontBreakDebian
Secure your stuff: Securing Debian Manual
Don't break your stuff: Source List Management DontBreakDebian
Re: Enable Apparmor LSM
Hi,
Thanks very much for your answers.
I tried this :
But it didn't work. During the reboot, failed to start LSB … was written.
So I added this line :
And now it's working.
What do you think ? Is that right ?
Thanks in advance.
Thanks very much for your answers.
I tried this :
Code: Select all
sudo perl -pi -e 's,GRUB_CMDLINE_LINUX="(.*)"$,GRUB_CMDLINE_LINUX="$1 apparmor=1 security=apparmor",' /etc/default/grub
$ sudo update-grub
$ sudo reboot
So I added this line :
Code: Select all
GRUB_CMDLINE_LINUX="apparmor=1 security=apparmor"
Code: Select all
grep apparmor /boot/grub/grub.cfg
linux /boot/vmlinuz-3.16.0-4-amd64 root=UUID=b9e336b2-66c8-4bb9-b883-20a90c358832 ro apparmor=1 security=apparmor quiet i8042.noaux
linux /boot/vmlinuz-3.16.0-4-amd64 root=UUID=b9e336b2-66c8-4bb9-b883-20a90c358832 ro apparmor=1 security=apparmor quiet i8042.noaux
linux /boot/vmlinuz-3.16.0-4-amd64 root=UUID=b9e336b2-66c8-4bb9-b883-20a90c358832 ro single apparmor=1 security=apparmor
What do you think ? Is that right ?
Thanks in advance.