Bug 1428112

Summary: 'sysroot' directory under ostree deployment directory has 'default_t' label
Product: Red Hat Enterprise Linux 7 Reporter: Micah Abbott <miabbott>
Component: selinux-policyAssignee: Lukas Vrabec <lvrabec>
Status: CLOSED ERRATA QA Contact: Milos Malik <mmalik>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.3CC: dominick.grift, dwalsh, extras-qa, lvrabec, mgrepl, miabbott, mmalik, plautrba, pmoore, pvrabec, ssekidde, walters
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: selinux-policy-3.13.1-145.el7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1428109 Environment:
Last Closed: 2017-08-01 15:22:43 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1428109    
Bug Blocks:    

Description Micah Abbott 2017-03-01 19:55:40 UTC
Same behavior described below on RHELAH 7.3.3

# find /sysroot -context '*:default_t:*'
/sysroot/ostree/deploy/rhel-atomic-host/deploy/bfc591ba1a4395c6b8e54d34964b05df4a61e0d82d20cc1a2fd817855c7e2da5.0/sysroot

# atomic host status
State: idle
Deployments:
● rhel-atomic-host-ostree:rhel-atomic-host/7/x86_64/standard
       Version: 7.3.3 (2017-02-27 16:31:38)
        Commit: bfc591ba1a4395c6b8e54d34964b05df4a61e0d82d20cc1a2fd817855c7e2da5
        OSName: rhel-atomic-host

# rpm -q selinux-policy selinux-policy-targeted
selinux-policy-3.13.1-102.el7_3.15.noarch
selinux-policy-targeted-3.13.1-102.el7_3.15.noarch


+++ This bug was initially created as a clone of Bug #1428109 +++

On F25 Atomic Host, I was poking around looking for anything that matched the 'default_t' label and found the following:

# find /sysroot -context '*default_t*'
/sysroot/ostree/deploy/fedora-atomic/deploy/c5c811e10db838e848117f3e73b32a489b2c79ac2b86da87866b37c0fa7d135a.0/sysroot
/sysroot/ostree/deploy/fedora-atomic/deploy/5a0df79bd7225775231ea560615fc2ee2427c02d2904c1f0c6f292b4659d4cfa.0/sysroot


It's my understanding that we generally don't want files/dirs to have the 'default_t' label.


# atomic host status
State: idle
Deployments:
● fedora-atomic:fedora-atomic/25/x86_64/updates/docker-host
             Version: 25.66 (2017-02-27 03:57:25)
              Commit: 5a0df79bd7225775231ea560615fc2ee2427c02d2904c1f0c6f292b4659d4cfa
              OSName: fedora-atomic


# rpm -q selinux-policy selinux-policy-targeted
selinux-policy-3.13.1-225.10.fc25.noarch
selinux-policy-targeted-3.13.1-225.10.fc25.noarch

--- Additional comment from Colin Walters on 2017-03-01 14:48:44 EST ---

On current CentOS AH, it's `root_t`, which I think makes sense.

Comment 3 Colin Walters 2017-03-23 14:10:43 UTC
It's not actively breaking anything - we could go to the EOL of RHEL7 with this bug.  But it'd be nice to fix, since we'd like to have a check that no files are labeled default_t.

Comment 4 Micah Abbott 2017-03-23 14:25:08 UTC
What Colin said.  :)

Comment 11 errata-xmlrpc 2017-08-01 15:22:43 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2017:1861