Commit Graph

54 Commits

Author SHA1 Message Date
Mikko Rapeli
1dd9fdd1fe linux-yocto: enable ecryptfs
Build ecryptfs as module. Needed by userspace counterparts in
ecryptfs-utils which are currently failing to start correctly
and thus downgrading systemd boot status from RUNNING to DEGRADED.
Fix is to build and install the kernel module.

Signed-off-by: Mikko Rapeli <mikko.rapeli@linaro.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2024-12-27 11:28:23 -05:00
Armin Kuster
ca10975033 recipes-*: convert WORKDIR->UNPACKDIR
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2024-07-29 20:07:01 -04:00
Armin Kuster
00c161827a lkrg-module: update to 0.9.7
LIC_FILES_CHKSUM changed due to year update

Signed-off-by: Armin Kuster <akuster808@gmail.com>
2023-09-25 09:45:11 -04:00
Kevin Hao
b727a4c94d linux-yocto-rt: Add the bbappend for rt kernel
So that the security features in this layer can be used on the
rt kernel.

Signed-off-by: Kevin Hao <kexin.hao@windriver.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2023-08-06 11:31:18 -04:00
Armin Kuster
3e6a7c173a lkrg-modules: update to 0.9.6
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2023-03-20 16:29:57 -04:00
Mikko Rapeli
3529cfb43e linux-yocto: drop version from bbappends
These bbappends apply to multiple kernel versions so no
need to make them version dependent. Fixes recipe parsing when
using meta-security master branch on kirkstone. In our custom layer we
set layer compatibility for kirkstone and I understand why meta-security
upstream would not want to do that:

LAYERSERIES_COMPAT_security-layer += 'kirkstone'
LAYERSERIES_COMPAT_parsec-layer += 'kirkstone'
LAYERSERIES_COMPAT_tpm-layer += 'kirkstone'

While I work towards supporting also yocto master branch and newer
releases than kirkstone, I would appreciate if I would not have to
branch off layers over minor details like this.

Signed-off-by: Mikko Rapeli <mikko.rapeli@linaro.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2023-02-06 07:32:41 -05:00
Armin Kuster
769ddade73 linux-yocto.bbappend: bump to kernel version 6.x
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2023-01-28 10:15:27 -05:00
Armin Kuster
13120455a5 lkrg-module: update to 0.9.5
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2022-08-06 08:55:34 -07:00
Armin Kuster
4e0ba84530 lkrg: update to 0.9.4
drop Makefile fixup patch. Use sed instead

LIC_FILES_CHKSUM update do to yr update

Signed-off-by: Armin Kuster <akuster808@gmail.com>

---
V2]
Add LIC_FILES_CHKSUM change reason
2022-08-02 13:45:26 -07:00
Armin Kuster
7cff72ef80 lkrg: update to 0.9.3
refresh patch

Signed-off-by: Armin Kuster <akuster808@gmail.com>
2022-07-05 19:26:50 -04:00
Armin Kuster
cfb79c913f linux-yocto_security.inc: add lkrg kfrags
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2022-04-07 10:26:45 -07:00
Armin Kuster
fb67042242 lkrg-module: covert to git fetcher
This allows to track tip easier.
refresh patch
Fix LICENSE to match SPDX format

Signed-off-by: Armin Kuster <akuster808@gmail.com>
2022-04-07 10:26:45 -07:00
Armin Kuster
7df64c5c2e lkrg-module: update to 0.9.2
see https://github.com/lkrg-org/lkrg
Support new stable and mainline kernels 5.14 to at least 5.16-rc*
Support new longterm kernels 5.4.118+, 4.19.191+, 4.14.233+

update SRC_URI as location changed.
refresh patch.

Signed-off-by: Armin Kuster <akuster808@gmail.com>
2022-02-04 11:33:41 -08:00
Armin Kuster
11a67b861a meta-security: Convert to new override syntax
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2021-08-01 08:47:08 -07:00
Armin Kuster
b226ebdc4a linux-yocto-dev: drop bbappend
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2021-06-06 13:03:37 -07:00
Armin Kuster
1955c143de meta-security/recipe-kernel: use sanity check
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2021-06-06 13:03:37 -07:00
Armin Kuster
833ae34c8f linux-%_5.%.bbappend: drop recipe
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2021-06-05 19:25:24 +00:00
Armin Kuster
72c5043d84 lkrg-module: update 0.9.1
LIC_FILES_CHKSUM updated do to yr change and adding new copyrights

Signed-off-by: Armin Kuster <akuster808@gmail.com>
2021-06-05 19:25:17 +00:00
Armin Kuster
ca9264b1e1 lkrg-module: Add Linux Kernel Runtime Guard
For more info see: https://github.com/openwall/lkrg

Add to local.conf:
IMAGE_INSTALL_append = " kernel-module-lkrg"

Need these kconfig options enabled:
CONFIG_KALLSYMS_ALL=y
CONFIG_JUMP_LABEL=y
CONFIG_DEBUG_KERNEL=y

To invoke module:

sudo insmod {path-to-modules}/p_lkrg.ko kint_enforce=1

Signed-off-by: Armin Kuster <akuster808@gmail.com>
2021-04-14 13:49:47 +00:00
Naveen Saini
d9feafe991 linux-%/5.x: Add dm-verity fragment as needed
Add checks that include dm-verity specific kernel config fragment
when dm-verity-img.bbclass is used.

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2020-10-09 07:02:01 -07:00
niko.mauno@vaisala.com
6f40921308 linux-yocto(-dev): Add dm-verity fragment as needed
Add checks that include dm-verity specific kernel config fragment
when dm-verity-img.bbclass is used.

