Bug 991654 - restorecon: Warning no default label for [NEEDINFO]
restorecon: Warning no default label for
Status: CLOSED NOTABUG
Product: Fedora
Classification: Fedora
Component: selinux-policy-targeted (Show other bugs)
rawhide
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Miroslav Grepl
Ben Levenson
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2013-08-03 06:19 EDT by Daniel Qarras
Modified: 2013-08-05 02:07 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2013-08-05 02:07:43 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---
mgrepl: needinfo?


Attachments (Terms of Use)

  None (edit)
Description Daniel Qarras 2013-08-03 06:19:08 EDT
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 02:07:43 EDT
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>>

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