Bug 653867 - SELinux is preventing /usr/libexec/gsd-datetime-mechanism "unlink" access on localtime.
Summary: SELinux is preventing /usr/libexec/gsd-datetime-mechanism "unlink" access ...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: anaconda
Version: 14
Hardware: x86_64
OS: Linux
low
medium
Target Milestone: ---
Assignee: Anaconda Maintenance Team
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:e86ddfb30f2...
: localtime 669356 670006 672048 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-11-16 10:27 UTC by moabi2000
Modified: 2012-08-16 22:29 UTC (History)
9 users (show)

Fixed In Version: anaconda-15.8
Clone Of:
Environment:
Last Closed: 2012-08-16 22:29:50 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description moabi2000 2010-11-16 10:27:27 UTC
Summary:

SELinux is preventing /usr/libexec/gsd-datetime-mechanism "unlink" access on
localtime.

Detailed Description:

[SELinux is in permissive mode. This access was not denied.]

SELinux denied access requested by gsd-datetime-me. It is not expected that this
access is required by gsd-datetime-me and this access may signal an intrusion
attempt. It is also possible that the specific version or configuration of the
application is causing it to require additional access.

Allowing Access:

You can generate a local policy module to allow this access - see FAQ
(http://docs.fedoraproject.org/selinux-faq-fc5/#id2961385) Please file a bug
report.

Additional Information:

Source Context                system_u:system_r:gnomeclock_t:s0-s0:c0.c1023
Target Context                system_u:object_r:etc_runtime_t:s0
Target Objects                localtime [ file ]
Source                        gsd-datetime-me
Source Path                   /usr/libexec/gsd-datetime-mechanism
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           gnome-settings-daemon-2.32.0-2.fc14
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.7-10.fc14
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Plugin Name                   catchall
Host Name                     (removed)
Platform                      Linux (removed) 2.6.35.6-48.fc14.x86_64 #1 SMP Fri Oct
                              22 15:36:08 UTC 2010 x86_64 x86_64
Alert Count                   1
First Seen                    Sun 14 Nov 2010 11:24:56 PM GMT
Last Seen                     Sun 14 Nov 2010 11:24:56 PM GMT
Local ID                      9bc9d17f-f4ea-4de9-a138-b2dac73320bf
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1289777096.725:31324): avc:  denied  { unlink } for  pid=3123 comm="gsd-datetime-me" name="localtime" dev=dm-1 ino=2041 scontext=system_u:system_r:gnomeclock_t:s0-s0:c0.c1023 tcontext=system_u:object_r:etc_runtime_t:s0 tclass=file

node=(removed) type=SYSCALL msg=audit(1289777096.725:31324): arch=c000003e syscall=82 success=yes exit=0 a0=6bd370 a1=405d79 a2=6cfba0 a3=7fff1c43a840 items=0 ppid=1 pid=3123 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="gsd-datetime-me" exe="/usr/libexec/gsd-datetime-mechanism" subj=system_u:system_r:gnomeclock_t:s0-s0:c0.c1023 key=(null)



Hash String generated from  catchall,gsd-datetime-me,gnomeclock_t,etc_runtime_t,file,unlink
audit2allow suggests:

#============= gnomeclock_t ==============
allow gnomeclock_t etc_runtime_t:file unlink;

Comment 1 Miroslav Grepl 2010-11-16 11:40:02 UTC
Ok, it is not for first time what we see this issue.

Any idea what script modified /etc/localtime?

Could try to execute

# grep -r localtime /etc/init.d/




# restorecon -R -v /etc/localtime

will fix it.

Comment 2 moabi2000 2010-11-16 11:45:59 UTC
$ grep -r localtime /etc/init.d/
/etc/init.d/avahi-daemon:       if [ -s /etc/localtime ]; then
/etc/init.d/avahi-daemon:           cp -fp /etc/localtime /etc/avahi/etc >/dev/null 2>&1


I was running F13, did a preupgrade to 14 and the problem appeared after that.

Comment 3 Daniel Walsh 2010-11-16 16:41:08 UTC
Is plrupgrade part of anaconda?

Comment 4 Chris Lumens 2010-11-16 16:49:14 UTC
preupgrade is a program that runs before anaconda and downloads all the packages.  That way you don't spend as long in anaconda itself.

Anyway, we'll start applying a label to /etc/localtime in the next build of anaconda.

Comment 5 Chris Lumens 2011-01-05 20:21:16 UTC
*** Bug 666557 has been marked as a duplicate of this bug. ***

Comment 6 Miroslav Grepl 2011-01-13 13:52:06 UTC
*** Bug 669356 has been marked as a duplicate of this bug. ***

Comment 7 Miroslav Grepl 2011-01-17 11:49:15 UTC
*** Bug 670006 has been marked as a duplicate of this bug. ***

Comment 8 Miroslav Grepl 2011-01-24 14:34:46 UTC
*** Bug 672048 has been marked as a duplicate of this bug. ***

Comment 9 Fedora End Of Life 2012-08-16 22:29:53 UTC
This message is a notice that Fedora 14 is now at end of life. Fedora 
has stopped maintaining and issuing updates for Fedora 14. It is 
Fedora's policy to close all bug reports from releases that are no 
longer maintained.  At this time, all open bugs with a Fedora 'version'
of '14' have been closed as WONTFIX.

(Please note: Our normal process is to give advanced warning of this 
occurring, but we forgot to do that. A thousand apologies.)

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, feel free to reopen 
this bug and simply change the 'version' to a later Fedora version.

Bug Reporter: Thank you for reporting this issue and we are sorry that 
we were unable to fix it before Fedora 14 reached 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 to click on 
"Clone This Bug" (top right of this page) and open it against that 
version of Fedora.

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.

The process we are following is described here: 
http://fedoraproject.org/wiki/BugZappers/HouseKeeping


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