Bug 675960 - SELinux is preventing /sbin/mount.cifs from unix_read, unix_write access on the semaphore Unknown.
Summary: SELinux is preventing /sbin/mount.cifs from unix_read, unix_write access on t...
Keywords:
Status: CLOSED INSUFFICIENT_DATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 14
Hardware: i386
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:a79434b238e...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-02-08 12:47 UTC by adriano
Modified: 2011-02-11 16:22 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-02-11 16:22:50 UTC
Type: ---


Attachments (Terms of Use)

Description adriano 2011-02-08 12:47:46 UTC
SELinux is preventing /sbin/mount.cifs from unix_read, unix_write access on the semaphore Unknown.

*****  Plugin catchall (100. confidence) suggests  ***************************

If you believe that mount.cifs should be allowed unix_read unix_write access on the Unknown sem 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 mount.cifs /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:mount_t:s0
Target Context                system_u:system_r:kernel_t:s0
Target Objects                Unknown [ sem ]
Source                        mount.cifs
Source Path                   /sbin/mount.cifs
Port                          <Sconosciuto>
Host                          (removed)
Source RPM Packages           cifs-utils-4.8.1-1.fc14
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.7-28.fc14
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed)
                              2.6.35.10-74.fc14.i686.PAE #1 SMP Thu Dec 23
                              16:10:47 UTC 2010 i686 i686
Alert Count                   3
First Seen                    mar 08 feb 2011 13:16:20 CET
Last Seen                     mar 08 feb 2011 13:42:46 CET
Local ID                      be27ba17-e650-4d5a-b7b5-131ced5e23da

Raw Audit Messages
type=AVC msg=audit(1297168966.505:35322): avc:  denied  { unix_read unix_write } for  pid=5228 comm="mount.cifs" key=180885  scontext=system_u:system_r:mount_t:s0 tcontext=system_u:system_r:kernel_t:s0 tclass=sem


type=SYSCALL msg=audit(1297168966.505:35322): arch=i386 syscall=ipc success=no exit=EACCES a0=2 a1=2c295 a2=1 a3=3ff items=0 ppid=5222 pid=5228 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=mount.cifs exe=/sbin/mount.cifs subj=system_u:system_r:mount_t:s0 key=(null)

Hash: mount.cifs,mount_t,kernel_t,sem,unix_read,unix_write

audit2allow

#============= mount_t ==============
allow mount_t kernel_t:sem { unix_read unix_write };

audit2allow -R

#============= mount_t ==============
allow mount_t kernel_t:sem { unix_read unix_write };

Comment 1 Daniel Walsh 2011-02-08 14:43:33 UTC
What were you doing when this happened?  What processes are running as kernel_t on your machine?

ps -eZ | grep kernel_t

Comment 2 adriano 2011-02-11 09:47:19 UTC
I apologize. 
I've disabled selinux because very annoyed by these continuous security reports.

I can't help you anymore. You can close bug.
Sorry


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