Skip to contentSkip to conversation

apparmor setup #yocto

DISCUSSION [email protected] 2 participants 2 messages Dec 19, 2019

lore
Share & tools
lore
#0 lore raw

Hi,

i'm new here and not really shure this is the right place for this issue.

I try to get apparmor working using yocto. I tried using thud and zeus with the same result on apparmor_status: apparmor module is not loaded Checking the kernel flags manually with bitbake -c menuconfig virtual/kernel shows that none of the relevant flags like CONFIG_SECURITY_APPARMOR are set. Setting these manually i see that the kernel parameters " apparmor=1 security=apparmor" are missing.

My assumption was that adding the apparmor recipe would do all these things.

Do i add the recipe somewhere completely wrong? Do i possibly override apparmor with other recipes?

Any help would be greatly appreciated.

Best regards

hu

Should these

#1 lore raw
Quoted 4 lines · On 12/19/19 8:36 AM, [email protected] wrote:

Hi,

i'm new here and not really shure this is the right place for this issue.

First you need to enable the distro feature

DISTRO_FEATURES_append = " apparmor"

otherwise the kernel fragments wont be included

Quoted 6 lines

I try to get apparmor working using yocto. I tried using thud and zeus with the same result on apparmor_status: apparmor module is not loaded Checking the kernel flags manually with bitbake -c menuconfig virtual/kernel shows that none of the relevant flags
like CONFIG_SECURITY_APPARMOR are set.
Setting these manually i see that the kernel parameters

These you need to append to your kernel commend line. I think it is:
KERNEL_CMDLINE_APPEND_append =

Quoted 4 lines

"apparmor=1 security=apparmor" are missing.

My assumption was that adding the apparmor recipe would do all these things.

Actually the recipe should have failed with a DISTRO check message.

I should add that.

This should get you on your way.
- armin

Quoted 36 lines

Do i add the recipe somewhere completely wrong? Do i possibly override apparmor with other recipes?

Any help would be greatly appreciated.

Best regards

hu

Should these

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#47775): https://lists.yoctoproject.org/g/yocto/message/47775
Mute This Topic: https://lists.yoctoproject.org/mt/68834537/1024635
Mute #yocto: https://lists.yoctoproject.org/mk?hashtag=yocto&subid=6691541
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-