Jump to content
Sign in to follow this  
wahaha

how to enable apparmor

Recommended Posts

I am looking to enable apparmor in my tinker board 2s, and according to the documentation, i should include these lines into the kernel boot.

apparmor=1
security=apparmor
lsm=lockdown,yama,apparmor

Would like to check where do i need to go to update the kernel parameters? I have tried loading it in /boot/cmdline.txt and separately in /boot/config.txt, sudo reboot the tinker board, but systemctl status apparmor still shows apparmor failing to start with: Condition check resulted in Load AppArmor profiles being skipped.

how should i go about with this please?

Share this post


Link to post
Share on other sites

hello @wahaha

 

please use the attached boot.img and try if it works:

https://www.asuswebstorage.com/navigate/a/#/s/B098644E422E494D8506E5FA25FD6C764

execute the commands below to update:  

sudo dd if=boot.img of=/dev/mmcblk0p4 status=progress && sync

sudo reboot

please add this line in /boot/cmdline.txt to enable apparmor: 

apparmor=1 security=apparmor

the board has to be rebooted after modification: 

sudo reboot

 

Share this post


Link to post
Share on other sites

@tooz

Thanks for this, it works with this boot image now.

Not sure if you are able to explain a bit further as to what the changes took place in the boot image?

 

 

Edited by wahaha

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...