mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2025-12-26 21:30:15 +01:00
test: use "tty" group rather than "bin"
Unlike "bin", "tty" actually means something on modern Linux distros,
and is used by a default udev rule, so it's more likely to exist on
distros than a group that just exists for historical compatibility
with who knows what.
"tty" exists on macOS, Debian, and Fedora (the criteria used for
choosing "bin" in f2905def ("policy tests: Use bin rather than
nogroup, wheel, or root")), but also fixes running the bus test for me
on NixOS, which has "tty" but not "bin".
Closes: https://gitlab.freedesktop.org/dbus/dbus/-/issues/514
Signed-off-by: Alyssa Ross <hi@alyssa.is>
This commit is contained in:
parent
9724c592a5
commit
3f988b9fb3
1 changed files with 3 additions and 3 deletions
|
|
@ -18,7 +18,7 @@
|
|||
<deny send_destination="org.freedesktop.System"/>
|
||||
<deny receive_sender="org.freedesktop.System"/>
|
||||
<deny user="root"/>
|
||||
<deny group="bin"/>
|
||||
<deny group="tty"/>
|
||||
<allow send_type="error"/>
|
||||
<allow send_type="method_call"/>
|
||||
<allow send_type="method_return"/>
|
||||
|
|
@ -38,7 +38,7 @@
|
|||
<deny send_destination="org.freedesktop.System"/>
|
||||
<deny receive_sender="org.freedesktop.System"/>
|
||||
<deny user="root"/>
|
||||
<deny group="bin"/>
|
||||
<deny group="tty"/>
|
||||
<allow send_type="error"/>
|
||||
<allow send_type="method_call"/>
|
||||
<allow send_type="method_return"/>
|
||||
|
|
@ -47,7 +47,7 @@
|
|||
<deny send_destination="org.freedesktop.Bar" send_interface="org.freedesktop.Foo" send_type="method_call"/>
|
||||
</policy>
|
||||
|
||||
<policy group="bin"/>
|
||||
<policy group="tty"/>
|
||||
<policy at_console="true"/>
|
||||
<policy at_console="false"/>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue