All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-selinux][PATCH] oe-selinux.conf: set preferred kernel version to 3.14
@ 2015-05-16 18:57 Philip Tricca
  2015-05-16 19:04 ` Philip Tricca
  2015-05-19  2:15 ` Khem Raj
  0 siblings, 2 replies; 5+ messages in thread
From: Philip Tricca @ 2015-05-16 18:57 UTC (permalink / raw)
  To: yocto

Upstream 3.19 isn't supported by meta-selinux yet. Set PREFERRED_VERSION
to 3.14 as a work-around to keep the reference images bootable.
---
 conf/distro/oe-selinux.conf | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/conf/distro/oe-selinux.conf b/conf/distro/oe-selinux.conf
index 6e55a32..ea3adbf 100644
--- a/conf/distro/oe-selinux.conf
+++ b/conf/distro/oe-selinux.conf
@@ -1,4 +1,6 @@
 DISTRO = "oe-selinux"
 DISTROOVERRIDES .= ":selinux"
 
+PREFERRED_VERSION_linux-yocto = "3.14%"
+
 DISTRO_FEATURES_append = " acl xattr pam selinux"
-- 
2.1.4



^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [meta-selinux][PATCH] oe-selinux.conf: set preferred kernel version to 3.14
  2015-05-16 18:57 [meta-selinux][PATCH] oe-selinux.conf: set preferred kernel version to 3.14 Philip Tricca
@ 2015-05-16 19:04 ` Philip Tricca
  2015-05-19  2:15   ` Khem Raj
  2015-05-19  2:15 ` Khem Raj
  1 sibling, 1 reply; 5+ messages in thread
From: Philip Tricca @ 2015-05-16 19:04 UTC (permalink / raw)
  To: yocto

Upstream 3.19 isn't supported by meta-selinux yet. Set PREFERRED_VERSION
to 3.14 as a work-around to keep the reference images bootable.

Signed-off-by: Philip Tricca <flihp@twobit.us>
---
 conf/distro/oe-selinux.conf | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/conf/distro/oe-selinux.conf b/conf/distro/oe-selinux.conf
index 6e55a32..ea3adbf 100644
--- a/conf/distro/oe-selinux.conf
+++ b/conf/distro/oe-selinux.conf
@@ -1,4 +1,6 @@
 DISTRO = "oe-selinux"
 DISTROOVERRIDES .= ":selinux"
 
+PREFERRED_VERSION_linux-yocto = "3.14%"
+
 DISTRO_FEATURES_append = " acl xattr pam selinux"
-- 
2.1.4



^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [meta-selinux][PATCH] oe-selinux.conf: set preferred kernel version to 3.14
  2015-05-16 19:04 ` Philip Tricca
@ 2015-05-19  2:15   ` Khem Raj
  2015-06-05  4:24     ` Philip Tricca
  0 siblings, 1 reply; 5+ messages in thread
From: Khem Raj @ 2015-05-19  2:15 UTC (permalink / raw)
  To: Philip Tricca; +Cc: yocto

[-- Attachment #1: Type: text/plain, Size: 1267 bytes --]


> On May 16, 2015, at 12:04 PM, Philip Tricca <flihp@twobit.us> wrote:
> 
> Upstream 3.19 isn't supported by meta-selinux yet. Set PREFERRED_VERSION
> to 3.14 as a work-around to keep the reference images bootable.
> 
> Signed-off-by: Philip Tricca <flihp@twobit.us>
> ---
> conf/distro/oe-selinux.conf | 2 ++
> 1 file changed, 2 insertions(+)
> 
> diff --git a/conf/distro/oe-selinux.conf b/conf/distro/oe-selinux.conf
> index 6e55a32..ea3adbf 100644
> --- a/conf/distro/oe-selinux.conf
> +++ b/conf/distro/oe-selinux.conf
> @@ -1,4 +1,6 @@
> DISTRO = "oe-selinux"
> DISTROOVERRIDES .= ":selinux"
> 
> +PREFERRED_VERSION_linux-yocto = "3.14%”

IMO this looks a wrong place to pin kernel versions. Its BSPs choice hence belongs to machine
layers. unless you want to limit the scope of this layer to BSPs using linux-yocto only, then you need
to state that in README and still not set this but instead set a bbappend and raise a parse error to inform
the user about the layer expecting linux-yocto 3.14

> +

> DISTRO_FEATURES_append = " acl xattr pam selinux"
> --
> 2.1.4
> 
> --
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto


[-- Attachment #2: Message signed with OpenPGP using GPGMail --]
[-- Type: application/pgp-signature, Size: 211 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [meta-selinux][PATCH] oe-selinux.conf: set preferred kernel version to 3.14
  2015-05-16 18:57 [meta-selinux][PATCH] oe-selinux.conf: set preferred kernel version to 3.14 Philip Tricca
  2015-05-16 19:04 ` Philip Tricca
@ 2015-05-19  2:15 ` Khem Raj
  1 sibling, 0 replies; 5+ messages in thread
From: Khem Raj @ 2015-05-19  2:15 UTC (permalink / raw)
  To: Philip Tricca; +Cc: yocto

[-- Attachment #1: Type: text/plain, Size: 863 bytes --]


> On May 16, 2015, at 11:57 AM, Philip Tricca <flihp@twobit.us> wrote:
> 
> Upstream 3.19 isn't supported by meta-selinux yet. Set PREFERRED_VERSION
> to 3.14 as a work-around to keep the reference images bootable.
> ---
> conf/distro/oe-selinux.conf | 2 ++
> 1 file changed, 2 insertions(+)
> 
> diff --git a/conf/distro/oe-selinux.conf b/conf/distro/oe-selinux.conf
> index 6e55a32..ea3adbf 100644
> --- a/conf/distro/oe-selinux.conf
> +++ b/conf/distro/oe-selinux.conf
> @@ -1,4 +1,6 @@
> DISTRO = "oe-selinux"
> DISTROOVERRIDES .= ":selinux"
> 
> +PREFERRED_VERSION_linux-yocto = "3.14%”

same here

> +

> DISTRO_FEATURES_append = " acl xattr pam selinux"
> --
> 2.1.4
> 
> --
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto


[-- Attachment #2: Message signed with OpenPGP using GPGMail --]
[-- Type: application/pgp-signature, Size: 211 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [meta-selinux][PATCH] oe-selinux.conf: set preferred kernel version to 3.14
  2015-05-19  2:15   ` Khem Raj
@ 2015-06-05  4:24     ` Philip Tricca
  0 siblings, 0 replies; 5+ messages in thread
From: Philip Tricca @ 2015-06-05  4:24 UTC (permalink / raw)
  To: Khem Raj; +Cc: yocto

On 05/18/2015 07:15 PM, Khem Raj wrote:
> 
>> On May 16, 2015, at 12:04 PM, Philip Tricca <flihp@twobit.us> wrote:
>>
>> Upstream 3.19 isn't supported by meta-selinux yet. Set PREFERRED_VERSION
>> to 3.14 as a work-around to keep the reference images bootable.
>>
>> Signed-off-by: Philip Tricca <flihp@twobit.us>
>> ---
>> conf/distro/oe-selinux.conf | 2 ++
>> 1 file changed, 2 insertions(+)
>>
>> diff --git a/conf/distro/oe-selinux.conf b/conf/distro/oe-selinux.conf
>> index 6e55a32..ea3adbf 100644
>> --- a/conf/distro/oe-selinux.conf
>> +++ b/conf/distro/oe-selinux.conf
>> @@ -1,4 +1,6 @@
>> DISTRO = "oe-selinux"
>> DISTROOVERRIDES .= ":selinux"
>>
>> +PREFERRED_VERSION_linux-yocto = "3.14%”
> 
> IMO this looks a wrong place to pin kernel versions. Its BSPs choice hence belongs to machine
> layers. unless you want to limit the scope of this layer to BSPs using linux-yocto only, then you need
> to state that in README and still not set this but instead set a bbappend and raise a parse error to inform
> the user about the layer expecting linux-yocto 3.14

I picked the distro conf because the SELinux kernel config is why we
need to pin the version (don't have a config for 3.19 yet). Secondly in
looking for an example of using this variable I saw the poky distro
layer pinning the kernel version in the distro.conf. I may have just
been emulating bad behavior here though.

Philip

> 
>> +
> 
>> DISTRO_FEATURES_append = " acl xattr pam selinux"
>> --
>> 2.1.4
>>
>> --
>> _______________________________________________
>> yocto mailing list
>> yocto@yoctoproject.org
>> https://lists.yoctoproject.org/listinfo/yocto
> 



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-06-05  4:25 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-16 18:57 [meta-selinux][PATCH] oe-selinux.conf: set preferred kernel version to 3.14 Philip Tricca
2015-05-16 19:04 ` Philip Tricca
2015-05-19  2:15   ` Khem Raj
2015-06-05  4:24     ` Philip Tricca
2015-05-19  2:15 ` Khem Raj

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.