SetLocale and SetX11Keyboard auto-denied on Ubuntu
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gnome-initial-setup (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
I kept seeing dbus-daemon denials in the journal while testing setting the system locale via Gnome Initial Setup:
```
dbus-daemon[971]: [system] Rejected send message, 3 matched rules; type="method_call", sender=":1.112" (uid=118 pid=2985 comm="/
```
Digging in further I came across this configuration for dbus:
```
cat /usr/share/
<?xml version="1.0"?> <!--*-nxml-*-->
<!DOCTYPE busconfig PUBLIC "-//freedesktop
"https:/
<!--
On Debian and derivatives keymap/locales/etc are not set via localed,
but from legacy and incompatible components. But we still need to
enable localed so that GNOME can query it. Ensure not even root can
use it to modify the settings.
-->
<busconfig>
<policy user="root">
</policy>
<policy context="default">
</policy>
</busconfig>
```
Looking back through the logs, and from testing, SetX11Keyboard is also being denied.