1- From dfdd57b81916ac4c9a69b4c4400a9145d9746e9f Mon Sep 17 00:00:00 2001
1+ From 24112f5adb393febab43dbff3a8533146b25d7a3 Mon Sep 17 00:00:00 2001
22From: "Jan Alexander Steffens (heftig)" <jan.steffens@gmail.com>
33Date: Tue, 6 Mar 2018 23:39:47 +0100
44Subject: [PATCH] Use Arch Linux' device access groups
@@ -14,14 +14,15 @@ Subject: [PATCH] Use Arch Linux' device access groups
1414 4 files changed, 19 insertions(+), 19 deletions(-)
1515
1616diff --git a/meson.build b/meson.build
17- index d392610625..ab8689da68 100644
17+ index e87c8ea2ec..8f56e87b68 100644
1818--- a/meson.build
1919+++ b/meson.build
20- @@ -940,19 +940,19 @@ conf.set_quoted('NOBODY_GROUP_NAME', nobody_group)
20+ @@ -949,20 +949,20 @@ conf.set_quoted('NOBODY_GROUP_NAME', nobody_group)
2121 static_ugids = []
2222 foreach option : ['adm-gid',
2323 'audio-gid',
2424- 'cdrom-gid',
25+ 'clock-gid',
2526- 'dialout-gid',
2627 'disk-gid',
2728 'input-gid',
@@ -41,21 +42,23 @@ index d392610625..ab8689da68 100644
4142 'wheel-gid',
4243 'systemd-journal-gid',
4344diff --git a/meson_options.txt b/meson_options.txt
44- index 78ec25bfa3..0ac81db762 100644
45+ index c616f23297..3999595c2f 100644
4546--- a/meson_options.txt
4647+++ b/meson_options.txt
47- @@ -287,10 +287,6 @@ option('adm-gid', type : 'integer', value : 0,
48+ @@ -289,12 +289,8 @@ option('adm-gid', type : 'integer', value : 0,
4849 description : 'soft-static allocation for the "adm" group')
4950 option('audio-gid', type : 'integer', value : 0,
5051 description : 'soft-static allocation for the "audio" group')
5152- option('cdrom-gid', type : 'integer', value : 0,
5253- description : 'soft-static allocation for the "cdrom" group')
54+ option('clock-gid', type : 'integer', value : 0,
55+ description : 'soft-static allocation for the "clock" group')
5356- option('dialout-gid', type : 'integer', value : 0,
5457- description : 'soft-static allocation for the "dialout" group')
5558 option('disk-gid', type : 'integer', value : 0,
5659 description : 'soft-static allocation for the "disk" group')
5760 option('input-gid', type : 'integer', value : 0,
58- @@ -301 ,18 +297 ,22 @@ option('kvm-gid', type : 'integer', value : 0,
61+ @@ -305 ,18 +301 ,22 @@ option('kvm-gid', type : 'integer', value : 0,
5962 description : 'soft-static allocation for the "kvm" group')
6063 option('lp-gid', type : 'integer', value : 0,
6164 description : 'soft-static allocation for the "lp" group')
@@ -81,19 +84,19 @@ index 78ec25bfa3..0ac81db762 100644
8184 description : 'soft-static allocation for the "video" group')
8285 option('wheel-gid', type : 'integer', value : 0,
8386diff --git a/rules.d/50-udev-default.rules.in b/rules.d/50-udev-default.rules.in
84- index 6f80feeecf..40c1bf3dbc 100644
87+ index 078a78ad1a..c54ef92943 100644
8588--- a/rules.d/50-udev-default.rules.in
8689+++ b/rules.d/50-udev-default.rules.in
87- @@ -39 ,7 +39 ,7 @@ SUBSYSTEM=="tty", KERNEL=="ptmx", GROUP="tty", MODE="0666"
90+ @@ -41 ,7 +41 ,7 @@ SUBSYSTEM=="tty", KERNEL=="ptmx", GROUP="tty", MODE="0666"
8891 SUBSYSTEM=="tty", KERNEL=="tty", GROUP="tty", MODE="0666"
89- SUBSYSTEM=="tty", KERNEL=="tty[0-9]*|hvc[0-9]*|sclp_line[0-9]*|ttysclp[0-9]*|3270/tty[0-9]*", GROUP="tty", MODE="0620 "
92+ SUBSYSTEM=="tty", KERNEL=="tty[0-9]*|hvc[0-9]*|sclp_line[0-9]*|ttysclp[0-9]*|3270/tty[0-9]*", GROUP="tty", MODE="{{TTY_MODE}} "
9093 SUBSYSTEM=="vc", KERNEL=="vcs*|vcsa*", GROUP="tty"
9194- KERNEL=="tty[A-Z]*[0-9]|ttymxc[0-9]*|pppox[0-9]*|ircomm[0-9]*|noz[0-9]*|rfcomm[0-9]*", GROUP="dialout"
9295+ KERNEL=="tty[A-Z]*[0-9]|ttymxc[0-9]*|pppox[0-9]*|ircomm[0-9]*|noz[0-9]*|rfcomm[0-9]*", GROUP="uucp"
9396
9497 SUBSYSTEM=="mem", KERNEL=="mem|kmem|port", GROUP="kmem", MODE="0640"
9598
96- @@ -86 ,13 +86 ,13 @@ KERNEL=="irlpt[0-9]*", GROUP="lp"
99+ @@ -88 ,13 +88 ,13 @@ KERNEL=="irlpt[0-9]*", GROUP="lp"
97100 SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ENV{ID_USB_INTERFACES}=="*:0701??:*", GROUP="lp"
98101
99102 SUBSYSTEM=="block", GROUP="disk"
@@ -114,14 +117,15 @@ index 6f80feeecf..40c1bf3dbc 100644
114117 KERNEL=="qft[0-9]*|nqft[0-9]*|zqft[0-9]*|nzqft[0-9]*|rawqft[0-9]*|nrawqft[0-9]*", GROUP="disk"
115118 KERNEL=="loop-control", GROUP="disk", OPTIONS+="static_node=loop-control"
116119diff --git a/sysusers.d/basic.conf.in b/sysusers.d/basic.conf.in
117- index 992af346ca..86e622e5dd 100644
120+ index 503a4c4dac..0052690d97 100644
118121--- a/sysusers.d/basic.conf.in
119122+++ b/sysusers.d/basic.conf.in
120- @@ -24,17 +24,17 @@ g utmp {{UTMP_GID }} - -
123+ @@ -24,18 +24,18 @@ g utmp {{UTMP_GID }} - -
121124
122125 # Physical and virtual hardware access groups
123126 g audio {{AUDIO_GID }} - -
124127- g cdrom {{CDROM_GID }} - -
128+ g clock {{CLOCK_GID }} - -
125129- g dialout {{DIALOUT_GID}} - -
126130 g disk {{DISK_GID }} - -
127131 g input {{INPUT_GID }} - -
0 commit comments