The officially official Devuan Forum!

You are not logged in.

#1 2018-08-06 22:11:43

scutterflux
Member
Registered: 2018-07-03
Posts: 7  

AppArmor not available as kernel LSM..

well apparmor failed in boot after kernel update to 4.9.0-7-amd64, this is output when trying to start:

$ sudo /etc/init.d/apparmor start
/etc/init.d/apparmor: 130: /etc/init.d/apparmor: systemd-detect-virt: not found
[....] Starting AppArmor profiles:[info] AppArmor not available as kernel LSM..
 failed!

I'm looking for a solution, and any help.

Last edited by scutterflux (2018-08-06 23:22:14)

Offline

#2 2018-08-06 23:21:12

scutterflux
Member
Registered: 2018-07-03
Posts: 7  

Re: AppArmor not available as kernel LSM..

Well this is the solution:

$ sudo mkdir -p /etc/default/grub.d
$ echo 'GRUB_CMDLINE_LINUX_DEFAULT="$GRUB_CMDLINE_LINUX_DEFAULT apparmor=1 security=apparmor"' \
  | sudo tee /etc/default/grub.d/apparmor.cfg
$ sudo update-grub
$ sudo reboot

Offline

#3 2018-08-08 05:32:52

pekman
Member
From: /usr/bin/pekman
Registered: 2017-05-11
Posts: 58  

Re: AppArmor not available as kernel LSM..

@scutterflux Thanks for sharing solution

Offline

Board footer