Bug 613304 - SELinux is preventing /sbin/load_policy access to a leaked /tmp/tmpQK0JmY file descriptor.
Summary: SELinux is preventing /sbin/load_policy access to a leaked /tmp/tmpQK0JmY fil...
Status: CLOSED DUPLICATE of bug 612327
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 13
Hardware: x86_64
OS: Linux
Target Milestone: ---
Assignee: Daniel Walsh
QA Contact: Fedora Extras Quality Assurance
Whiteboard: setroubleshoot_trace_hash:b418638fb96...
Depends On:
TreeView+ depends on / blocked
Reported: 2010-07-10 16:45 UTC by Thomas Dall'Agnese
Modified: 2010-12-08 17:59 UTC (History)
13 users (show)

Clone Of:
Last Closed: 2010-07-12 09:03:56 UTC

Attachments (Terms of Use)

Description Thomas Dall'Agnese 2010-07-10 16:45:41 UTC

SELinux is preventing /sbin/load_policy access to a leaked /tmp/tmpQK0JmY file

Detailed Description:

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

SELinux denied access requested by the load_policy command. It looks like this
is either a leaked descriptor or load_policy output was redirected to a file it
is not allowed to access. Leaks usually can be ignored since SELinux is just
closing the leak and reporting the error. The application does not use the
descriptor, so it will run properly. If this is a redirection, you will not get
output in the /tmp/tmpQK0JmY. You should generate a bugzilla on selinux-policy,
and it will get routed to the appropriate package. You can safely ignore this

Allowing Access:

You can generate a local policy module to allow this access - see FAQ

Additional Information:

Source Context                system_u:system_r:load_policy_t:s0-s0:c0.c1023
Target Context                system_u:object_r:initrc_tmp_t:s0
Target Objects                /tmp/tmpQK0JmY [ file ]
Source                        load_policy
Source Path                   /sbin/load_policy
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           policycoreutils-2.0.82-13.fc13
Target RPM Packages           
Policy RPM                    selinux-policy-3.7.19-10.fc13
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Plugin Name                   leaks
Host Name                     (removed)
Platform                      Linux (removed) #1 SMP Thu
                              May 6 18:09:49 UTC 2010 x86_64 x86_64
Alert Count                   1
First Seen                    Sun 11 Jul 2010 01:43:28 AM JST
Last Seen                     Sun 11 Jul 2010 01:43:28 AM JST
Local ID                      29fdf738-a683-4c4c-ad10-82661f2cd647
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1278780208.757:94): avc:  denied  { read append } for  pid=5190 comm="load_policy" path="/tmp/tmpQK0JmY" dev=dm-0 ino=18306 scontext=system_u:system_r:load_policy_t:s0-s0:c0.c1023 tcontext=system_u:object_r:initrc_tmp_t:s0 tclass=file

node=(removed) type=SYSCALL msg=audit(1278780208.757:94): arch=c000003e syscall=59 success=yes exit=0 a0=7fc6484d8480 a1=7fc6577a7150 a2=0 a3=7fff95a73670 items=0 ppid=5186 pid=5190 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="load_policy" exe="/sbin/load_policy" subj=system_u:system_r:load_policy_t:s0-s0:c0.c1023 key=(null)

Hash String generated from  leaks,load_policy,load_policy_t,initrc_tmp_t,file,read,append
audit2allow suggests:

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

Comment 1 Miroslav Grepl 2010-07-12 09:03:56 UTC

*** 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.