Re: Apparmor on SheevaPlug
* Christoph Pleger <Christoph.Pleger@cs.tu-dortmund.de> [2016-01-04 10:59]:
> I already posted my question on debian-users@lists.debian.org, but
> probably here is a better place:
>
> I want to enable apparmor on my SheevaPlug device. This requires the
> kernel command line parameters "apparmor=1 security=apparmor" to be set.
> But I do not know how to set kernel command line parameters for the uboot
> boot loader. Apparently, the way how to do that even differs for the
> various devices supported by uboot. Can anybody help me?
It depends on how you've configured u-boot. Connect to u-boot and run:
printenv bootcmd
If it looks like this:
bootcmd=setenv bootargs ${bootargs_console}; run bootcmd_usb; bootm 0x00800000 0x01100000
(bootcmd_usb might be bootcmd_mmc or bootcmd_sata)
You can use:
setenv bootcmd 'setenv bootargs ${bootargs_console} apparmor=1 security=apparmor; run bootcmd_usb; bootm 0x00800000 0x01100000'
saveenv
or you could introduce a new variable:
setenv bootargs_security 'apparmor=1 security=apparmor'
setenv bootcmd 'setenv bootargs ${bootargs_console} ${bootargs_security}; run bootcmd_usb; bootm 0x00800000 0x01100000'
saveenv
If you looks different, please post the output of "printenv" (not
"printenv bootcmd", just "printenv") here.
--
Martin Michlmayr
http://www.cyrius.com/
Reply to: