Commit Graph

31 Commits

Author SHA1 Message Date
Yi Zhao
6cf84fa126 linux-yocto: drop CONFIG_REISERFS_FS_SECURITY
CONFIG_REISERFS_FS_SECURITY has been removed since kernel 6.13[1].

[1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=fb6f20ecb121cef4d7946f834a6ee867c4e21b4a

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
2025-09-15 14:10:57 +08:00
Yi Zhao
2ff4de94fd linux-yocto: drop CONFIG_SECURITY_SELINUX_DISABLE
CONFIG_SECURITY_SELINUX_DISABLE has been removed since kernel 6.4[1][2].

[1] https://github.com/SELinuxProject/selinux-kernel/wiki/DEPRECATE-runtime-disable
[2] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=f22f9aaf6c3d92ebd5ad9e67acc03afebaaeb289

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Joe MacDonald <joe@deserted.net>
2023-09-05 14:36:06 -04:00
Yi Zhao
47858343ed linux-yocto: drop CONFIG_SECURITY_SELINUX_CHECKREQPROT_VALUE
CONFIG_SECURITY_SELINUX_CHECKREQPROT_VALUE is deprecated and will be
rejected in a future kernel release[1].

[1] https://github.com/SELinuxProject/selinux-kernel/wiki/DEPRECATE-checkreqprot

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Joe MacDonald <joe@deserted.net>
2023-04-30 21:33:46 -04:00
Yi Zhao
91c8ba5814 linux-yocto: drop version from bbappend
Make the bbappend available for 5.x and 6.x kernels.

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Joe MacDonald <joe@deserted.net>
2023-03-06 11:04:54 -05:00
Yi Zhao
31325005e4 classes: drop redundant classes
There are some redundant classes: enable-selinux.bbclass,
with-selinux.bbclass, meson-enable-selinux.bbclass,
meson-selinux.bbclass, enable-audit.bbclass, with-audit.bbclass.
These classes only add PACKAGEOCNFIG[selinux]/[audit] to recipes. But
currently most recipes have added PACKAGECONFIG[selinux]/[audit] in
their bb files. We don't need these anymore. Only keep
enable-selinux.class and enable-audit.class to append
PACKAGECONFIG[selinux]/[audit] for recipes.

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Joe MacDonald <joe@deserted.net>
2021-08-29 21:34:22 -04:00
Yi Zhao
654201e25d meta-selinux: convert to new override syntax
This is the result of automated script conversion:
poky/scripts/contrib/convert-overrides.py meta-selinux

Converting the metadata to use ":" as the override character instead of "_".

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Joe MacDonald <joe@deserted.net>
2021-08-04 16:18:39 -04:00
Yi Zhao
03baa60e37 linux-yocto: drop 4.x bbappend
The linux-yocto 4.x recipes have been dropped in oe-core. We can remove
the bbappend.

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
2020-02-26 08:11:16 -05:00
He Zhe
44d7604139 kernel: Remove non-existing kernel option
CONFIG_SECURITY_SELINUX_BOOTPARAM_VALUE has been remove from mainline kernel
by the commit be6ec88f41ba ("selinux: Remove SECURITY_SELINUX_BOOTPARAM_VALUE").

Signed-off-by: He Zhe <zhe.he@windriver.com>
Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
2019-10-25 10:12:27 -04:00
Yi Zhao
780038798b linux-yocto: add bbappend for kernel 5.0
Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Joe MacDonald <joe@deserted.net>
2019-03-22 09:35:22 -04:00
Mark Hatle
4fefe83c32 Refactor to conform to YP Compat requirements
Change the references to check for the distribution flag of 'selinux' being
set before taking any action within the bbappends.  This prevents the
signature from being modified.

Also remove PR changes, as they are no longer allowed.

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
2017-09-14 08:29:01 -05:00
Philip Tricca
26c02d6c17 linux-yocto: Use wildcard in 4.x bbappend.
Signed-off-by: Philip Tricca <flihp@twobit.us>
2016-02-27 05:36:54 +00:00
Thomas Perrot
a7ff3c22ac linux-yocto: Remove recipe for 3.14 and 3.19 kernel.
Signed-off-by: Thomas Perrot <thomas.perrot@tupi.fr>
Signed-off-by: Philip Tricca <flihp@twobit.us>
2016-02-27 05:36:54 +00:00
Philip Tricca
7ee048189d linux-libc-headers: Make headers available to native packages via BBCLASSEXTEND.
Signed-off-by: Philip Tricca <flihp@twobit.us>
Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
2015-09-08 15:59:11 -04:00
Shrikant Bobade
83c3ee0aae linux-yocto: enable selinux support for kernel v4.1
The default kernel is now v4.1. So we need the selinux support
for kernel v4.1, inorder to get selinux enabled images out of box.

Signed-off-by: Shrikant Bobade <shrikant_bobade@mentor.com>
Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
2015-08-07 16:24:54 -04:00
Shrikant Bobade
dee52032cf linux-yocto: enable selinux support for kernel v3.19
The default kernel is now v3.19. So we need the selinux support
for kernel v3.19, inorder to get selinux enabled images out of box.

Signed-off-by: Shrikant Bobade <Shrikant_Bobade@mentor.com>
Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
2015-06-09 13:30:42 -04:00
Dmitry Eremin-Solenikov
22c3447a51 perf: conditionally add audit to the DEPENDS list
perf can make use of libaudit if it is present. So let's build perf with
audit if we are building a SELinux-enabled distribution.

Signed-off-by: Dmitry Eremin-Solenikov <dmitry_eremin@mentor.com>
Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
2015-05-11 14:28:43 -04:00
Joe MacDonald
aa85e81d94 Globally replace 'base_contains' calls with 'bb.utils.contains'
Based on oe-core commit:

   commit 1528e596d4906c33e4be83fcf691cfe76d340ff3
   Author: Otavio Salvador <otavio@ossystems.com.br>
   Date:   Thu Apr 24 15:59:20 2014 -0300

   Globally replace 'base_contains' calls with 'bb.utils.contains'

   The base_contains is kept as a compatibility method and we ought to not
   use it in OE-Core so we can remove it from base metadata in future.

Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
2014-09-16 21:05:00 -04:00
Xin Ouyang
88edba3fb1 kernel: remove obsoleting bbappend to fit oe-core.
Signed-off-by: Xin Ouyang <xin.ouyang@windriver.com>
2014-09-12 16:35:42 +08:00
Zhenhua Luo
1699b56fd8 Enable two options to ensure selinux can boot up
* CONFIG_SECURITY=y
* CONFIG_SECURITYFS=y

Signed-off-by: Zhenhua Luo <zhenhua.luo@freescale.com>
Signed-off-by: Xin Ouyang <xin.ouyang@windriver.com>
2014-08-28 18:38:50 +08:00
Xin Ouyang
16854eaa7d kernel: remove 3.8 bbappend to follow oe-core changes.
Signed-off-by: Xin Ouyang <xin.ouyang@windriver.com>
2014-05-16 18:05:00 +08:00
Joe MacDonald
b14b21c0c5 linux-yocto: migrate from 3.10 to 3.14
The default kernel is now 3.14.  Since the removal of PRINC support leaves
the 3.10 recipe in a difficult-to-work-with state, now seems like a good
time to move to the new kernel.

Signed-off-by: Joe MacDonald <joe@deserted.net>
2014-05-09 08:48:16 -04:00
Mark Hatle
479c9803f0 linux-yocto: Add support for the 3.10 kernel
Also update the selinux.cfg file to add ext4, jfs, and jffs2 support.

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Joe MacDonald <joe@deserted.net>
2013-10-02 13:24:45 -04:00
Xin Ouyang
3342d1edcf kernel: add BBAPPEND for linux 3.10
Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
Signed-off-by: Joe MacDonald <joe@deserted.net>
2013-10-02 13:24:45 -04:00
Xin Ouyang
11fa024721 kernel: remove 3.2 bbappend to fit oe-core
OE-Core rev b8d53d8f91bd1b165016ea1063868c8b15f07ce0 removes 3.2
kernel recipes.

Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
2013-06-17 17:58:51 +08:00
Xin Ouyang
600f2b3a8f kernel: add linux-3.8 bbappend
Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
2013-03-09 17:54:13 +08:00
Xin Ouyang
23d99ebc3f kernel: remove 3.0 bbappend to fit oe-core
Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
2013-03-09 17:54:03 +08:00
Xin Ouyang
38fbdd436c kernel: default enable selinux for this layer.
Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
2012-10-18 11:07:45 +08:00
Xin Ouyang
34d9c62f9f kernel: bbappend to enable SELinux, v3.4.
Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
2012-07-19 14:57:34 +08:00
Xin Ouyang
4fcefe71fd kernel: Workaround for inconsistent kallsyms on ARM. 2012-04-27 15:57:04 +08:00
Xin Ouyang
2bd39e94d0 kernel: bbappend to enable SELinux, v3.2. 2012-04-17 17:15:29 +08:00
Mark Hatle
efda6dc804 linux-yocto: Enable SE Linux support
Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
2012-01-31 13:59:50 -06:00