Bug 582955

Summary: Setting file label with semanage or the GUI generates an error
Product: [Fedora] Fedora Reporter: Guillaume Pasquet <etenil>
Component: policycoreutilsAssignee: Yuichi Nakamura <ynakam>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 13CC: dwalsh, mgrepl, ynakam
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: policycoreutils-2.0.82-7.fc13 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-04-23 06:02:31 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Guillaume Pasquet 2010-04-16 09:34:44 UTC
Description of problem:
Setting file labels either with semanage in command line or with the GUI in "System->Administration" generates a "Invalid command" error.

The file labelling worked though, a "semanage fcontext -l" shows the right labels.

Version-Release number of selected component (if applicable):
libselinux 2.0.90
setools 3.3.6
seedit 2.2.0

How reproducible:
Can always be reproduced

Steps to Reproduce:
1. Change file labelling with a command like:
semanage fcontext -a -t httpd_sys_content_t "/web(/.*)?"
  
Actual results:
/usr/sbin/semanage: Invalid command: semanage fcontext -a -t httpd_sys_content_t /web(/.*)?

Expected results:
No error should show up

Additional info:

Comment 1 Daniel Walsh 2010-04-16 18:00:27 UTC
Fixed in policycoreutils-2.0.82-7.fc13.

Comment 2 Fedora Update System 2010-04-16 18:03:03 UTC
policycoreutils-2.0.82-7.fc13 has been submitted as an update for Fedora 13.
http://admin.fedoraproject.org/updates/policycoreutils-2.0.82-7.fc13

Comment 3 Fedora Update System 2010-04-20 13:35:01 UTC
policycoreutils-2.0.82-7.fc13 has been pushed to the Fedora 13 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update policycoreutils'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/policycoreutils-2.0.82-7.fc13

Comment 4 Fedora Update System 2010-04-23 06:02:27 UTC
policycoreutils-2.0.82-7.fc13 has been pushed to the Fedora 13 stable repository.  If problems still persist, please make note of it in this bug report.