Skip to content

Commit

Permalink
overlay/sysusers: add fragments for all FCOS system groups
Browse files Browse the repository at this point in the history
This translates all Fedora CoreOS system groups (i.e. those coming
from group manifest) into equivalent sysusers.d fragments.

We currently ship four kinds of system groups:
 * basic groups coming from the `/etc/group` file in the `setup`
   package (10-groups-basic.conf)
 * the legacy GID for the `nobody` group (00-group-nobody.conf)
 * extra groups with static GIDs that adhere to the Fedora
   allocation table (10-groups-static-extra.conf)
 * extra groups with static GIDs that are specific to CoreOS
   (00-groups-coreos-static.conf)

These sysusers.d fragments are meant as a transitory measure to
help migrate the existing group entries from the current nss-altfiles
setup to a plain sysusers.d world.
  • Loading branch information
lucab committed Aug 9, 2022
1 parent 0932235 commit aee5f45
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 0 deletions.
3 changes: 3 additions & 0 deletions overlay.d/15fcos/usr/lib/sysusers.d/00-group-nobody.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# CoreOS mismatch: https://github.com/coreos/fedora-coreos-tracker/issues/1201
# g nobody 65534
g nobody 99
16 changes: 16 additions & 0 deletions overlay.d/15fcos/usr/lib/sysusers.d/00-groups-coreos-static.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
g cgred 996
g chrony 992
g cockpit-ws 987
g dockerroot 986
g etcd 997
g input 104
g kube 994
g nfsnobody 65534
g polkitd 998
g ssh_keys 999
g sssd 993
g sudo 16
g systemd-bus-proxy 988
g systemd-network 990
g systemd-resolve 989
g systemd-timesync 991
23 changes: 23 additions & 0 deletions overlay.d/15fcos/usr/lib/sysusers.d/10-groups-basic.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
g adm 4
g audio 63
g bin 1
g cdrom 11
g daemon 2
g dialout 18
g disk 6
g floppy 19
g ftp 50
g games 20
g kmem 9
g lock 54
g lp 7
g mail 12
g man 15
g mem 8
g root 0
g sys 3
g tape 33
g tty 5
g users 100
g video 39
g wheel 10
12 changes: 12 additions & 0 deletions overlay.d/15fcos/usr/lib/sysusers.d/10-groups-static-extra.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
g avahi-autoipd 170
g ceph 167
g dbus 81
g dip 40
g rpc 32
g rpcuser 29
g sshd 74
g systemd-journal 190
g tcpdump 72
g tss 59
g utempter 35
g utmp 22

0 comments on commit aee5f45

Please sign in to comment.