Bug 864603
Summary: | systemd[1]: SELinux policy denies access. (cannot change timezone from gnome control center) | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Steve Tyler <stephent98> | ||||||
Component: | selinux-policy-targeted | Assignee: | Miroslav Grepl <mgrepl> | ||||||
Status: | CLOSED WONTFIX | QA Contact: | Ben Levenson <benl> | ||||||
Severity: | unspecified | Docs Contact: | |||||||
Priority: | unspecified | ||||||||
Version: | 18 | CC: | accounts+fedora, dwalsh, reklov, sangu.fedora, tuksgig | ||||||
Target Milestone: | --- | ||||||||
Target Release: | --- | ||||||||
Hardware: | Unspecified | ||||||||
OS: | Unspecified | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2014-02-05 12:31:05 UTC | Type: | Bug | ||||||
Regression: | --- | Mount Type: | --- | ||||||
Documentation: | --- | CRM: | |||||||
Verified Versions: | Category: | --- | |||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||
Embargoed: | |||||||||
Attachments: |
|
Description
Steve Tyler
2012-10-09 17:53:40 UTC
Created attachment 624211 [details]
/var/log/messages
Created attachment 624213 [details]
/var/log/audit/audit.log
[Snippet from /var/log/messages] Oct 9 10:17:56 localhost systemd[1]: Started Time & Date Service. Oct 9 10:17:56 localhost systemd[1]: SELinux policy denies access. Oct 9 10:17:56 localhost systemd-timedated[1991]: Failed to issue method call: Access denied Oct 9 10:17:56 localhost systemd-timedated[1991]: Failed to determine whether NTP is enabled: Input/output error Oct 9 10:17:56 localhost systemd[1]: systemd-timedated.service: main process exited, code=exited, status=1 Oct 9 10:17:56 localhost systemd[1]: Unit systemd-timedated.service entered failed state. ... Oct 9 10:18:07 localhost systemd[1]: Starting Time & Date Service... Oct 9 10:18:07 localhost systemd-timedated[2001]: /etc/localtime should be a symbolic link to a timezone data file in /usr/share/zoneinfo/. The first bug is causing the second bug. Since /etc/localtime is a file SELinux is preventing it from being written over. If you remove the file or set it up as a link it should work fine. (In reply to comment #4) > The first bug is causing the second bug. Since /etc/localtime is a file > SELinux is preventing it from being written over. If you remove the file or > set it up as a link it should work fine. OK. So is this then NOTABUG? Also, I didn't get any SELinux alerts for this, but I got several alerts for firewalld that occurred at about the same time. It would save a lot of my time if I could just use the automated reporting system ... (In reply to comment #4) > ... If you remove the file or > set it up as a link it should work fine. I removed /etc/localtime and attempted to set the timezone from gnome-control-center. systemd did not create /etc/localtime: Oct 9 22:30:34 localhost systemd[1]: Starting Time & Date Service... Oct 9 22:30:34 localhost systemd-timedated[2156]: Failed to get target of /etc/localtime: No such file or directory How about if you set the link correctly, does it work then? (In reply to comment #7) > How about if you set the link correctly, does it work then? That didn't work either. When g-c-c starts, it displays the timezone for Europe/London. 1. rm /etc/localtime 2. reboot 3. start g-c-c displayed timezone is Europe/London 4. unlock and set timezone to America/Los_Angeles 5. close g-c-c /etc/localtime does not exist 6. $ cd /etc $ sudo ln -s ../usr/share/zoneinfo/America/Los_Angeles localtime date shows PDT 7. start g-c-c displayed timezone is Europe/London unlock and set timezone to America/Los_Angeles 8. close g-c-c date shows PDT 9. start g-c-c displayed timezone is Europe/London 10. close g-c-c without any changes 11. setenforce permissive 12. start g-c-c displayed timezone is America/Los_Angeles unlock and set timezone to Europe/Berlin 13. close g-c-c date shows CEST /etc/localtime links to ../usr/share/zoneinfo/Europe/Berlin The experiment in Comment 8 did not show whether g-c-c was in fact setting the timezone. Here, after manually creating the link to America/Los_Angeles, I tried setting the timezone to Asia/Tokyo from g-c-c. That didn't work. 1. rm /etc/localtime 2. reboot date shows UTC 3. start g-c-c displayed timezone is Europe/London 4. close g-c-c without any changes 5. $ cd /etc $ sudo ln -s ../usr/share/zoneinfo/America/Los_Angeles localtime date shows PDT 6. start g-c-c displayed timezone is Europe/London 7. unlock and set timezone to Asia/Tokyo 8. close g-c-c date shows PDT 10. setenforce permissive 11. start g-c-c displayed timezone is America/Los_Angeles unlock and set timezone to Asia/Tokyo 12. close g-c-c date shows JST /etc/localtime links to ../usr/share/zoneinfo/Asia/Tokyo This looks like a duplicate: Bug 861525 - Could not set system timezone in date & time *** Bug 861525 has been marked as a duplicate of this bug. *** This message is a reminder that Fedora 18 is nearing its end of life. Approximately 4 (four) weeks from now Fedora will stop maintaining and issuing updates for Fedora 18. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as WONTFIX if it remains open with a Fedora 'version' of '18'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version prior to Fedora 18's end of life. Thank you for reporting this issue and we are sorry that we may not be able to fix it before Fedora 18 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior to Fedora 18's end of life. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete. Fedora 18 changed to end-of-life (EOL) status on 2014-01-14. Fedora 18 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug. If you can reproduce this bug against a currently maintained version of Fedora please feel free to reopen this bug against that version. If you are unable to reopen this bug, please file a new report against the current release. If you experience problems, please add a comment to this bug. Thank you for reporting this bug and we are sorry it could not be fixed. |