Bug 551903 - SELinux is preventing /usr/sbin/nmbd access to a leaked /root/.xsession-errors file descriptor.
Summary: SELinux is preventing /usr/sbin/nmbd access to a leaked /root/.xsession-error...
Status: CLOSED DUPLICATE of bug 543970
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 12
Hardware: x86_64
OS: Linux
Target Milestone: ---
Assignee: Daniel Walsh
QA Contact: Fedora Extras Quality Assurance
Whiteboard: setroubleshoot_trace_hash:3a090a291c1...
Depends On:
TreeView+ depends on / blocked
Reported: 2010-01-03 01:27 UTC by darkkitten
Modified: 2010-01-04 15:35 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2010-01-04 15:35:18 UTC

Attachments (Terms of Use)

Description darkkitten 2010-01-03 01:27:55 UTC

SELinux is preventing /usr/sbin/nmbd access to a leaked /root/.xsession-errors
file descriptor.

Detailed Description:

[nmbd has a permissive type (nmbd_t). This access was not denied.]

SELinux denied access requested by the nmbd command. It looks like this is
either a leaked descriptor or nmbd 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 /root/.xsession-errors. 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                unconfined_u:system_r:nmbd_t:s0
Target Context                unconfined_u:object_r:admin_home_t:s0
Target Objects                /root/.xsession-errors [ file ]
Source                        nmbd
Source Path                   /usr/sbin/nmbd
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           samba-3.4.3-50.fc12
Target RPM Packages           
Policy RPM                    selinux-policy-3.6.32-63.fc12
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Plugin Name                   leaks
Host Name                     (removed)
Platform                      Linux (removed)
                     #1 SMP Mon Dec 21
                              05:33:33 UTC 2009 x86_64 x86_64
Alert Count                   5
First Seen                    Sat 02 Jan 2010 05:50:50 PM MST
Last Seen                     Sat 02 Jan 2010 05:54:03 PM MST
Local ID                      813a87f1-beda-4a9d-9c94-ad845ec4a8e8
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1262480043.241:21407): avc:  denied  { write } for  pid=5395 comm="nmbd" path="/root/.xsession-errors" dev=sda3 ino=529787 scontext=unconfined_u:system_r:nmbd_t:s0 tcontext=unconfined_u:object_r:admin_home_t:s0 tclass=file

node=(removed) type=SYSCALL msg=audit(1262480043.241:21407): arch=c000003e syscall=59 success=yes exit=0 a0=2318140 a1=231d280 a2=231b980 a3=18 items=0 ppid=5394 pid=5395 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=5 comm="nmbd" exe="/usr/sbin/nmbd" subj=unconfined_u:system_r:nmbd_t:s0 key=(null)

Hash String generated from  selinux-policy-3.6.32-63.fc12,leaks,nmbd,nmbd_t,admin_home_t,file,write
audit2allow suggests:

#============= nmbd_t ==============
#!!!! This avc can be allowed using the boolean 'samba_export_all_rw'

allow nmbd_t admin_home_t:file write;

Comment 1 Daniel Walsh 2010-01-04 15:35:18 UTC

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

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