Bug 965136

Summary: chcat doesn't add category, just replaces it
Product: Red Hat Enterprise Linux 5 Reporter: Michal Trunecka <mtruneck>
Component: policycoreutilsAssignee: Daniel Walsh <dwalsh>
Status: CLOSED WONTFIX QA Contact: BaseOS QE Security Team <qe-baseos-security>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 5.9CC: dwalsh, ebenes, ksrot, mmalik
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-05-23 15:00:59 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 Michal Trunecka 2013-05-20 13:42:36 UTC
Description of problem:

# useradd testuser
# chcat -l -L testuser
testuser: s0
# chcat -l s0:c0 testuser
# chcat -l -L testuser
testuser: s0:c0
# chcat -l +s0:c1 testuser
# chcat -l -L testuser
testuser: s0:c1


Expected result:
# chcat -l -L testuser
testuser: s0:c0,c1


Version-Release number of selected component (if applicable):
policycoreutils-1.33.12-14.11.el5

How reproducible:
always

Comment 1 RHEL Program Management 2013-05-20 16:42:01 UTC
This request was evaluated by Red Hat Product Management for inclusion
in a Red Hat Enterprise Linux release.  Product Management has
requested further review of this request by Red Hat Engineering, for
potential inclusion in a Red Hat Enterprise Linux release for currently
deployed products.  This request is not yet committed for inclusion in
a release.

Comment 2 Michal Trunecka 2013-05-21 06:55:48 UTC
I have played with it a bit and it seems like c0 is not a standard category on RHEL5, but means something like "no category", right? And that is why it doesn't show c0,c1 but only c1, is that correct? But it is different from RHEL6 and RHEL7 then.

Comment 4 Daniel Walsh 2013-05-23 14:44:12 UTC
c0 is not standard, s0 is the default s0:c0 would be category c0.

Comment 5 RHEL Program Management 2013-05-23 15:00:59 UTC
Development Management has reviewed and declined this request.
You may appeal this decision by reopening this request.