|
| 1 | +[user.root] |
| 2 | +rules = [ |
| 3 | + # Allow activator interface |
| 4 | + { send_destination = "org.freedesktop.DBus", send_interface = "org.freedesktop.systemd1.Activator", allow = true }, |
| 5 | + # Allow monitoring |
| 6 | + { send_destination = "org.freedesktop.DBus", send_interface = "org.freedesktop.DBus.Monitoring", allow = true }, |
| 7 | + # Allow stats interface |
| 8 | + { send_destination = "org.freedesktop.DBus", send_interface = "org.freedesktop.DBus.Debug.Stats", allow = true } |
| 9 | +] |
| 10 | + |
| 11 | +[default] |
| 12 | +rules = [ |
| 13 | + # Allow all users to connect |
| 14 | + { user = "*", allow = true }, |
| 15 | + # Deny owning names |
| 16 | + { own = "*", allow = false }, |
| 17 | + { send_type = "method-call", allow = false }, |
| 18 | + # Allow signals |
| 19 | + { send_type = "signal", allow = true }, |
| 20 | + # Allow replies |
| 21 | + # This is a useless rule, it is dropped from the rules at runtime |
| 22 | + # { send_type = "method_return", send_requested_reply = true, allow = true }, |
| 23 | + # This is a uselss rule, it is dropped from the rules at runtime |
| 24 | + # { send_type = "error", send_requested_reply = true, allow = true }, |
| 25 | + # Allow all receives |
| 26 | + { receive_type = "method-call", allow = true }, |
| 27 | + # This is a userless rule, it is dropped from the rules at runtime |
| 28 | + # { receive_type = "method-return", allow = true }, |
| 29 | + # This is a userless rule, it is dropped from the rules at runtime |
| 30 | + # { receive_type = "error", allow = true }, |
| 31 | + { receive_type = "signal", allow = true }, |
| 32 | + # Allow DBus interface access |
| 33 | + { send_destination = "org.freedesktop.DBus", send_interface = "org.freedesktop.DBus", allow = true }, |
| 34 | + { send_destination = "org.freedesktop.DBus", send_interface = "org.freedesktop.DBus.Introspectable", allow = true }, |
| 35 | + { send_destination = "org.freedesktop.DBus", send_interface = "org.freedesktop.DBus.Properties", allow = true }, |
| 36 | + # Deny specific bus services |
| 37 | + { send_destination = "org.freedesktop.DBus", send_interface = "org.freedesktop.DBus", send_member = "UpdateActivationEnvironment", allow = false }, |
| 38 | + { send_destination = "org.freedesktop.DBus", send_interface = "org.freedesktop.DBus.Debug.Stats", allow = false }, |
| 39 | + { send_destination = "org.freedesktop.DBus", send_interface = "org.freedesktop.systemd1.Activator", allow = false } |
| 40 | +] |
0 commit comments