Bug 483513 - Wrong suggestion when smb.conf is labeled with certain types
Summary: Wrong suggestion when smb.conf is labeled with certain types
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 10
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Daniel Walsh
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-02-02 01:41 UTC by Murray McAllister
Modified: 2015-01-04 22:35 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-04-13 15:18:33 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
full denial viewed with sealert (2.32 KB, text/plain)
2009-02-02 01:44 UTC, Murray McAllister
no flags Details

Description Murray McAllister 2009-02-02 01:41:39 UTC
Description of problem:

When /etc/samba/smb.conf is labeled with a type that the smbd_t domain does not have access to, sealert suggests labeling /etc/samba/smb.conf with the public_content_t type.


Version-Release number of selected component (if applicable):

selinux-policy-3.5.13-40.fc10.noarch
selinux-policy-targeted-3.5.13-40.fc10.noarch

How reproducible:

Always.

Steps to Reproduce:

1. Label /etc/samba/smb.conf with a type that the smbd_t domain does not have access to:
chcon -t httpd_sys_content_t /etc/samba/smb.conf
2. service smb start
3. check /var/log/messages or setroubleshoot browser.
  
Actual results:

Fix Command:

chcon -t public_content_t './smb.conf'

Expected results:

Fix Command:

chcon -t samba_etc_t /etc/samba/smb.conf

If there is a chance this type will change in future, perhaps the following is a better fix command:

restorecon -R -v /etc/samba/

Comment 1 Murray McAllister 2009-02-02 01:44:05 UTC
Created attachment 330571 [details]
full denial viewed with sealert

Comment 2 Daniel Walsh 2009-04-13 15:18:33 UTC
Fixed in setroubleshoot-plugins- 2.0.16-1


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