Skip to contentSkip to conversation

Add static-passwd and static-group files

PATCH In review Fabien Thomas 3 participants 11 messages Oct 10, 2023 – Oct 13, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/7 Add static-passwd and static-group files

In order to pass reproducible tests, recipes that use the useradd class must have static ids configured.

---
 meta-filesystems/files/static-passwd-meta-filesystems | 3 +++
 1 file changed, 3 insertions(+)
 create mode 100644 meta-filesystems/files/static-passwd-meta-filesystems
meta-filesystems/files/static-passwd-meta-filesystems new file +3 -0
new file mode 100644
index 000000000..157697f3e
@@ -0,0 +1,3 @@
+fsgqa:x:700:nogroup::/:/bin/nologin
+123456-fsgqa:x:701:nogroup::/:/bin/nologin
+fsgqa2:x:702:nogroup::/:/bin/nologin
\ No newline at end of file
Signature · 1 line
2.34.1
#1 lore raw

PATCH 2/7 Add static-passwd and static-group files

In order to pass reproducible tests, recipes that use the useradd class must have static ids configured.

---
 meta-gnome/files/static-passwd-meta-gnome | 1 +
 1 file changed, 1 insertion(+)
 create mode 100644 meta-gnome/files/static-passwd-meta-gnome
meta-gnome/files/static-passwd-meta-gnome new file +1 -0
new file mode 100644
index 000000000..4502d8bd1
@@ -0,0 +1 @@
+gdm:x:680:nogroup::/:/bin/nologin
\ No newline at end of file
Signature · 1 line
2.34.1
#2 lore raw

PATCH 3/7 Add static-passwd and static-group files

In reply to Fabien Thomas

In order to pass reproducible tests, recipes that use the useradd class must have static ids configured.

---
 meta-multimedia/files/static-group-meta-multimedia  | 2 ++
 meta-multimedia/files/static-passwd-meta-multimedia | 2 ++
 2 files changed, 4 insertions(+)
 create mode 100644 meta-multimedia/files/static-group-meta-multimedia
 create mode 100644 meta-multimedia/files/static-passwd-meta-multimedia
meta-multimedia/files/static-group-meta-multimedia new file +2 -0
new file mode 100644
index 000000000..c76233171
@@ -0,0 +1,2 @@
+pipewire:x:660:
+mpd:x:665:
\ No newline at end of file
meta-multimedia/files/static-passwd-meta-multimedia new file +2 -0
new file mode 100644
index 000000000..94e1310ea
@@ -0,0 +1,2 @@
+pipewire:x:660:660::/:/bin/nologin
+mpd:x:665:665::/:/bin/nologin
\ No newline at end of file
Signature · 1 line
2.34.1
#3 lore raw

PATCH 4/7 Add static-passwd and static-group files

In reply to Fabien Thomas

In order to pass reproducible tests, recipes that use the useradd class must have static ids configured.

---
 .../files/static-group-meta-networking        | 14 ++++++++++++++
 .../files/static-passwd-meta-networking       | 19 +++++++++++++++++++
 2 files changed, 33 insertions(+)
 create mode 100644 meta-networking/files/static-group-meta-networking
 create mode 100644 meta-networking/files/static-passwd-meta-networking
