diff options
| author | Alex Kiernan <alex.kiernan@gmail.com> | 2024-12-17 12:12:29 +0100 |
|---|---|---|
| committer | Steve Sakoman <steve@sakoman.com> | 2024-12-20 06:01:45 -0800 |
| commit | be48ef3d1bab50824c6678748bcfa897a2a6ca8a (patch) | |
| tree | 897eee2cacac016c4ec011848c21d2c9141f4a45 /meta/recipes-core | |
| parent | 96e2bfb266d51c68993a8f150bdec821a0cf6b91 (diff) | |
| download | poky-be48ef3d1bab50824c6678748bcfa897a2a6ca8a.tar.gz | |
base-passwd: Add the sgx group
To avoid errors from eudev/udev we need an sgx group, but if we add it
via groupadd that causes shadow login to be brought into an image, which
causes images which have CONFIG_MULTIUSER unset to fail with `setgid:
Function not implemented` as shadow's login doesn't implement the
heuristics which busybox has to handle this kernel configuration.
(From OE-Core rev: a20b02fdfe64c005f7587a1d9077bdc282f7b6b1)
Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit a1c81ac4a869cc57394071ace2ca086eb8ac47a4)
Signed-off-by: Jonas Gorski <jonas.gorski@bisdn.de>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Diffstat (limited to 'meta/recipes-core')
| -rw-r--r-- | meta/recipes-core/base-passwd/base-passwd/0001-base-passwd-Add-the-sgx-group.patch | 30 | ||||
| -rw-r--r-- | meta/recipes-core/base-passwd/base-passwd_3.5.52.bb | 1 |
2 files changed, 31 insertions, 0 deletions
diff --git a/meta/recipes-core/base-passwd/base-passwd/0001-base-passwd-Add-the-sgx-group.patch b/meta/recipes-core/base-passwd/base-passwd/0001-base-passwd-Add-the-sgx-group.patch new file mode 100644 index 0000000000..e1340e1b70 --- /dev/null +++ b/meta/recipes-core/base-passwd/base-passwd/0001-base-passwd-Add-the-sgx-group.patch | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | From 9e57771d138ac423d5139b984b8c869122ce4976 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Alex Kiernan <alexk@zuma.ai> | ||
| 3 | Date: Fri, 28 Jul 2023 10:28:57 +0100 | ||
| 4 | Subject: [PATCH] base-passwd: Add the sgx group | ||
| 5 | |||
| 6 | To avoid errors from eudev/udev we need an sgx group, but if we add it | ||
| 7 | via groupadd that causes shadow login to be brought into an image, which | ||
| 8 | causes images which have CONFIG_MULTIUSER unset to fail with `setgid: | ||
| 9 | Function not implemented` as shadow's login doesn't implement the | ||
| 10 | heuristics which busybox has to handle this kernel configuration. | ||
| 11 | |||
| 12 | Upstream-Status: Inappropriate [oe-specific] | ||
| 13 | |||
| 14 | Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com> | ||
| 15 | --- | ||
| 16 | group.master | 1 + | ||
| 17 | 1 file changed, 1 insertion(+) | ||
| 18 | |||
| 19 | diff --git a/group.master b/group.master | ||
| 20 | index d34d2b832d43..e54fd1d2c6dc 100644 | ||
| 21 | --- a/group.master | ||
| 22 | +++ b/group.master | ||
| 23 | @@ -34,6 +34,7 @@ video:*:44: | ||
| 24 | sasl:*:45: | ||
| 25 | plugdev:*:46: | ||
| 26 | kvm:*:47: | ||
| 27 | +sgx:*:48: | ||
| 28 | staff:*:50: | ||
| 29 | games:*:60: | ||
| 30 | shutdown:*:70: | ||
diff --git a/meta/recipes-core/base-passwd/base-passwd_3.5.52.bb b/meta/recipes-core/base-passwd/base-passwd_3.5.52.bb index 66b5a0e7dc..9fbba7e9c0 100644 --- a/meta/recipes-core/base-passwd/base-passwd_3.5.52.bb +++ b/meta/recipes-core/base-passwd/base-passwd_3.5.52.bb | |||
| @@ -14,6 +14,7 @@ SRC_URI = "https://launchpad.net/debian/+archive/primary/+files/${BPN}_${PV}.tar | |||
| 14 | file://0006-Make-it-possible-to-build-without-debconf-support.patch \ | 14 | file://0006-Make-it-possible-to-build-without-debconf-support.patch \ |
| 15 | file://0007-Make-it-possible-to-disable-the-generation-of-the-do.patch \ | 15 | file://0007-Make-it-possible-to-disable-the-generation-of-the-do.patch \ |
| 16 | file://0008-Add-wheel-group.patch \ | 16 | file://0008-Add-wheel-group.patch \ |
| 17 | file://0001-base-passwd-Add-the-sgx-group.patch \ | ||
| 17 | " | 18 | " |
| 18 | 19 | ||
| 19 | SRC_URI[sha256sum] = "5dfec6556b5a16ecf14dd3f7c95b591d929270289268123f31a3d6317f95ccea" | 20 | SRC_URI[sha256sum] = "5dfec6556b5a16ecf14dd3f7c95b591d929270289268123f31a3d6317f95ccea" |
