From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pg1-f178.google.com (mail-pg1-f178.google.com [209.85.215.178]) by mx.groups.io with SMTP id smtpd.web11.1779.1576793810632293827 for ; Thu, 19 Dec 2019 14:16:50 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20161025 header.b=WD9MNLeh; spf=pass (domain: gmail.com, ip: 209.85.215.178, mailfrom: akuster808@gmail.com) Received: by mail-pg1-f178.google.com with SMTP id l24so3882959pgk.2 for ; Thu, 19 Dec 2019 14:16:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:openpgp:autocrypt:message-id:date :user-agent:mime-version:in-reply-to:content-language; bh=qCoiygcgL8zzFF44JZb/i+O3E2/TMt4tHO/LMd/RJYY=; b=WD9MNLehgW+J2He5tnVb9kxEKPv4sO2rde5LP3geo6sI5wND6ZrtvfkF293iCoPjK3 q546y96JZkuSkvcsDjmzwTLB7FZFWP31d2j2MUTbxJTpSLhsvkjy/+zYYxYc51423Ylj scgmMO/VJAwpaCKLlS7br91nAlwXLbUfhSRdRCRQnBhOA1APqPNLH+eq/9WqidZRK33v 2a3WEiuN83NMsWsX19DXn/z4x4o1pdA3jqREG9CeM3kB0ob7W+mzzXaFjklAxUmKzzph qKuBYwUm+506rwys3/ZKrwuqRDgO47hwwW2WiTaVE4nS6taoVn+5gxwLUDuhRReVKb46 YPrg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:openpgp:autocrypt :message-id:date:user-agent:mime-version:in-reply-to :content-language; bh=qCoiygcgL8zzFF44JZb/i+O3E2/TMt4tHO/LMd/RJYY=; b=Px2sKgAlu4xBVUqoLBb3ZLNZjqpMuHSwOiZbgLshJU+18TFpN7jcV0niv/wzy6htla GMeC/pNxv3OakybmdMChEwMcu0Zt6tH6RSe7Y6ChES49iCNfnNRD1XiJq/JUD9cJvmyR z/WROdR3ZvBtCitCIdNY41BjxUK1QXZw3L+3Q5eglt/Bv5gI9TZxIC8K964XnHduLMha ZRciY7Te2xU5cTdRR4TJiYR7onzbkLa+H0HGt5hoP+Sp8wnMhFehDmNyFw8Xr1AWkLgw ac2gVIWJ6avCms4v+VOdGWAYjdMOgNvA5ODH4VKDD8YQ0tZazEF4dwjvHFj8CN6uk4TS l7uQ== X-Gm-Message-State: APjAAAX+eUSXkXQqMibB1/NNqEpPH3U2xxXFRJYCifyS/0gHLTrUGtwr qJsc3gwDij/CjFZLcWe5f9R1ofsR310= X-Google-Smtp-Source: APXvYqyU+1zHWxFI3y3eeq87p0KTHiIoZiiRno+Q4lOg6XMHPk5t/drBVsJpAHjPKRlswxerysLdeQ== X-Received: by 2002:a65:488f:: with SMTP id n15mr11968651pgs.61.1576793809510; Thu, 19 Dec 2019 14:16:49 -0800 (PST) Return-Path: Received: from [10.20.245.11] ([45.19.219.178]) by smtp.gmail.com with ESMTPSA id i9sm9850755pfd.166.2019.12.19.14.16.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 19 Dec 2019 14:16:48 -0800 (PST) Subject: Re: [yocto] apparmor setup #yocto To: hu.schlieben@codewrights.de, yocto@lists.yoctoproject.org References: From: "Armpit" Openpgp: preference=signencrypt Autocrypt: addr=akuster808@gmail.com; prefer-encrypt=mutual; keydata= mQINBFnlUP4BEADpKf+FQdLykenQXKk8i6xJNxDow+ypFeVAy8iFJp7Dsev+BtwUFo8VG7hx Jmd71vHMw+coBetWC3lk+IKjX815Ox0puYXQVRRtI+yMCgd6ib3oGxoQ8tCMwhf9c9/aKjaz mP97lWgGHbiEVsDpjzmMZGlJ6pDVZzxykkJExKaosE46AcA8KvfhRQg5zRyYBtinzs8Zu8AP aquZVHNXxPwjKPaSEEYqQjFeiNgFTavV+AhM2dmPmGUWCX9RZisrqA4slGwEB0srMdFf12Zg mD35Y9jZ80qpu5LPtJCF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2vJiq93TtaYPr7UFNfK+c4 vv4C66lkt9l95/I10eSc3RqbOKZW47emlg4X3ygEoB9k2lPrpspyf6sUuSEi0WrlSxoLAr6p JG8rTUErYNeXe6JCdL31odDx1Dh5sdKIj2RicUYZNilxu9f1M7jZwf2ra1FGAlKj2ybqmgpZ EFteaiCinEYsvDyZyOiWHjAFI+RZIPQQL3AnVp4l7wYD3r9hnqYPww0slyMDcb9262RoFkHq dDwxPYarrNjWUpOzxB6bFxOgNRdCTgvQl8Ftk8a/yXB6vHeUSm1vPFCBxQPZytyfOLhEWm0J /mkVL0Z6iRK3p1LKnpLYCS4/esL2u7RrhPyCs2SsL58YcQF/g+PpeT9geZ+oyZ/4IQ+TWJoU PNHndk8VBTpzrmOaJxrebNL/W6C8JCmbLM11TAUMmHYi9JDytN8Au78hWpDbIdKwg1LeSxpw ZZD/OqOc0DBvHOpQhzkSrtR1lVlDV/+9E8J1T4uDhrGmZwYV+4xQetypHax8aAHisYbjXdVa 8CS2NxU= Message-ID: Date: Thu, 19 Dec 2019 14:16:48 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/alternative; boundary="------------28105737EA337EA2EA352649" Content-Language: en-US --------------28105737EA337EA2EA352649 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 12/19/19 8:36 AM, hu.schlieben@codewrights.de wrote: > Hi, > > i'm new here and not really shure this is the right place for this issu= e. > First you need to enable the distro feature DISTRO_FEATURES_append =3D " apparmor" otherwise the kernel fragments wont be included > I try to get apparmor working using yocto. I tried using thud and zeus > with the same result on apparmor_status:=C2=A0apparmor module is not lo= aded > Checking the kernel flags manually with=C2=A0bitbake -c menuconfig > virtual/kernel shows that none of the relevant flags > like=C2=A0CONFIG_SECURITY_APPARMOR=C2=A0are 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 =3D > "apparmor=3D1 security=3Dapparmor" 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 > > 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=C2=A0 > > > > > > > > > > > > -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- > Links: You receive all messages sent to this group. > > View/Reply Online (#47775): https://lists.yoctoproject.org/g/yocto/mess= age/47775 > Mute This Topic: https://lists.yoctoproject.org/mt/68834537/1024635 > Mute #yocto: https://lists.yoctoproject.org/mk?hashtag=3Dyocto&subid=3D= 6691541 > Group Owner: yocto+owner@lists.yoctoproject.org > Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [akuster@mvi= sta.com] > -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- --------------28105737EA337EA2EA352649 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit

On 12/19/19 8:36 AM, hu.schlieben@codewrights.de 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
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 =

"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




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: yocto+owner@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub  [akuster@mvista.com]
-=-=-=-=-=-=-=-=-=-=-=-

--------------28105737EA337EA2EA352649--