meta-networking/files/static-group-meta-networking new file +14 -0
new file mode 100644
index 000000000..0aada6c5f
@@ -0,0 +1,14 @@
+ftp:x:630:
+dovecot:x:631:
+dovenull:x:632:
+postfix:x:633:
+postdrop:x:634:
+vmail:x:635:
+rasvd:x:636:
+frr:x:637:
+frrvty:x:638:
+nogroup:x:639:
+ftp:x:640:
+rwhod:x:641:
+lldpd:x:642:
+opensaf:x:643:
\ No newline at end of file
meta-networking/files/static-passwd-meta-networking new file +19 -0
new file mode 100644
index 000000000..77c2b36f9
@@ -0,0 +1,19 @@
+ftp:x:630:630::/:/bin/nologin
+dovecot:x:631:631::/:/bin/nologin
+dovenull:x:632:632::/:/bin/nologin
+postfix:x:633:633::/:/bin/nologin
+vmail:x:635:635::/:/bin/nologin
+radvd:x:636:636::/:/bin/nologin
+frr:x:637:637::/:/bin/nologin
+ftp:x:640:640::/:/bin/nologin
+rwhod:x:641:641::/:/bin/nologin
+lldpd:x:642:642::/:/bin/nologin
+opensaf:x:643:643::/:/bin/nologin
+tinyproxy:x:650:nogroup::/:/bin/nologin
+radiusd:x:651:nogroup::/:/bin/nologin
+nm-openconnect:x:652:nogroup::/:/bin/nologin
+ntp:x:653:nogroup::/:/bin/nologin
+nm-fortisslvpn:x:654:nogroup::/:/bin/nologin
+nm-openvpn:x:655:nogroup::/:/bin/nologin
+squid:x:656:nogroup::/:/bin/nologin
+mosquitto:x:657:nogroup::/:/bin/nologin
\ No newline at end of file
Signature · 1 line
2.34.1
#4 lore raw

PATCH 5/7 Add static-passwd and static-group files

In reply to Fabien Thomas

In order to pass reproducible tests, recipes that use the useradd class must have static ids configured.

---
 meta-oe/files/static-group-meta-oe  |  8 ++++++++
 meta-oe/files/static-passwd-meta-oe | 11 +++++++++++
 2 files changed, 19 insertions(+)
 create mode 100644 meta-oe/files/static-group-meta-oe
 create mode 100644 meta-oe/files/static-passwd-meta-oe
meta-oe/files/static-group-meta-oe new file +8 -0
new file mode 100644
index 000000000..79c9bb6e1
@@ -0,0 +1,8 @@
+redis:x:600:
+xrdp:x:601:
+sanlock:x:602:
+mysql:x:603:
+postgres:x:604:
+zabbix:x:605:
+mail:x:606:
+nogroup:x:607:
\ No newline at end of file
meta-oe/files/static-passwd-meta-oe new file +11 -0
new file mode 100644
index 000000000..4c312b7b1
@@ -0,0 +1,11 @@
+redis:x:600:600::/:/bin/nologin
+xrdp:x:601:601::/:/bin/nologin
+sanlock:x:602:602::/:/bin/nologin
+mysql:x:603:603::/:/bin/nologin
+postgres:x:604:604::/:/bin/nologin
+zabbix:x:605:605::/:/bin/nologin
+cyrus:x:606:nogroup::/:/bin/nologin
+pcp:x:620:nogroup::/:/bin/nologin
+pcpqa:x:621:nogroup::/:/bin/nologin
+influxdb:x:622:nogroup::/:/bin/nologin
+mongodb:x:623:nogroup::/:/bin/nologin
\ No newline at end of file
Signature · 1 line
2.34.1
#5 lore raw
Quoted 19 lines · Fabien Thomas

In order to pass reproducible tests, recipes that use the useradd class must have static ids configured.

---
 meta-oe/files/static-group-meta-oe  |  8 ++++++++
 meta-oe/files/static-passwd-meta-oe | 11 +++++++++++
 2 files changed, 19 insertions(+)
 create mode 100644 meta-oe/files/static-group-meta-oe
 create mode 100644 meta-oe/files/static-passwd-meta-oe
meta-oe/files/static-group-meta-oe new file +0 -0
new file mode 100644
index 000000000..79c9bb6e1

meta-oe/files/static-group-meta-oe line 8

Quoted 8 lines
meta-oe/files/static-group-meta-oe new file +8 -0
@@ -0,0 +1,8 @@
+redis:x:600:
+xrdp:x:601:
+sanlock:x:602:
+mysql:x:603:
+postgres:x:604:
+zabbix:x:605:
+mail:x:606:
+nogroup:x:607:

"nogroup" is already defined by base-passwd in oe-core. Its value is 65534, so this should either match that, or be removed.

Quoted 31 lines

\ No newline at end of file

