Bug 144583

Summary: smbd_t needs read access to lnk_file
Product: [Fedora] Fedora Reporter: Ivan Gyurdiev <ivg231>
Component: selinux-policy-targetedAssignee: Daniel Walsh <dwalsh>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: rawhide   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-01-13 00:26:58 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Ivan Gyurdiev 2005-01-08 20:49:44 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5)
Gecko/20041228 Firefox/1.0 Fedora/1.0-8

Description of problem:
smbd_t cannot follow symbolic links, and as a result 
the setup I posted about on the fedora-selinux with
symlinks in /data/smb does not work.


--- samba.te.bak        2005-01-08 13:44:34.326669200 -0700
+++ samba.te    2005-01-08 13:44:52.311951685 -0700
@@ -75,6 +75,7 @@
 # Access Samba shares.
 allow smbd_t samba_share_t:dir create_dir_perms;
 allow smbd_t samba_share_t:file create_file_perms;
+allow smbd_t samba_share_t:lnk_file { getattr read };

 ifdef(`logrotate.te', `
 # the application should be changed
 

Version-Release number of selected component (if applicable):
selinux-policy-targeted-1.19.17-3

How reproducible:
Always

Steps to Reproduce:
1. See summary.  

Additional info:

Comment 1 Daniel Walsh 2005-01-10 17:55:40 UTC
Ok changing policy to have
# Access Samba shares.
create_dir_file(smbd_t, samba_share_t)
Which should cover links.

Fixed in selinux-policy-*-1.20.1-2