Bug 991654 - restorecon: Warning no default label for [NEEDINFO]
Summary: restorecon: Warning no default label for
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy-targeted
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Ben Levenson
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-08-03 10:19 UTC by Daniel Qarras
Modified: 2013-08-05 06:07 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-08-05 06:07:43 UTC
Type: Bug
Embargoed:
mgrepl: needinfo?


Attachments (Terms of Use)

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>>


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