summaryrefslogtreecommitdiffstats
path: root/rules.d
diff options
context:
space:
mode:
authorFranck Bui <fbui@suse.com>2023-12-19 13:56:58 +0100
committerYu Watanabe <watanabe.yu+github@gmail.com>2023-12-20 13:01:05 +0100
commit3553fddb1eb173f93f25d6ba3fc9b3bfeced5662 (patch)
treeb074a6d2d21d50b68cc93fc92c22d8d1c97e7f12 /rules.d
parentMerge pull request #30525 from YHNdnzj/networkctl-mask (diff)
downloadsystemd-3553fddb1eb173f93f25d6ba3fc9b3bfeced5662.tar.xz
systemd-3553fddb1eb173f93f25d6ba3fc9b3bfeced5662.zip
rules: set up tty permissions and group for /dev/hvc* nodes
Before b4bf9007cbe, the permissions and group of the hypervisor consoles were set by agetty(8).
Diffstat (limited to 'rules.d')
-rw-r--r--rules.d/50-udev-default.rules.in5
1 files changed, 1 insertions, 4 deletions
diff --git a/rules.d/50-udev-default.rules.in b/rules.d/50-udev-default.rules.in
index 10234fd9e0..bb241534e4 100644
--- a/rules.d/50-udev-default.rules.in
+++ b/rules.d/50-udev-default.rules.in
@@ -32,10 +32,7 @@ ACTION!="add", GOTO="default_end"
SUBSYSTEM=="tty", KERNEL=="ptmx", GROUP="tty", MODE="0666"
SUBSYSTEM=="tty", KERNEL=="tty", GROUP="tty", MODE="0666"
-SUBSYSTEM=="tty", KERNEL=="tty[0-9]*", GROUP="tty", MODE="0620"
-SUBSYSTEM=="tty", KERNEL=="sclp_line[0-9]*", GROUP="tty", MODE="0620"
-SUBSYSTEM=="tty", KERNEL=="ttysclp[0-9]*", GROUP="tty", MODE="0620"
-SUBSYSTEM=="tty", KERNEL=="3270/tty[0-9]*", GROUP="tty", MODE="0620"
+SUBSYSTEM=="tty", KERNEL=="tty[0-9]*|hvc[0-9]*|sclp_line[0-9]*|ttysclp[0-9]*|3270/tty[0-9]*", GROUP="tty", MODE="0620"
SUBSYSTEM=="vc", KERNEL=="vcs*|vcsa*", GROUP="tty"
KERNEL=="tty[A-Z]*[0-9]|ttymxc[0-9]*|pppox[0-9]*|ircomm[0-9]*|noz[0-9]*|rfcomm[0-9]*", GROUP="dialout"