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]

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
Hélène
Posts: 45
Joined: 2016-10-06 10:48
Has thanked: 2 times

Enable Apparmor LSM [RESOLVED]

#1 Post by Hélène »

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. :D
Last edited by Hélène on 2017-06-30 14:55, edited 1 time in total.

pcalvert
Posts: 1939
Joined: 2006-04-21 11:19
Location: Sol Sector
Has thanked: 1 time
Been thanked: 2 times

Re: Enable Apparmor LSM

#2 Post by pcalvert »

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:

Code: Select all

grep apparmor /boot/grub/grub.cfg
Does that command find instances of "apparmor" in grub.cfg?

Phil
Freespoke is a new search engine that respects user privacy and does not engage in censorship.

kopper
Posts: 139
Joined: 2016-09-30 14:30
Been thanked: 1 time

Re: Enable Apparmor LSM

#3 Post by kopper »

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
Debian 12 Stable with sway
Secure your stuff: Securing Debian Manual
Don't break your stuff: Source List Management DontBreakDebian

Hélène
Posts: 45
Joined: 2016-10-06 10:48
Has thanked: 2 times

Re: Enable Apparmor LSM

#4 Post by Hélène »

Hi,

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
But it didn't work. During the reboot, failed to start LSB … was written.
So I added this line :

Code: Select all

GRUB_CMDLINE_LINUX="apparmor=1 security=apparmor"
And now it's working.

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. :D

Hélène
Posts: 45
Joined: 2016-10-06 10:48
Has thanked: 2 times

Re: Enable Apparmor LSM

#5 Post by Hélène »

Hi,

No more answer.
So I think it's resolved. :D

Bye

Post Reply