Signed-off-by: Niko Mauno <niko.mauno@vaisala.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2020-09-12 08:55:28 -07:00
Mingli Yu
15061e3a4e linux-yocto: update the bbappend to 5.x
As linux-yocto upgraded to 5.x in oe-core, update
the bbappend to 5.x to remove the warning:

WARNING: No recipes available for:
  /buildarea/layers/meta-security/recipes-kernel/linux/linux-yocto_4.%.bbappend

Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
[Droped 4.x part]
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2020-03-05 08:06:44 -08:00
Bartosz Golaszewski
a3f5288624 linux: drop the bbappend for linux v4.x series
v4.19 LTS has been dropped in poky in favor of v5.4. Drop the bbappend
from meta-security as right now the build fails.

Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2020-03-01 22:16:14 -08:00
Armin Kuster
dc0403042b linux-yocto-dev: remove "+"
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2020-01-28 10:02:36 -08:00
Armin Kuster
16e4875e78 linux-stable: rename to more generic bbappend
use wildcards

Signed-off-by: Armin Kuster <akuster808@gmail.com>
2019-08-24 12:54:57 -07:00
Armin Kuster
ecb526ffab linux-yocto-dev: update to use kernel cache
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2019-08-15 20:10:33 -07:00
Armin Kuster
d36e4f5a3f linux-yocto: use 4.19 kernel cache now
remove kernel fragments now that they are in the
kernel-cache for 4.19

update bbappend accordingly.

Signed-off-by: Armin Kuster <akuster808@gmail.com>
2019-08-15 20:10:33 -07:00
Armin Kuster
f94207e3d8 linux-stable/5.2: add stable bbappend
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2019-08-15 20:10:33 -07:00
Armin Kuster
8f8a42eec8 linux-%: remove kernel fragments now in cache
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2019-08-15 20:10:26 -07:00
He Zhe
586f40897a kernel: Add conditional inclusion of fragments for linux-yocto-dev
Signed-off-by: He Zhe <zhe.he@windriver.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2019-06-26 15:47:47 -07:00
Armin Kuster
51a4c6b517 linux-bbappends: simplify
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2019-06-26 15:46:52 -07:00
Armin Kuster
9f5cc2a7eb smack: kernel fragment update
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2019-05-12 11:10:44 -07:00
Armin Kuster
f506138eb5 apparmor: fix fragment for 5.0 kernel
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2019-05-09 17:44:59 -07:00
Armin Kuster
cb6d1c85ee linux-yocto/5.0: add apparmor fragments
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2019-04-01 19:21:21 -07:00
Armin Kuster
cb412637a2 linux-yocto: make bbappend version neutral
update apparmor configs

[v2]
Just update configs.

leave versions intact.

Signed-off-by: Armin Kuster <akuster808@gmail.com>
2019-04-01 19:21:06 -07:00
Jinliang Li
b38f027b93 Fix build issue for apparmor kernel configuration
Set the correct path of kernel configuration file in linux-yocto_4.%.bbappend
to fix the build issue, which is "Fetcher failure for URL: 'file://apparmor.cfg'.
Unable to fetch URL from any source."

Signed-off-by: Jinliang Li <jinliang.li@linux.alibaba.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2018-06-11 10:57:37 -07:00
Armin Kuster
ab8d219c43 linux-yocto: move to wildcard on bbappend
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2018-02-18 19:31:59 -08:00
Armin Kuster
f5c93d5f73 linux-yocto: drop dangling dir
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2018-02-18 19:31:59 -08:00
Armin Kuster
30b911b282 linux-stable: drop old versions no longer in core
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2018-02-18 19:31:59 -08:00
Armin Kuster
b890929335 yocto-linux/4.9: fix typo in filepath
fix idea submitted but Derek Betker <derek.betker@ge.com>

[Yocto 12134]

Signed-off-by: Armin Kuster <akuster808@gmail.com>
2018-02-18 19:31:53 -08:00
Armin Kuster
607d2bc7dd linux-yocto/4.12: update path version
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-10-02 07:49:23 -07:00
Mikko Ylinen
f4af2ebdb6 linux-yocto: drop all 4.1 content
linux-yocto_4.1.bb recipe has been removed from oe-core master
and that triggers a bitbake error due to orphan bbappends
maintained in meta-security.

To fix the error, drop linux-yocto_4.1.bbappend plus the patches
and the config fragments for it.

Signed-off-by: Mikko Ylinen <mikko.ylinen@linux.intel.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-08-31 22:12:02 -07:00
Armin Kuster
b82ed2caf9 linux-yocto: add 4.12 bbappends
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-08-31 22:10:50 -07:00
Armin Kuster
4585f1e8c9 tpm: move to a sub layer
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-05-14 07:56:43 -07:00
Armin Kuster
25f50bd510 linux-yocto: add 4.10 kernel support
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-04-06 10:39:42 -07:00
Armin Kuster
aa9fa90288 kernel: mv 4.8 kernel to 4.9
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-04-06 10:39:42 -07:00
Armin Kuster
6edbdc7a34 yocto-kernel: add apparmor fragments
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-02-18 11:43:20 -08:00
Armin Kuster
b9f288581d smack kernel: add smack kernel config fragments
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2016-11-10 13:34:46 -08:00
Armin Kuster
2431acfc95 linux-yocto-4.8: add tpm fragments
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2016-11-01 09:03:15 -07:00
Thomas Perrot
2a1f79040b Use bb.utils.contains instead of base_contains because it is deprecated
Signed-off-by: Thomas Perrot <thomas.perrot@tupi.fr>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2016-05-25 18:49:13 -07:00