Bug 912910 - SELinux is preventing /usr/sbin/glusterfsd (deleted) from read access on the lnk_file /srv/media/.glusterfs/00/00/00000000-0000-0000-0000-000000000001
Summary: SELinux is preventing /usr/sbin/glusterfsd (deleted) from read access on the ...
Keywords:
Status: CLOSED DUPLICATE of bug 912908
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 18
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-02-20 00:57 UTC by Michael Cronenworth
Modified: 2013-02-20 10:27 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-02-20 10:27:57 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Michael Cronenworth 2013-02-20 00:57:36 UTC
Description of problem:
SELinux is preventing /usr/sbin/glusterfsd (deleted) from read access on the lnk_file /srv/media/.glusterfs/00/00/00000000-0000-0000-0000-000000000001.

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

If you believe that glusterfsd (deleted) should be allowed read access on the 00000000-0000-0000-0000-000000000001 lnk_file 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 glusterfsd /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp


Additional Information:
Source Context                system_u:system_r:glusterd_t:s0
Target Context                system_u:object_r:var_t:s0
Target Objects                /srv/media/.glusterfs/00/00/00000000-0000-0000-000
                              0-000000000001 [ lnk_file ]
Source                        glusterfsd
Source Path                   /usr/sbin/glusterfsd (deleted)
Port                          <Unknown>
Host                          balthasar.cchtml.com
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.11.1-79.fc18.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     balthasar.cchtml.com
Platform                      Linux balthasar.cchtml.com 3.7.7-201.fc18.x86_64
                              #1 SMP Tue Feb 12 22:35:01 UTC 2013 x86_64 x86_64
Alert Count                   2
First Seen                    2013-02-19 18:44:47 CST
Last Seen                     2013-02-19 18:45:34 CST
Local ID                      2435ba2c-df80-4452-b6fb-4670c5301f2b

Raw Audit Messages
type=AVC msg=audit(1361321134.546:14803): avc:  denied  { read } for  pid=2766 comm="glusterfsd" name="00000000-0000-0000-0000-000000000001" dev="dm-1" ino=127336452 scontext=system_u:system_r:glusterd_t:s0 tcontext=system_u:object_r:var_t:s0 tclass=lnk_file


type=SYSCALL msg=audit(1361321134.546:14803): arch=x86_64 syscall=readlink success=yes exit=ENOEXEC a0=7ffd0dad8910 a1=7ffd0dad86a0 a2=200 a3=40 items=0 ppid=1 pid=2766 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 ses=4294967295 tty=(none) comm=glusterfsd exe=2F7573722F7362696E2F676C7573746572667364202864656C6574656429 subj=system_u:system_r:glusterd_t:s0 key=(null)

Hash: glusterfsd,glusterd_t,var_t,lnk_file,read

audit2allow

#============= glusterd_t ==============
allow glusterd_t var_t:lnk_file read;

audit2allow -R

#============= glusterd_t ==============
allow glusterd_t var_t:lnk_file read;


Version-Release number of selected component (if applicable):
selinux-policy-3.11.1-79.fc18.noarch


Steps to Reproduce:
1. Attempt to view folders in a glusterfs directory.

  
Actual results: I can view files and folders, but I receive SELinux messages.


Expected results: No SELinux messages.


Additional info: These messages are brand new. They showed up after the fix for bug 911975.

Comment 1 Daniel Walsh 2013-02-20 10:27:57 UTC

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


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