Created
December 20, 2021 19:02
-
-
Save grawity/b87b5c873ce6d6c6b58bc59c05fc5c4b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<!-- /etc/dbus-1/system.d/hidepid.conf --> | |
<!-- This prevents users from bypassing /proc hidepid= restrictions using 'systemctl status'. --> | |
<busconfig> | |
<!-- Allow root to use systemctl --> | |
<policy user="root"> | |
<allow send_destination="org.freedesktop.systemd1" | |
send_interface="org.freedesktop.systemd1.Manager" | |
send_member="GetUnitProcesses"/> | |
</policy> | |
<!-- Optional, but can be used to match the "no-hidepid" gid= if you have it specified --> | |
<policy group="proc"> | |
<allow send_destination="org.freedesktop.systemd1" | |
send_interface="org.freedesktop.systemd1.Manager" | |
send_member="GetUnitProcesses"/> | |
</policy> | |
<!-- Deny for everyone else --> | |
<policy context="default"> | |
<deny send_destination="org.freedesktop.systemd1" | |
send_interface="org.freedesktop.systemd1.Manager" | |
send_member="GetUnitProcesses"/> | |
</policy> | |
</busconfig> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment