Bug 991654

Summary: restorecon: Warning no default label for
Product: [Fedora] Fedora Reporter: Daniel Qarras <dqarras>
Component: selinux-policy-targetedAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED NOTABUG QA Contact: Ben Levenson <benl>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: dwalsh
Target Milestone: ---Flags: mgrepl: needinfo?
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-08-05 06:07: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:

Description Daniel Qarras 2013-08-03 10:19:08 UTC
Description of problem:
Restorecon warns that there are no default labels for several pseudo files.

Version-Release number of selected component (if applicable):
selinux-policy-targeted-3.12.1-66.fc19.noarch

How reproducible:
Always.

Steps to Reproduce:
1. su -
2. restorecon -v -R / > /dev/null 2>&1
3. restorecon -v -R /

Actual results:
restorecon:  Warning no default label for /dev/mqueue
restorecon:  Warning no default label for /dev/pts/1
restorecon:  Warning no default label for /dev/pts/0
restorecon:  Warning no default label for /dev/pts/ptmx
restorecon:  Warning no default label for /run/lock/subsys
restorecon:  Warning no default label for /tmp/.esd-1000
restorecon:  Warning no default label for /tmp/.esd-1000/socket
restorecon:  Warning no default label for /tmp/systemd-private-A6qOUg
restorecon:  Warning no default label for /tmp/systemd-private-A6qOUg/tmp
restorecon:  Warning no default label for /tmp/systemd-private-WddbGm
restorecon:  Warning no default label for /tmp/systemd-private-WddbGm/tmp
restorecon:  Warning no default label for /tmp/.Test-unix
restorecon:  Warning no default label for /tmp/.XIM-unix
restorecon:  Warning no default label for /var/tmp/systemd-private-iZGxwL
restorecon:  Warning no default label for /var/tmp/systemd-private-iZGxwL/tmp
restorecon:  Warning no default label for /var/tmp/systemd-private-Rs96iM
restorecon:  Warning no default label for /var/tmp/systemd-private-Rs96iM/tmp

Expected results:
No output or warnings.

Additional info:
https://lists.fedoraproject.org/pipermail/selinux/2013-January/015072.html

Comment 1 Miroslav Grepl 2013-08-05 06:07:43 UTC
Which is OK. There is no default label for these files and restorecon tells you about that.

For example

# matchpathcon /var/tmp/systemd-private-Rs96iM/tmp
/var/tmp/systemd-private-Rs96iM/tmp	<<none>>