Bug 902719 - selinux-policy-targeted upgradation scriptlet failure
Summary: selinux-policy-targeted upgradation scriptlet failure
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy-targeted
Version: 18
Hardware: x86_64
OS: Linux
unspecified
low
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Ben Levenson
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-01-22 10:32 UTC by Ameya Sathe
Modified: 2013-02-08 02:26 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-02-08 02:26:12 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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.


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