Bug 442585
| Summary: | SELinux policy prevents clock applet from setting timezone | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Jason Boyles <jboyles> | ||||
| Component: | selinux-policy-targeted | Assignee: | Daniel Walsh <dwalsh> | ||||
| Status: | CLOSED RAWHIDE | QA Contact: | Ben Levenson <benl> | ||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | low | ||||||
| Version: | rawhide | ||||||
| Target Milestone: | --- | ||||||
| Target Release: | --- | ||||||
| Hardware: | i686 | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2008-04-28 12:27:16 UTC | Type: | --- | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Bug Depends On: | |||||||
| Bug Blocks: | 235706, 529959 | ||||||
| Attachments: |
|
||||||
|
Description
Jason Boyles
2008-04-15 17:48:12 UTC
Created attachment 302498 [details]
SELinux troubleshooter ourput for denial when 'Set' button clicked
This is the SELinux output when the denial is thrown.
Changing selinux enforcement to 'Permissive' allows this to work just fine, but
the same error is thrown.
Why would gnomeclock need sys_ptrace? selinux-policy-3.3.1-36.fc9 I believe it has to do with policykit, which is what gnome-clock-applet-mechanism is responsible for Could policykit's use of the prctl() system call (to prevent ptrace from being used to snoop on policykit support programs) have something to do with this? After some testing, I believe the context of /usr/libexec/gnome-clock-applet-mechanism is is wrong, or the context system_u:object_r:gnomeclock_exec_t:s0 needs more capabilities. By default, /usr/libexec/gnome-clock-applet-mechanism has the context system_u:object_r:gnomeclock_exec_t:s0. If I set the context to system_u:object_r:bin_t:s0, like other similar policykit helpers, then the clock applet allows me to set the timezone with no SELinux errors. Ok, I have added that capability (sys_ptrace) to gnomeclock_t, which the file context on disk requires. gnomeclock is also allowed to change the system time which polickit helpers are not allowed to do. Fixed in selinux-policy-3.3.1-36.fc9 |