Bug 565927 - SELinux prevented ck-get-x11-serv from reading files stored on a NFS filesytem.
Summary: SELinux prevented ck-get-x11-serv from reading files stored on a NFS filesytem.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 12
Hardware: x86_64
OS: Linux
low
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:88be61610be...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-02-16 17:51 UTC by Warren Sturm
Modified: 2010-03-04 00:16 UTC (History)
2 users (show)

Fixed In Version: selinux-policy-3.6.32-92.fc12
Clone Of:
Environment:
Last Closed: 2010-03-04 00:16:16 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Warren Sturm 2010-02-16 17:51:31 UTC
Summary:

SELinux prevented ck-get-x11-serv from reading files stored on a NFS filesytem.

Detailed Description:

[SELinux is in permissive mode. This access was not denied.]

SELinux prevented ck-get-x11-serv from reading files stored on a NFS filesystem.
NFS (Network Filesystem) is a network filesystem commonly used on Unix / Linux
systems. ck-get-x11-serv attempted to read one or more files or directories from
a mounted filesystem of this type. As NFS filesystems do not support
fine-grained SELinux labeling, all files and directories in the filesystem will
have the same security context. If you have not configured ck-get-x11-serv to
read files from a NFS filesystem this access attempt could signal an intrusion
attempt.

Allowing Access:

Changing the "use_nfs_home_dirs" boolean to true will allow this access:
"setsebool -P use_nfs_home_dirs=1"

Fix Command:

setsebool -P use_nfs_home_dirs=1

Additional Information:

Source Context                system_u:system_r:consolekit_t:s0-s0:c0.c1023
Target Context                system_u:object_r:nfs_t:s0
Target Objects                .Xauthority [ file ]
Source                        ck-get-x11-serv
Source Path                   /usr/libexec/ck-get-x11-server-pid
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           ConsoleKit-x11-0.4.1-3.fc12
Target RPM Packages           
Policy RPM                    selinux-policy-3.6.32-84.fc12
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Plugin Name                   use_nfs_home_dirs
Host Name                     (removed)
Platform                      Linux (removed) 2.6.31.12-174.2.19.fc12.x86_64 #1
                              SMP Thu Feb 11 07:07:16 UTC 2010 x86_64 x86_64
Alert Count                   9
First Seen                    Thu 04 Feb 2010 07:53:21 AM MST
Last Seen                     Tue 16 Feb 2010 10:41:16 AM MST
Local ID                      8ae98ba7-5833-48f6-95a2-4b0bf813526e
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1266342076.155:22819): avc:  denied  { open } for  pid=1829 comm="ck-get-x11-serv" name=".Xauthority" dev=0:17 ino=7752708 scontext=system_u:system_r:consolekit_t:s0-s0:c0.c1023 tcontext=system_u:object_r:nfs_t:s0 tclass=file

node=(removed) type=SYSCALL msg=audit(1266342076.155:22819): arch=c000003e syscall=2 success=yes exit=4 a0=7fff8934cfa6 a1=0 a2=1b6 a3=0 items=0 ppid=1828 pid=1829 auid=4294967295 uid=150 gid=150 euid=150 suid=150 fsuid=150 egid=150 sgid=150 fsgid=150 tty=(none) ses=4294967295 comm="ck-get-x11-serv" exe="/usr/libexec/ck-get-x11-server-pid" subj=system_u:system_r:consolekit_t:s0-s0:c0.c1023 key=(null)


NOTE:  
	getsebool use_nfs_home_dirs
	use_nfs_home_dirs --> on

Hash String generated from  use_nfs_home_dirs,ck-get-x11-serv,consolekit_t,nfs_t,file,open
audit2allow suggests:

#============= consolekit_t ==============
allow consolekit_t nfs_t:file open;

Comment 1 Daniel Walsh 2010-02-16 18:00:06 UTC
Miroslav  Can you change consolekit_t to 

tunable_policy(`use_nfs_home_dirs',`
	fs_read_nfs_files(consolekit_t)
')

tunable_policy(`use_samba_home_dirs',`
	fs_read_cifs_files(consolekit_t)
')

Comment 2 Miroslav Grepl 2010-02-16 21:56:01 UTC
Changed in selinux-policy-3.6.32-91.fc12

Comment 3 Fedora Update System 2010-02-23 20:57:09 UTC
selinux-policy-3.6.32-92.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/selinux-policy-3.6.32-92.fc12

Comment 4 Fedora Update System 2010-02-26 03:43:52 UTC
selinux-policy-3.6.32-92.fc12 has been pushed to the Fedora 12 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: http://admin.fedoraproject.org/updates/F12/FEDORA-2010-2953

Comment 5 Fedora Update System 2010-03-04 00:12:37 UTC
selinux-policy-3.6.32-92.fc12 has been pushed to the Fedora 12 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.