diff options
Diffstat (limited to 'meta/recipes-core/base-passwd/base-passwd')
12 files changed, 144 insertions, 95 deletions
diff --git a/meta/recipes-core/base-passwd/base-passwd/0001-Add-a-shutdown-group.patch b/meta/recipes-core/base-passwd/base-passwd/0001-Add-a-shutdown-group.patch new file mode 100644 index 0000000000..e50efc9623 --- /dev/null +++ b/meta/recipes-core/base-passwd/base-passwd/0001-Add-a-shutdown-group.patch | |||
@@ -0,0 +1,26 @@ | |||
1 | From 8f3ace87df3aaad85946c22cae240532ea3e73b8 Mon Sep 17 00:00:00 2001 | ||
2 | From: Saul Wold <sgw@linux.intel.com> | ||
3 | Date: Fri, 29 Apr 2022 13:32:27 +0000 | ||
4 | Subject: [PATCH] Add a shutdown group | ||
5 | |||
6 | We need to have a shutdown group to allow the shutdown icon to work | ||
7 | correctly. Any users that want to use shutdown like the xuser should | ||
8 | be added to this group. | ||
9 | |||
10 | Upstream-Status: Inappropriate [Embedded] | ||
11 | Signed-off-by: Saul Wold <sgw@linux.intel.com> | ||
12 | --- | ||
13 | group.master | 1 + | ||
14 | 1 file changed, 1 insertion(+) | ||
15 | |||
16 | diff --git a/group.master b/group.master | ||
17 | index ad1dd2d..1b5e2fb 100644 | ||
18 | --- a/group.master | ||
19 | +++ b/group.master | ||
20 | @@ -35,5 +35,6 @@ sasl:*:45: | ||
21 | plugdev:*:46: | ||
22 | staff:*:50: | ||
23 | games:*:60: | ||
24 | +shutdown:*:70: | ||
25 | users:*:100: | ||
26 | nogroup:*:65534: | ||
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/0002-Use-bin-sh-instead-of-bin-bash-for-the-root-user.patch b/meta/recipes-core/base-passwd/base-passwd/0002-Use-bin-sh-instead-of-bin-bash-for-the-root-user.patch new file mode 100644 index 0000000000..09f8cfea9c --- /dev/null +++ b/meta/recipes-core/base-passwd/base-passwd/0002-Use-bin-sh-instead-of-bin-bash-for-the-root-user.patch | |||
@@ -0,0 +1,23 @@ | |||
1 | From 4411fc0df77566d52bee11ec0bad4be30a96e99e Mon Sep 17 00:00:00 2001 | ||
2 | From: Scott Garman <scott.a.garman@intel.com> | ||
3 | Date: Fri, 29 Apr 2022 13:32:27 +0000 | ||
4 | Subject: [PATCH] Use /bin/sh instead of /bin/bash for the root user | ||
5 | |||
6 | /bin/bash may not be included in some images such as minimal. | ||
7 | |||
8 | Upstream-Status: Inappropriate [configuration] | ||
9 | Signed-off-by: Scott Garman <scott.a.garman@intel.com> | ||
10 | --- | ||
11 | passwd.master | 2 +- | ||
12 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
13 | |||
14 | diff --git a/passwd.master b/passwd.master | ||
15 | index 7cd4e24..041685a 100644 | ||
16 | --- a/passwd.master | ||
17 | +++ b/passwd.master | ||
18 | @@ -1,4 +1,4 @@ | ||
19 | -root:*:0:0:root:/root:/bin/bash | ||
20 | +root:*:0:0:root:/root:/bin/sh | ||
21 | daemon:*:1:1:daemon:/usr/sbin:/usr/sbin/nologin | ||
22 | bin:*:2:2:bin:/bin:/usr/sbin/nologin | ||
23 | sys:*:3:3:sys:/dev:/usr/sbin/nologin | ||
diff --git a/meta/recipes-core/base-passwd/base-passwd/0003-Remove-for-root-since-we-do-not-have-an-etc-shadow.patch b/meta/recipes-core/base-passwd/base-passwd/0003-Remove-for-root-since-we-do-not-have-an-etc-shadow.patch new file mode 100644 index 0000000000..06222ab04c --- /dev/null +++ b/meta/recipes-core/base-passwd/base-passwd/0003-Remove-for-root-since-we-do-not-have-an-etc-shadow.patch | |||
@@ -0,0 +1,21 @@ | |||
1 | From 13a1a284a134d18a454625a5b4485c0d99079ae9 Mon Sep 17 00:00:00 2001 | ||
2 | From: Scott Garman <scott.a.garman@intel.com> | ||
3 | Date: Fri, 29 Apr 2022 13:32:28 +0000 | ||
4 | Subject: [PATCH] Remove "*" for root since we do not have an /etc/shadow | ||
5 | |||
6 | Upstream-Status: Inappropriate [configuration] | ||
7 | Signed-off-by: Scott Garman <scott.a.garman@intel.com> | ||
8 | --- | ||
9 | passwd.master | 2 +- | ||
10 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
11 | |||
12 | diff --git a/passwd.master b/passwd.master | ||
13 | index 041685a..31a84d4 100644 | ||
14 | --- a/passwd.master | ||
15 | +++ b/passwd.master | ||
16 | @@ -1,4 +1,4 @@ | ||
17 | -root:*:0:0:root:/root:/bin/sh | ||
18 | +root::0:0:root:/root:/bin/sh | ||
19 | daemon:*:1:1:daemon:/usr/sbin:/usr/sbin/nologin | ||
20 | bin:*:2:2:bin:/bin:/usr/sbin/nologin | ||
21 | sys:*:3:3:sys:/dev:/usr/sbin/nologin | ||
diff --git a/meta/recipes-core/base-passwd/base-passwd/0004-Add-an-input-group-for-the-dev-input-devices.patch b/meta/recipes-core/base-passwd/base-passwd/0004-Add-an-input-group-for-the-dev-input-devices.patch new file mode 100644 index 0000000000..394a0f01d3 --- /dev/null +++ b/meta/recipes-core/base-passwd/base-passwd/0004-Add-an-input-group-for-the-dev-input-devices.patch | |||
@@ -0,0 +1,23 @@ | |||
1 | From c5f012750f8102ff54af73ccc2d2b7bfa1f26db4 Mon Sep 17 00:00:00 2001 | ||
2 | From: Darren Hart <dvhart@linux.intel.com> | ||
3 | Date: Fri, 29 Apr 2022 13:32:28 +0000 | ||
4 | Subject: [PATCH] Add an input group for the /dev/input/* devices | ||
5 | |||
6 | Upstream-Status: Inappropriate [configuration] | ||
7 | Signed-off-by: Darren Hart <dvhart@linux.intel.com> | ||
8 | --- | ||
9 | group.master | 1 + | ||
10 | 1 file changed, 1 insertion(+) | ||
11 | |||
12 | diff --git a/group.master b/group.master | ||
13 | index 1b5e2fb..cea9d60 100644 | ||
14 | --- a/group.master | ||
15 | +++ b/group.master | ||
16 | @@ -12,6 +12,7 @@ uucp:*:10: | ||
17 | man:*:12: | ||
18 | proxy:*:13: | ||
19 | kmem:*:15: | ||
20 | +input:*:19: | ||
21 | dialout:*:20: | ||
22 | fax:*:21: | ||
23 | voice:*:22: | ||
diff --git a/meta/recipes-core/base-passwd/base-passwd/kvm.patch b/meta/recipes-core/base-passwd/base-passwd/0005-Add-kvm-group.patch index 113d5151e7..72e6ee333c 100644 --- a/meta/recipes-core/base-passwd/base-passwd/kvm.patch +++ b/meta/recipes-core/base-passwd/base-passwd/0005-Add-kvm-group.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From 6355278b9f744291864c373a32a8da8f84aaaf37 Mon Sep 17 00:00:00 2001 | 1 | From 6cf19461fb31d7a7a3010629aae9aab49c26a01b Mon Sep 17 00:00:00 2001 |
2 | From: Jacob Kroon <jacob.kroon@gmail.com> | 2 | From: Jacob Kroon <jacob.kroon@gmail.com> |
3 | Date: Wed, 30 Jan 2019 04:53:48 +0000 | 3 | Date: Wed, 30 Jan 2019 04:53:48 +0000 |
4 | Subject: [PATCH] Add kvm group | 4 | Subject: [PATCH] Add kvm group |
diff --git a/meta/recipes-core/base-passwd/base-passwd/0007-Add-wheel-group.patch b/meta/recipes-core/base-passwd/base-passwd/0007-Add-wheel-group.patch new file mode 100644 index 0000000000..d77122789d --- /dev/null +++ b/meta/recipes-core/base-passwd/base-passwd/0007-Add-wheel-group.patch | |||
@@ -0,0 +1,20 @@ | |||
1 | |||
2 | We need to have a wheel group which has some system privileges to consult the | ||
3 | systemd journal or manage printers with cups. | ||
4 | |||
5 | Upstream says the group does not exist by default. | ||
6 | |||
7 | Upstream-Status: Inappropriate [enable feature] | ||
8 | |||
9 | Signed-off-by: Louis Rannou <lrannou@baylibre.com> | ||
10 | Index: base-passwd-3.5.26/group.master | ||
11 | =================================================================== | ||
12 | --- base-passwd-3.5.29.orig/group.master | ||
13 | +++ base-passwd-3.5.29/group.master | ||
14 | @@ -38,5 +38,6 @@ | ||
15 | staff:*:50: | ||
16 | games:*:60: | ||
17 | shutdown:*:70: | ||
18 | +wheel:*:80: | ||
19 | users:*:100: | ||
20 | nogroup:*:65534: | ||
diff --git a/meta/recipes-core/base-passwd/base-passwd/add_shutdown.patch b/meta/recipes-core/base-passwd/base-passwd/add_shutdown.patch deleted file mode 100644 index 5f357d8895..0000000000 --- a/meta/recipes-core/base-passwd/base-passwd/add_shutdown.patch +++ /dev/null | |||
@@ -1,19 +0,0 @@ | |||
1 | |||
2 | We need to have a shutdown group to allow the shutdown icon | ||
3 | to work correctly. Any users that want to use shutdown like | ||
4 | the xuser should be added to this group. | ||
5 | |||
6 | Upstream-Status: Inappropriate [Embedded] | ||
7 | |||
8 | Signed-off-by: Saul Wold <sgw@linux.intel.com> | ||
9 | Index: base-passwd-3.5.26/group.master | ||
10 | =================================================================== | ||
11 | --- base-passwd-3.5.26.orig/group.master | ||
12 | +++ base-passwd-3.5.26/group.master | ||
13 | @@ -36,5 +36,6 @@ sasl:*:45: | ||
14 | plugdev:*:46: | ||
15 | staff:*:50: | ||
16 | games:*:60: | ||
17 | +shutdown:*:70: | ||
18 | users:*:100: | ||
19 | nogroup:*:65534: | ||
diff --git a/meta/recipes-core/base-passwd/base-passwd/disable-docs.patch b/meta/recipes-core/base-passwd/base-passwd/disable-docs.patch deleted file mode 100644 index 14c08b7484..0000000000 --- a/meta/recipes-core/base-passwd/base-passwd/disable-docs.patch +++ /dev/null | |||
@@ -1,24 +0,0 @@ | |||
1 | Disable documentation for now as it uses tools currently not supported | ||
2 | by OE-Core. It uses sgmltools and po4a. | ||
3 | |||
4 | Upstream-Status: Inappropriate [OE-Core specific] | ||
5 | Signed-off-by: Saul Wold <sgw@linux.intel.com> | ||
6 | |||
7 | Index: base-passwd-3.5.28/Makefile.in | ||
8 | =================================================================== | ||
9 | --- base-passwd-3.5.28.orig/Makefile.in | ||
10 | +++ base-passwd-3.5.28/Makefile.in | ||
11 | @@ -25,13 +25,10 @@ gen_configure = config.cache config.stat | ||
12 | confdefhs.h config.h Makefile | ||
13 | |||
14 | all: update-passwd | ||
15 | - $(MAKE) -C doc all | ||
16 | - $(MAKE) -C man all | ||
17 | |||
18 | install: all | ||
19 | mkdir -p $(DESTDIR)$(sbindir) | ||
20 | $(INSTALL) update-passwd $(DESTDIR)$(sbindir)/ | ||
21 | - $(MAKE) -C man install | ||
22 | |||
23 | update-passwd.o: version.h | ||
24 | |||
diff --git a/meta/recipes-core/base-passwd/base-passwd/input.patch b/meta/recipes-core/base-passwd/base-passwd/input.patch deleted file mode 100644 index 3abbcad5d5..0000000000 --- a/meta/recipes-core/base-passwd/base-passwd/input.patch +++ /dev/null | |||
@@ -1,22 +0,0 @@ | |||
1 | Add an input group for the /dev/input/* devices. | ||
2 | |||
3 | Upstream-Status: Inappropriate [configuration] | ||
4 | |||
5 | Signed-off-by: Darren Hart <dvhart@linux.intel.com> | ||
6 | |||
7 | --- | ||
8 | group.master | 1 + | ||
9 | 1 file changed, 1 insertion(+) | ||
10 | |||
11 | Index: base-passwd-3.5.26/group.master | ||
12 | =================================================================== | ||
13 | --- base-passwd-3.5.26.orig/group.master | ||
14 | +++ base-passwd-3.5.26/group.master | ||
15 | @@ -12,6 +12,7 @@ uucp:*:10: | ||
16 | man:*:12: | ||
17 | proxy:*:13: | ||
18 | kmem:*:15: | ||
19 | +input:*:19: | ||
20 | dialout:*:20: | ||
21 | fax:*:21: | ||
22 | voice:*:22: | ||
diff --git a/meta/recipes-core/base-passwd/base-passwd/nobash.patch b/meta/recipes-core/base-passwd/base-passwd/nobash.patch deleted file mode 100644 index b5a692295b..0000000000 --- a/meta/recipes-core/base-passwd/base-passwd/nobash.patch +++ /dev/null | |||
@@ -1,15 +0,0 @@ | |||
1 | use /bin/sh instead of /bin/bash, since the latter may not be included in | ||
2 | some images such as minimal | ||
3 | |||
4 | Upstream-Status: Inappropriate [configuration] | ||
5 | |||
6 | Signed-off-by: Scott Garman <scott.a.garman@intel.com> | ||
7 | |||
8 | --- base-passwd/passwd.master~nobash | ||
9 | +++ base-passwd/passwd.master | ||
10 | @@ -1,4 +1,4 @@ | ||
11 | -root:*:0:0:root:/root:/bin/bash | ||
12 | +root:*:0:0:root:/root:/bin/sh | ||
13 | daemon:*:1:1:daemon:/usr/sbin:/bin/sh | ||
14 | bin:*:2:2:bin:/bin:/bin/sh | ||
15 | sys:*:3:3:sys:/dev:/bin/sh | ||
diff --git a/meta/recipes-core/base-passwd/base-passwd/noshadow.patch b/meta/recipes-core/base-passwd/base-passwd/noshadow.patch deleted file mode 100644 index e27bf7d9be..0000000000 --- a/meta/recipes-core/base-passwd/base-passwd/noshadow.patch +++ /dev/null | |||
@@ -1,14 +0,0 @@ | |||
1 | remove "*" for root since we don't have a /etc/shadow so far. | ||
2 | |||
3 | Upstream-Status: Inappropriate [configuration] | ||
4 | |||
5 | Signed-off-by: Scott Garman <scott.a.garman@intel.com> | ||
6 | |||
7 | --- base-passwd/passwd.master~nobash | ||
8 | +++ base-passwd/passwd.master | ||
9 | @@ -1,4 +1,4 @@ | ||
10 | -root:*:0:0:root:/root:/bin/sh | ||
11 | +root::0:0:root:/root:/bin/sh | ||
12 | daemon:*:1:1:daemon:/usr/sbin:/bin/sh | ||
13 | bin:*:2:2:bin:/bin:/bin/sh | ||
14 | sys:*:3:3:sys:/dev:/bin/sh | ||