Bug 857447 - SELinux is preventing /usr/sbin/smbd from 'rmdir' accesses on the directory test.
Summary: SELinux is preventing /usr/sbin/smbd from 'rmdir' accesses on the directory t...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 17
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:372f6828f9566fbc8613bfb29fa...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-09-14 13:08 UTC by Adan Rehtla
Modified: 2012-09-14 13:38 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2012-09-14 13:38:09 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: type (9 bytes, text/plain)
2012-09-14 13:09 UTC, Adan Rehtla
no flags Details
File: hashmarkername (14 bytes, text/plain)
2012-09-14 13:09 UTC, Adan Rehtla
no flags Details

Description Adan Rehtla 2012-09-14 13:08:58 UTC
Additional info:
libreport version: 2.0.13
kernel:         3.5.3-1.fc17.x86_64

description:
:SELinux is preventing /usr/sbin/smbd from 'rmdir' accesses on the directory test.
:
:*****  Plugin samba_share (98.5 confidence) suggests  ************************
:
:If you want to allow smbd to have rmdir access on the test directory
:Then you need to change the label on 'test'
:Do
:# semanage fcontext -a -t samba_share_t 'test'
:# restorecon  -v 'test'
:
:*****  Plugin catchall (2.42 confidence) suggests  ***************************
:
:If you believe that smbd should be allowed rmdir access on the test directory 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 smbd /var/log/audit/audit.log | audit2allow -M mypol
:# semodule -i mypol.pp
:
:Additional Information:
:Source Context                system_u:system_r:smbd_t:s0
:Target Context                system_u:object_r:fusefs_t:s0
:Target Objects                test [ dir ]
:Source                        smbd
:Source Path                   /usr/sbin/smbd
:Port                          <Unknown>
:Host                          (removed)
:Source RPM Packages           samba-3.6.6-92.fc17.1.x86_64
:Target RPM Packages           
:Policy RPM                    selinux-policy-3.10.0-146.fc17.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Permissive
:Host Name                     (removed)
:Platform                      Linux (removed) 3.5.3-1.fc17.x86_64 #1 SMP Wed Aug
:                              29 18:46:34 UTC 2012 x86_64 x86_64
:Alert Count                   1
:First Seen                    2012-09-14 19:27:07 EST
:Last Seen                     2012-09-14 19:27:07 EST
:Local ID                      f8e33e81-18d2-4c9b-a9eb-a58d0168ed4b
:
:Raw Audit Messages
:type=AVC msg=audit(1347614827.158:540): avc:  denied  { rmdir } for  pid=3395 comm="smbd" name="test" dev="sdf1" ino=80 scontext=system_u:system_r:smbd_t:s0 tcontext=system_u:object_r:fusefs_t:s0 tclass=dir
:
:
:type=SYSCALL msg=audit(1347614827.158:540): arch=x86_64 syscall=rmdir success=yes exit=0 a0=7f7c625d7fe0 a1=7f7c625d7fe0 a2=129049f0 a3=7fffacf8fc00 items=0 ppid=3361 pid=3395 auid=4294967295 uid=0 gid=0 euid=1000 suid=1000 fsuid=1000 egid=1000 sgid=1000 fsgid=1000 tty=(none) ses=4294967295 comm=smbd exe=/usr/sbin/smbd subj=system_u:system_r:smbd_t:s0 key=(null)
:
:Hash: smbd,smbd_t,fusefs_t,dir,rmdir
:
:audit2allow
:
:#============= smbd_t ==============
:#!!!! This avc can be allowed using the boolean 'samba_share_fusefs'
:
:allow smbd_t fusefs_t:dir rmdir;
:
:audit2allow -R
:
:#============= smbd_t ==============
:#!!!! This avc can be allowed using the boolean 'samba_share_fusefs'
:
:allow smbd_t fusefs_t:dir rmdir;
:

Comment 1 Adan Rehtla 2012-09-14 13:09:01 UTC
Created attachment 612871 [details]
File: type

Comment 2 Adan Rehtla 2012-09-14 13:09:04 UTC
Created attachment 612872 [details]
File: hashmarkername

Comment 3 Miroslav Grepl 2012-09-14 13:38:09 UTC
:#============= smbd_t ==============
:#!!!! This avc can be allowed using the boolean 'samba_share_fusefs'


So execute in your terminal

# setsebool -P samba_share_fusefs 1


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