Bug 485378 - named.conf possibly labeled incorrectly in chroot environment
Summary: named.conf possibly labeled incorrectly in chroot environment
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: rawhide
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-13 06:42 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 14:46:59 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Murray McAllister 2009-02-13 06:42:15 UTC
Description of problem:
In Fedora 10, /var/named/chroot/etc/named.conf is labeled with the name_conf_t type:
file_contexts:/var/named/chroot/etc(/.*)?       system_u:object_r:named_conf_t:s0

In rawhide, /var/named/chroot/etc/named.conf is labeled with the etc_t type:
file_contexts:/var/named/chroot/etc(/.*)?       system_u:object_r:etc_t:s0

In rawhide, /etc/named.conf is labeled with the named_conf_t type:
file_contexts:/etc/named\.conf  --      system_u:object_r:named_conf_t:s0

Should named.conf use the named_conf_t type regardless of where it is?

Version-Release number of selected component (if applicable):
selinux-policy-3.6.5-3.fc11.noarch
selinux-policy-targeted-3.6.5-3.fc11.noarch

How reproducible:
Always.

Steps to Reproduce:
1. yum install bind bind-chroot
2. cp /etc/named.conf /var/named/chroot/etc/
3. restorecon -R -v /var/named/chroot/etc/
  
Actual results:
/var/named/chroot/etc/named.conf labeled with etc_t type.

Expected results:
/var/named/chroot/etc/named.conf labeled with named_conf_t type?

Comment 1 Daniel Walsh 2009-04-13 14:46:59 UTC
Fixed in selinux-policy-3.6.12-4.fc11.noarch


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