Bug 682961 - SELinux is preventing /usr/sbin/tzdata-update from read, append access on the file /tmp/tmpKvxmqb.
Summary: SELinux is preventing /usr/sbin/tzdata-update from read, append access on the...
Keywords:
Status: CLOSED DUPLICATE of bug 612327
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 13
Hardware: i386
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:2112b114822...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-03-08 06:13 UTC by nomnex
Modified: 2011-07-31 20:09 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-03-08 11:48:31 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description nomnex 2011-03-08 06:13:55 UTC
SELinux is preventing /usr/sbin/tzdata-update from read, append access on the file /tmp/tmpKvxmqb.

*****  Plugin catchall (50.5 confidence) suggests  ***************************

If you believe that tzdata-update should be allowed read append access on the tmpKvxmqb 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 tzdata-update /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

*****  Plugin leaks (50.5 confidence) suggests  ******************************

If you want to ignore tzdata-update trying to read append access the tmpKvxmqb file, because you believe it should not need this access.
Then you should report this as a bug.  
You can generate a local policy module to dontaudit this access.
Do
# grep /usr/sbin/tzdata-update /var/log/audit/audit.log | audit2allow -D -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:tzdata_t:s0-s0:c0.c1023
Target Context                system_u:object_r:initrc_tmp_t:s0
Target Objects                /tmp/tmpKvxmqb [ file ]
Source                        tzdata-update
Source Path                   /usr/sbin/tzdata-update
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           glibc-common-2.12.2-1
Target RPM Packages           
Policy RPM                    selinux-policy-3.7.19-80.fc13
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 2.6.34.7-66.fc13.i686 #1 SMP Wed Dec
                              15 07:40:25 UTC 2010 i686 i686
Alert Count                   1
First Seen                    Tue 08 Mar 2011 01:59:43 PM JST
Last Seen                     Tue 08 Mar 2011 01:59:43 PM JST
Local ID                      4e44c3d3-6a96-489a-b9c9-bb24a475b113

Raw Audit Messages
type=AVC msg=audit(1299560383.775:21631): avc:  denied  { read append } for  pid=6514 comm="tzdata-update" path="/tmp/tmpKvxmqb" dev=sda1 ino=8953 scontext=system_u:system_r:tzdata_t:s0-s0:c0.c1023 tcontext=system_u:object_r:initrc_tmp_t:s0 tclass=file


type=AVC msg=audit(1299560383.775:21631): avc:  denied  { read append } for  pid=6514 comm="tzdata-update" path="/tmp/tmpKvxmqb" dev=sda1 ino=8953 scontext=system_u:system_r:tzdata_t:s0-s0:c0.c1023 tcontext=system_u:object_r:initrc_tmp_t:s0 tclass=file


type=SYSCALL msg=audit(1299560383.775:21631): arch=i386 syscall=execve success=yes exit=0 a0=b618088 a1=b618060 a2=eab1ff0 a3=0 items=0 ppid=6351 pid=6514 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=tzdata-update exe=/usr/sbin/tzdata-update subj=system_u:system_r:tzdata_t:s0-s0:c0.c1023 key=(null)

Hash: tzdata-update,tzdata_t,initrc_tmp_t,file,read,append

audit2allow

#============= tzdata_t ==============
allow tzdata_t initrc_tmp_t:file { read append };

audit2allow -R

#============= tzdata_t ==============
allow tzdata_t initrc_tmp_t:file { read append };

Comment 1 Miroslav Grepl 2011-03-08 11:48:31 UTC
What does the following output

# ls -lZ /usr/libexec/packagekitd 
-rwxr-xr-x. root root system_u:object_r:rpm_exec_t:s0  /usr/libexec/packagekitd

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


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