Bug 895374 - timedatectl unable to set RTC local flag
Summary: timedatectl unable to set RTC local flag
Keywords:
Status: CLOSED DUPLICATE of bug 881577
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy-targeted
Version: 18
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Ben Levenson
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-01-15 06:47 UTC by vvs
Modified: 2013-01-15 11:16 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-01-15 11:16:27 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description vvs 2013-01-15 06:47:26 UTC
Description of problem:

While trying to set RTC local flag I've got AVC denial. Looks like it doesn't allow to create a temporary file in /etc. timedatectl changes /etc/adjtime to store RTC local flag there. Apparently it creates a temporary file there.

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

selinux-policy-targeted-3.11.1-66.fc18.noarch

How reproducible:

Always

Steps to Reproduce:
1. timedatectl set-local-rtc [0|1]
  
Actual results:

type=AVC msg=audit(1358231397.603:79): avc:  denied  { create } for  pid=1413 comm="systemd-timedat" name=".adjtimedVsHEL" scontext=system_u:system_r:gnomeclock_t:s0 tcontext=system_u:object_r:etc_t:s0 tclass=file

Expected results:

It should work

Additional info:

Comment 1 Miroslav Grepl 2013-01-15 11:16:27 UTC

*** This bug has been marked as a duplicate of bug 881577 ***


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