Bug 666539 - SELinux is preventing /usr/libexec/polkit-1/polkitd from 'read' accesses on the file /etc/localtime.
Summary: SELinux is preventing /usr/libexec/polkit-1/polkitd from 'read' accesses on t...
Keywords:
Status: CLOSED DUPLICATE of bug 666557
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 14
Hardware: i386
OS: Linux
low
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:b69bdce5953...
: 666543 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-12-31 14:50 UTC by Javi
Modified: 2011-03-19 19:01 UTC (History)
6 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2011-01-03 15:36:19 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Javi 2010-12-31 14:50:50 UTC
SELinux is preventing /usr/libexec/polkit-1/polkitd from 'read' accesses on the file /etc/localtime.

*****  Plugin catchall (100. confidence) suggests  ***************************

If you believe that polkitd should be allowed read access on the localtime file by default.
Then you should report this as a bug.
You can generate a local policy module to allow this access.
Do
allow this access for now by executing:
# grep /usr/libexec/polkit-1/polkitd /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:policykit_t:s0-s0:c0.c1023
Target Context                system_u:object_r:etc_runtime_t:s0
Target Objects                /etc/localtime [ file ]
Source                        polkitd
Source Path                   /usr/libexec/polkit-1/polkitd
Port                          <Desconocido>
Host                          (removed)
Source RPM Packages           polkit-0.98-4.fc14
Target RPM Packages           glibc-2.12.90-17
Policy RPM                    selinux-policy-3.9.7-3.fc14
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 2.6.35.10-74.fc14.i686 #1 SMP Thu Dec
                              23 16:17:40 UTC 2010 i686 i686
Alert Count                   9
First Seen                    mié 29 dic 2010 18:54:04 CET
Last Seen                     vie 31 dic 2010 13:16:51 CET
Local ID                      0685b8a8-ebba-4511-8288-cf4f46deb076

Raw Audit Messages
type=AVC msg=audit(1293797811.290:28): avc:  denied  { read } for  pid=1472 comm="polkitd" name="localtime" dev=sda1 ino=74273 scontext=system_u:system_r:policykit_t:s0-s0:c0.c1023 tcontext=system_u:object_r:etc_runtime_t:s0 tclass=file

polkitd,policykit_t,etc_runtime_t,file,read
type=SYSCALL msg=audit(1293797811.290:28): arch=i386 syscall=open success=no exit=EACCES a0=825a91 a1=0 a2=1b6 a3=823d1a items=0 ppid=1471 pid=1472 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=polkitd exe=/usr/libexec/polkit-1/polkitd subj=system_u:system_r:policykit_t:s0-s0:c0.c1023 key=(null)
polkitd,policykit_t,etc_runtime_t,file,read

#============= policykit_t ==============
allow policykit_t etc_runtime_t:file read;

Comment 1 Miroslav Grepl 2011-01-03 15:36:19 UTC
Execute

# restorecon -R -v /etc/localtime


We are trying to figure out where the problem is. Please reopen if the problem happens again.

Comment 2 Miroslav Grepl 2011-01-03 15:41:06 UTC
*** Bug 666543 has been marked as a duplicate of this bug. ***

Comment 3 Miroslav Grepl 2011-01-03 15:54:03 UTC

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


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