Bug 640784 - SELinux is preventing /usr/sbin/smbd "sys_admin" access .
Summary: SELinux is preventing /usr/sbin/smbd "sys_admin" access .
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 14
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Daniel Walsh
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:057c230bdd8...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-10-06 19:33 UTC by Jeff Layton
Modified: 2014-06-18 07:40 UTC (History)
5 users (show)

Fixed In Version: selinux-policy-3.9.7-1.fc14
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-10-15 12:41:09 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Jeff Layton 2010-10-06 19:33:19 UTC
Summary:

SELinux is preventing /usr/sbin/smbd "sys_admin" access .

Detailed Description:

SELinux denied access requested by smbd. It is not expected that this access is
required by smbd and this access may signal an intrusion attempt. It is also
possible that the specific version or configuration of the application is
causing it to require additional access.

Allowing Access:

You can generate a local policy module to allow this access - see FAQ
(http://docs.fedoraproject.org/selinux-faq-fc5/#id2961385) Please file a bug
report.

Additional Information:

Source Context                system_u:system_r:smbd_t:s0
Target Context                system_u:system_r:smbd_t:s0
Target Objects                None [ capability ]
Source                        smbd
Source Path                   /usr/sbin/smbd
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           samba-3.5.5-68.fc14
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.5-7.fc14
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Plugin Name                   catchall
Host Name                     (removed)
Platform                      Linux tlielax.poochiereds.net
                              2.6.35.4-28.fc14.x86_64 #1 SMP Wed Sep 15 01:56:54
                              UTC 2010 x86_64 x86_64
Alert Count                   4
First Seen                    Wed 06 Oct 2010 03:31:38 PM EDT
Last Seen                     Wed 06 Oct 2010 03:31:38 PM EDT
Local ID                      1a40e0bc-39e3-4c36-8b11-bf2a4d76dd0c
Line Numbers                  

Raw Audit Messages            

node=tlielax.poochiereds.net type=AVC msg=audit(1286393498.574:70): avc:  denied  { sys_admin } for  pid=4483 comm="smbd" capability=21  scontext=system_u:system_r:smbd_t:s0 tcontext=system_u:system_r:smbd_t:s0 tclass=capability

node=tlielax.poochiereds.net type=SYSCALL msg=audit(1286393498.574:70): arch=c000003e syscall=179 success=no exit=-1 a0=30001 a1=7f09c1de6730 a2=0 a3=7fffb6a0b880 items=0 ppid=1768 pid=4483 auid=4294967295 uid=0 gid=0 euid=0 suid=50000 fsuid=0 egid=0 sgid=50000 fsgid=0 tty=(none) ses=4294967295 comm="smbd" exe="/usr/sbin/smbd" subj=system_u:system_r:smbd_t:s0 key=(null)



Hash String generated from  catchall,smbd,smbd_t,smbd_t,capability,sys_admin
audit2allow suggests:

#============= smbd_t ==============
allow smbd_t self:capability sys_admin;

Comment 1 Jeff Layton 2010-10-06 19:41:42 UTC
syscall=179 == quotactl ?

Comment 2 Daniel Walsh 2010-10-07 13:03:09 UTC
Simo does samba do something to change quota?

Comment 3 Simo Sorce 2010-10-07 13:28:30 UTC
Yes, admins are allowed to change the quota for users through the appropriate interface.

Comment 4 Daniel Walsh 2010-10-07 13:33:04 UTC
Miroslav can you add this to F13 policy?

Fixed in selinux-policy-3.9.5-12.fc14

Comment 5 Miroslav Grepl 2010-10-08 08:26:57 UTC
Added to selinux-policy-3.7.19-65.fc13

Comment 6 Fedora Update System 2010-10-13 16:12:56 UTC
selinux-policy-3.9.7-1.fc14 has been submitted as an update for Fedora 14.
https://admin.fedoraproject.org/updates/selinux-policy-3.9.7-1.fc14

Comment 7 Fedora Update System 2010-10-13 21:20:37 UTC
selinux-policy-3.9.7-1.fc14 has been pushed to the Fedora 14 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update selinux-policy'.  You can provide feedback for this update here: https://admin.fedoraproject.org/updates/selinux-policy-3.9.7-1.fc14

Comment 8 Fedora Update System 2010-10-15 12:40:34 UTC
selinux-policy-3.9.7-1.fc14 has been pushed to the Fedora 14 stable repository.  If problems still persist, please make note of it in this bug report.


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