Bug 902719

Summary: selinux-policy-targeted upgradation scriptlet failure
Product: [Fedora] Fedora Reporter: Ameya Sathe <aakreet40-rhce>
Component: selinux-policy-targetedAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED CURRENTRELEASE QA Contact: Ben Levenson <benl>
Severity: low Docs Contact:
Priority: unspecified    
Version: 18CC: dwalsh
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-02-08 02:26:12 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 Ameya Sathe 2013-01-22 10:32:24 UTC
Description of problem:
In 'Fedora release 18 (Spherical Cow)';
Upgradation of rpm package selinux-policy-targeted to rpm version 3.11.1-67.fc18.noarch gives the following output
"
selinux-policy-targeted-3.11.1-67.fc18.noarch                      
***********************
restorecon:  lstat(/home/*/.cache) failed:  No such file or directory
restorecon:  lstat(/home/*/.config) failed:  No such file or directory
"

ls -al /home/
total 8
drwxr-xr-x.  2 root root 4096 Jul 19  2012 .
dr-xr-xr-x. 18 root root 4096 Jan 22 11:25 ..


Version-Release number of selected component (if applicable):
3.11.1-67.fc18.noarch 

How reproducible:
In fresh,minimal installation of 'Fedora release 18 (Spherical Cow)'; upgrade the selinux-policy-targeted rpm.

Steps to Reproduce:
1.drf upgrade selinux-policy-targeted

  
Actual results:
restorecon:  lstat(/home/*/.cache) failed:  No such file or directory
restorecon:  lstat(/home/*/.config) failed:  No such file or directory

Expected results:
restorecon should not access non-existent files. Hence; no such failed message will appear during upgradation.

Additional info:
Only root user exists on this freshly installed minimal installation of 'Fedora release 18 (Spherical Cow)'
sestatus 
SELinux status:                 enabled
SELinuxfs mount:                /sys/fs/selinux
SELinux root directory:         /etc/selinux
Loaded policy name:             targeted
Current mode:                   enforcing
Mode from config file:          enforcing
Policy MLS status:              enabled
Policy deny_unknown status:     allowed
Max kernel policy version:      28

Comment 1 Miroslav Grepl 2013-01-22 10:47:15 UTC
Basically this is not a fail. It is a correct output of restorecon on non-existing dirs.

I am fixing the spec file to hide it.

Comment 2 Fedora Update System 2013-01-31 13:20:27 UTC
selinux-policy-3.11.1-74.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/selinux-policy-3.11.1-74.fc18

Comment 3 Fedora Update System 2013-02-01 16:41:29 UTC
Package selinux-policy-3.11.1-74.fc18:
* should fix your issue,
* was pushed to the Fedora 18 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing selinux-policy-3.11.1-74.fc18'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-1693/selinux-policy-3.11.1-74.fc18
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2013-02-08 02:26:14 UTC
selinux-policy-3.11.1-74.fc18 has been pushed to the Fedora 18 stable repository.  If problems still persist, please make note of it in this bug report.