Bug 870678 - f18b tc6 timedatectl requires selinux to be either disabled or permissive in order to change the timezone
Summary: f18b tc6 timedatectl requires selinux to be either disabled or permissive in ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 18
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 1549506
TreeView+ depends on / blocked
 
Reported: 2012-10-27 20:46 UTC by Reartes Guillermo
Modified: 2018-02-27 09:53 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1549506 (view as bug list)
Environment:
Last Closed: 2012-12-20 15:14:33 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Reartes Guillermo 2012-10-27 20:46:21 UTC
Description of problem:

It is not currently possible to use 'timedatectl' to change the timezone without setting selinux to permissive (or disabled).


Version-Release number of selected component (if applicable):
F18b TC6

How reproducible:
always

Steps to Reproduce:

# timedatectl 
      Local time: Sat, 2012-10-27 10:24:15 PDT
  Universal time: Sat, 2012-10-27 17:24:15 UTC
        RTC time: Sat, 2012-10-27 17:24:15
        Timezone: America/Los_Angeles
     NTP enabled: no
NTP synchronized: no
 RTC in local TZ: no

# timedatectl set-timezone America/Buenos_Aires
Failed to issue method call: Access denied

# setenforce 0
# timedatectl set-timezone America/Buenos_Aires

# timedatectl 
      Local time: Sat, 2012-10-27 10:24:28 PDT
  Universal time: Sat, 2012-10-27 17:24:28 UTC
        RTC time: Sat, 2012-10-27 17:24:28
        Timezone: America/Buenos_Aires
     NTP enabled: no
NTP synchronized: no
 RTC in local TZ: no
  
Actual results:
selinux must be disabled or set to permissive in order to change
the timezone.

Expected results:
depends.

Additional info:
i tried a 'getsebool -a | grep -i date' and it did not shield any tun-able. Also i don't know what defaults will F18 will have. It currently looks like a bug.

Output of /var/log/secure

Oct 27 13:27:24 lalalalololo polkitd[456]: Registered Authentication Agent for unix-process:1953:390445 (system bus name :1.133 [/usr/bin/pkttyagent --notify-fd 5 --fallback], object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8)
Oct 27 13:27:24 lalalalololo polkitd[456]: Unregistered Authentication Agent for unix-process:1953:390445 (system bus name :1.133, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8) (disconnected from bus)

Comment 1 Miroslav Grepl 2012-10-29 16:05:10 UTC
What does

# ausearch -m avc,user_avc -ts recent

Comment 2 Daniel Walsh 2012-10-30 20:00:52 UTC
Fixed in selinux-policy-3.11.1-48.fc18.noarch

Comment 3 Fedora Update System 2012-11-05 21:07:13 UTC
selinux-policy-3.11.1-50.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/selinux-policy-3.11.1-50.fc18

Comment 4 Fedora Update System 2012-11-06 18:55:28 UTC
Package selinux-policy-3.11.1-50.fc18:
* should fix your issue,
* was pushed to the Fedora 18 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing selinux-policy-3.11.1-50.fc18'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-17705/selinux-policy-3.11.1-50.fc18
then log in and leave karma (feedback).

Comment 5 Fedora Update System 2012-12-20 15:14:35 UTC
selinux-policy-3.11.1-50.fc18 has been pushed to the Fedora 18 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.