Bug 672407 - SELinux is preventing /usr/libexec/polkit-1/polkit-agent-helper-1 from 'read' accesses on the file /etc/localtime.
Summary: SELinux is preventing /usr/libexec/polkit-1/polkit-agent-helper-1 from 'read'...
Keywords:
Status: CLOSED DUPLICATE of bug 672409
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 14
Hardware: i386
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:2505712fae7...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-01-25 03:23 UTC by RVV
Modified: 2011-01-25 08:28 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-01-25 08:28:56 UTC
Type: ---


Attachments (Terms of Use)

Description RVV 2011-01-25 03:23:51 UTC
SELinux is preventing /usr/libexec/polkit-1/polkit-agent-helper-1 from 'read' accesses on the file /etc/localtime.

*****  Plugin restorecon (99.5 confidence) suggests  *************************

If you want to fix the label. 
/etc/localtime default label should be locale_t.
Then you can run restorecon.
Do
# /sbin/restorecon -v /etc/localtime

*****  Plugin catchall (1.49 confidence) suggests  ***************************

If you believe that polkit-agent-helper-1 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 polkit-agent-he /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                unconfined_u:unconfined_r:policykit_auth_t:s0-s0:c
                              0.c1023
Target Context                system_u:object_r:etc_runtime_t:s0
Target Objects                /etc/localtime [ file ]
Source                        polkit-agent-he
Source Path                   /usr/libexec/polkit-1/polkit-agent-helper-1
Port                          <Неизвестно>
Host                          (removed)
Source RPM Packages           polkit-0.98-4.fc14
Target RPM Packages           glibc-2.12.90-21
Policy RPM                    selinux-policy-3.9.7-19.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                   1
First Seen                    Чтв 06 Янв 2011 12:58:25
Last Seen                     Чтв 06 Янв 2011 12:58:25
Local ID                      eee0ac78-ad16-47d1-a765-be59fd9b0d1b

Raw Audit Messages
type=AVC msg=audit(1294293505.188:25131): avc:  denied  { read } for  pid=2986 comm="polkit-agent-he" name="localtime" dev=dm-3 ino=2632 scontext=unconfined_u:unconfined_r:policykit_auth_t:s0-s0:c0.c1023 tcontext=system_u:object_r:etc_runtime_t:s0 tclass=file

polkit-agent-he,policykit_auth_t,etc_runtime_t,file,read
type=SYSCALL msg=audit(1294293505.188:25131): arch=i386 syscall=open success=no exit=EACCES a0=8a2a91 a1=0 a2=1b6 a3=8a0d1a items=0 ppid=1896 pid=2986 auid=501 uid=501 gid=501 euid=0 suid=0 fsuid=0 egid=501 sgid=501 fsgid=501 tty=(none) ses=1 comm=polkit-agent-he exe=/usr/libexec/polkit-1/polkit-agent-helper-1 subj=unconfined_u:unconfined_r:policykit_auth_t:s0-s0:c0.c1023 key=(null)
polkit-agent-he,policykit_auth_t,etc_runtime_t,file,read

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

Comment 1 Miroslav Grepl 2011-01-25 08:28:56 UTC

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


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