meta-oe/files/static-passwd-meta-oe new file +11 -1
new file mode 100644
index 000000000..4c312b7b1
@@ -0,0 +1,11 @@
+redis:x:600:600::/:/bin/nologin
+xrdp:x:601:601::/:/bin/nologin
+sanlock:x:602:602::/:/bin/nologin
+mysql:x:603:603::/:/bin/nologin
+postgres:x:604:604::/:/bin/nologin
+zabbix:x:605:605::/:/bin/nologin
+cyrus:x:606:nogroup::/:/bin/nologin
+pcp:x:620:nogroup::/:/bin/nologin
+pcpqa:x:621:nogroup::/:/bin/nologin
+influxdb:x:622:nogroup::/:/bin/nologin
+mongodb:x:623:nogroup::/:/bin/nologin
\ No newline at end of file
--

2.34.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#105401): https://lists.openembedded.org/g/openembedded-devel/message/105401
Mute This Topic: https://lists.openembedded.org/mt/101871610/3617261
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#6 lore raw

Thanks for your comments. I just sent a fix in that way.

Regards,
Fabien

#7 lore raw

PATCH 6/7 Add static-passwd and static-group files

In reply to Fabien Thomas

In order to pass reproducible tests, recipes that use the useradd class must have static ids configured.

---
 meta-perl/files/static-group-meta-perl  | 1 +
 meta-perl/files/static-passwd-meta-perl | 1 +
 2 files changed, 2 insertions(+)
 create mode 100644 meta-perl/files/static-group-meta-perl
 create mode 100644 meta-perl/files/static-passwd-meta-perl
meta-perl/files/static-group-meta-perl new file +1 -0
new file mode 100644
index 000000000..7dd58bbbd
@@ -0,0 +1 @@
+logcheck:x:670:
\ No newline at end of file
meta-perl/files/static-passwd-meta-perl new file +1 -0
new file mode 100644
index 000000000..7b3591ac5
@@ -0,0 +1 @@
+logcheck:x:670:670::/:/bin/nologin
\ No newline at end of file
Signature · 1 line
2.34.1
#8 lore raw

PATCH 7/7 Add static-passwd and static-group files

In reply to Fabien Thomas

In order to pass reproducible tests, recipes that use the useradd class must have static ids configured.

---
 meta-webserver/files/static-passwd-meta-webserver | 2 ++
 1 file changed, 2 insertions(+)
 create mode 100644 meta-webserver/files/static-passwd-meta-webserver
meta-webserver/files/static-passwd-meta-webserver new file +2 -0
new file mode 100644
index 000000000..028cf8d94
@@ -0,0 +1,2 @@
+www:x:690:nogroup::/:/bin/nologin
+netdata:x:691:nogroup::/:/bin/nologin
\ No newline at end of file
Signature · 1 line
2.34.1
#9 lore raw
In reply to Fabien Thomas

Thanks for the patch.

Is there any way to ensure (have a QA?) this file is updated / not forgotten when somebody else adds new id in the recipe?

Slava

Quoted 20 lines · Fabien Thomas

In order to pass reproducible tests, recipes that use the useradd class must have static ids configured.

---
  meta-filesystems/files/static-passwd-meta-filesystems | 3 +++
  1 file changed, 3 insertions(+)

create mode 100644 meta-filesystems/files/static-passwd-meta-filesystems

meta-filesystems/files/static-passwd-meta-filesystems new file +3 -0
new file mode 100644
index 000000000..157697f3e
@@ -0,0 +1,3 @@
+fsgqa:x:700:nogroup::/:/bin/nologin
+123456-fsgqa:x:701:nogroup::/:/bin/nologin
+fsgqa2:x:702:nogroup::/:/bin/nologin
\ No newline at end of file
#10 lore raw
Quoted 2 lines · Vyacheslav Yurkov

Slava

Hello,

This work is intended to be carried out by yocto autobuilder several time a day, in reproducible-meta-oe selftest. If someone add a new user or group in a recipe and forget to update theses static-ids files : the repro build will failed. This ensure an early detection.

Regards,
Fabien