summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/base-passwd
diff options
context:
space:
mode:
authorAlex Kiernan <alex.kiernan@gmail.com>2023-07-28 10:39:48 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-07-29 08:34:35 +0100
commita10c01f9d16fc0bcdedde3cd51c6decd59e55263 (patch)
tree3330970aeb24b7f87333f8183d0f8fcdc71e1823 /meta/recipes-core/base-passwd
parent269479f6f4fc35545c6ae8322bcda90e3cf151ca (diff)
downloadpoky-a10c01f9d16fc0bcdedde3cd51c6decd59e55263.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: a1c81ac4a869cc57394071ace2ca086eb8ac47a4) Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/base-passwd')
-rw-r--r--meta/recipes-core/base-passwd/base-passwd/0001-base-passwd-Add-the-sgx-group.patch30
-rw-r--r--meta/recipes-core/base-passwd/base-passwd_3.6.1.bb1
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 @@
1From 9e57771d138ac423d5139b984b8c869122ce4976 Mon Sep 17 00:00:00 2001
2From: Alex Kiernan <alexk@zuma.ai>
3Date: Fri, 28 Jul 2023 10:28:57 +0100
4Subject: [PATCH] base-passwd: Add the sgx group
5
6To avoid errors from eudev/udev we need an sgx group, but if we add it
7via groupadd that causes shadow login to be brought into an image, which
8causes images which have CONFIG_MULTIUSER unset to fail with `setgid:
9Function not implemented` as shadow's login doesn't implement the
10heuristics which busybox has to handle this kernel configuration.
11
12Upstream-Status: Inappropriate [oe-specific]
13
14Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
15---
16 group.master | 1 +
17 1 file changed, 1 insertion(+)
18
19diff --git a/group.master b/group.master
20index 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.6.1.bb b/meta/recipes-core/base-passwd/base-passwd_3.6.1.bb
index 204016b3e7..44bcfb0199 100644
--- a/meta/recipes-core/base-passwd/base-passwd_3.6.1.bb
+++ b/meta/recipes-core/base-passwd/base-passwd_3.6.1.bb
@@ -13,6 +13,7 @@ SRC_URI = "https://launchpad.net/debian/+archive/primary/+files/${BPN}_${PV}.tar
13 file://0005-Add-kvm-group.patch \ 13 file://0005-Add-kvm-group.patch \
14 file://0006-Make-it-possible-to-configure-whether-to-use-SELinux.patch \ 14 file://0006-Make-it-possible-to-configure-whether-to-use-SELinux.patch \
15 file://0007-Add-wheel-group.patch \ 15 file://0007-Add-wheel-group.patch \
16 file://0001-base-passwd-Add-the-sgx-group.patch \
16 " 17 "
17 18
18SRC_URI[sha256sum] = "6ff369be59d586ba63c0c5fcb00f75f9953fe49db88bc6c6428f2c92866f79af" 19SRC_URI[sha256sum] = "6ff369be59d586ba63c0c5fcb00f75f9953fe49db88bc6c6428f2c92866f79af"