Bug 1122041

Summary: "restorecon -Rv /" produces erroneous warnings
Product: [Fedora] Fedora Reporter: Stef Walter <stefw>
Component: selinux-policy-targetedAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED NOTABUG QA Contact: Ben Levenson <benl>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 21CC: dwalsh
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-07-22 12:37:04 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 Stef Walter 2014-07-22 12:17:00 UTC
Description of problem:

"restorecon -Rv /" produces erroneous warnings:

restorecon:  Warning no default label for /var/lib/nfs/rpc_pipefs
restorecon:  Warning no default label for /var/tmp/system-upgrade.state
restorecon:  Warning no default label for /mnt/sysimage/home
restorecon:  Warning no default label for /tmp/ssh-zyWyRllybo
restorecon:  Warning no default label for /tmp/ssh-zyWyRllybo/agent.1231
restorecon:  Warning no default label for /tmp/ssh-uZUQI9y6yG
restorecon:  Warning no default label for /tmp/ssh-uZUQI9y6yG/agent.870
restorecon:  Warning no default label for /tmp/.Test-unix
restorecon:  Warning no default label for /tmp/.XIM-unix
restorecon:  Warning no default label for /run/lvmetad.pid
restorecon:  Warning no default label for /run/lock/subsys
restorecon:  Warning no default label for /run/initramfs
restorecon:  Warning no default label for /run/initramfs/rwtab
restorecon:  Warning no default label for /run/initramfs/state
restorecon:  Warning no default label for /run/initramfs/state/var
restorecon:  Warning no default label for /run/initramfs/state/var/lib
restorecon:  Warning no default label for /run/initramfs/state/var/lib/dhclient
restorecon:  Warning no default label for /run/initramfs/state/etc
restorecon:  Warning no default label for /run/initramfs/state/etc/sysconfig
restorecon:  Warning no default label for /run/initramfs/state/etc/sysconfig/network-scripts
restorecon:  Warning no default label for /dev/hugepages/libvirt
restorecon:  Warning no default label for /dev/hugepages/libvirt/qemu
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 reset /sys/fs/cgroup context system_u:object_r:tmpfs_t:s0->system_u:object_r:cgroup_t:s0
restorecon set context /sys/fs/cgroup->system_u:object_r:cgroup_t:s0 failed:'Read-only file system'

Version-Release number of selected component (if applicable):

selinux-policy-targeted-3.13.1-65.fc21.noarch

How reproducible:

Every time.

Steps to Reproduce:
1. restorecon -Rv /

Comment 1 Miroslav Grepl 2014-07-22 12:37:04 UTC
Use it without "-v" option.