Skip to content

Commit

Permalink
system-accounts: Experimental package to replace old sysusers approach
Browse files Browse the repository at this point in the history
Signed-off-by: Ikey Doherty <[email protected]>
  • Loading branch information
ikeycode committed Feb 5, 2024
1 parent 37491c5 commit 30010a2
Show file tree
Hide file tree
Showing 18 changed files with 161 additions and 0 deletions.
Binary file added s/system-accounts/manifest.x86_64.bin
Binary file not shown.
47 changes: 47 additions & 0 deletions s/system-accounts/manifest.x86_64.jsonc
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
/** Human readable report. This is not consumed by boulder */
{
"manifest-version": "0.2",
"packages": {
"system-accounts": {
"build-depends": [
"binary(jq)"
],
"files": [
"/usr/lib/userdb/10.group",
"/usr/lib/userdb/100.group",
"/usr/lib/userdb/11.group",
"/usr/lib/userdb/12.group",
"/usr/lib/userdb/13.group",
"/usr/lib/userdb/15.group",
"/usr/lib/userdb/28.group",
"/usr/lib/userdb/3.group",
"/usr/lib/userdb/30.group",
"/usr/lib/userdb/4.group",
"/usr/lib/userdb/5.group",
"/usr/lib/userdb/61.group",
"/usr/lib/userdb/8.group",
"/usr/lib/userdb/9.group",
"/usr/lib/userdb/97.group",
"/usr/lib/userdb/audio.group",
"/usr/lib/userdb/cdrom.group",
"/usr/lib/userdb/dialout.group",
"/usr/lib/userdb/disk.group",
"/usr/lib/userdb/input.group",
"/usr/lib/userdb/kmem.group",
"/usr/lib/userdb/kvm.group",
"/usr/lib/userdb/lp.group",
"/usr/lib/userdb/render.group",
"/usr/lib/userdb/tape.group",
"/usr/lib/userdb/tty.group",
"/usr/lib/userdb/users.group",
"/usr/lib/userdb/utmp.group",
"/usr/lib/userdb/video.group",
"/usr/lib/userdb/wheel.group"
],
"name": "system-accounts"
}
},
"source-name": "system-accounts",
"source-release": "3",
"source-version": "0.1.0"
}
5 changes: 5 additions & 0 deletions s/system-accounts/pkg/audio.group
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"groupName" : "audio",
"gid" : 11,
"disposition" : "system"
}
5 changes: 5 additions & 0 deletions s/system-accounts/pkg/cdrom.group
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"groupName" : "cdrom",
"gid" : 15,
"disposition" : "system"
}
5 changes: 5 additions & 0 deletions s/system-accounts/pkg/dialout.group
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"groupName" : "dialout",
"gid" : 10,
"disposition" : "system"
}
5 changes: 5 additions & 0 deletions s/system-accounts/pkg/disk.group
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"groupName" : "disk",
"gid" : 8,
"disposition" : "system"
}
5 changes: 5 additions & 0 deletions s/system-accounts/pkg/input.group
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"groupName" : "input",
"gid" : 97,
"disposition" : "system"
}
5 changes: 5 additions & 0 deletions s/system-accounts/pkg/kmem.group
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"groupName" : "kmem",
"gid" : 3,
"disposition" : "system"
}
5 changes: 5 additions & 0 deletions s/system-accounts/pkg/kvm.group
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"groupName" : "kvm",
"gid" : 61,
"disposition" : "system"
}
5 changes: 5 additions & 0 deletions s/system-accounts/pkg/lp.group
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"groupName" : "lp",
"gid" : 9,
"disposition" : "system"
}
5 changes: 5 additions & 0 deletions s/system-accounts/pkg/render.group
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"groupName" : "render",
"gid" : 30,
"disposition" : "system"
}
5 changes: 5 additions & 0 deletions s/system-accounts/pkg/tape.group
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"groupName" : "tape",
"gid" : 4,
"disposition" : "system"
}
5 changes: 5 additions & 0 deletions s/system-accounts/pkg/tty.group
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"groupName" : "tty",
"gid" : 5,
"disposition" : "system"
}
5 changes: 5 additions & 0 deletions s/system-accounts/pkg/users.group
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"groupName" : "users",
"gid" : 100,
"disposition" : "system"
}
5 changes: 5 additions & 0 deletions s/system-accounts/pkg/utmp.group
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"groupName" : "utmp",
"gid" : 13,
"disposition" : "system"
}
5 changes: 5 additions & 0 deletions s/system-accounts/pkg/video.group
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"groupName" : "video",
"gid" : 12,
"disposition" : "system"
}
5 changes: 5 additions & 0 deletions s/system-accounts/pkg/wheel.group
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"groupName" : "wheel",
"gid" : 28,
"disposition" : "system"
}
39 changes: 39 additions & 0 deletions s/system-accounts/stone.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
#
# SPDX-FileCopyrightText: © 2020-2024 Serpent OS Developers
#
# SPDX-License-Identifier: MPL-2.0
#
name : system-accounts
version : "0.1.0"
release : 3
license : MPL-2.0
homepage : https://serpentos.com
summary : Core system account definitions
description : |
System account definitions via userdb
builddeps :
- binary(jq)
install : |
%install_dir %(installroot)%(libdir)/userdb
for group in \
audio \
cdrom \
dialout \
disk \
input \
kmem \
kvm \
lp \
render \
tape \
tty \
users \
utmp \
video \
wheel \
; do
%install_file "%(pkgdir)/${group}.group" %(installroot)%(libdir)/userdb/${group}.group
gid=`jq .gid "%(pkgdir)/${group}.group"`
ln -s ${group}.group %(installroot)%(libdir)/userdb/${gid}.group
done

0 comments on commit 30010a2

Please sign in to comment.