Bug 983558

Summary: semanage login delete should not require seuser
Product: Red Hat Enterprise Linux 7 Reporter: Miroslav Vadkerti <mvadkert>
Component: policycoreutilsAssignee: Daniel Walsh <dwalsh>
Status: CLOSED CURRENTRELEASE QA Contact: Ondrej Moriš <omoris>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.0CC: jjaburek, mmalik, omoris
Target Milestone: rcKeywords: Regression
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-06-13 11:50:57 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:
Attachments:
Description Flags
semnage-login.patch none

Description Miroslav Vadkerti 2013-07-11 13:22:01 UTC
Description of problem:
# semanage login -d test
seuser option is needed for delete

Version-Release number of selected component (if applicable):
policycoreutils-2.1.14-60.el7

How reproducible:
100%

Steps to Reproduce:
1. semanage login -d test

Actual results:
seuser option is needed for delete

Expected results:
user deleted (no sesuser option needed)

Additional info:

Comment 1 Miroslav Grepl 2013-07-11 13:35:42 UTC
Created attachment 772222 [details]
semnage-login.patch

Comment 4 Milos Malik 2013-07-11 14:52:16 UTC
The semanage tool belongs to policycoreutils component.

Comment 5 Daniel Walsh 2013-07-11 19:05:01 UTC
Fixed in policycoreutils-2.1.14-63.el7.src.rpm

Comment 6 Ondrej Moriš 2013-08-23 14:48:07 UTC
Successfully verified.

# semanage login -l

Login Name           SELinux User         MLS/MCS Range        Service

__default__          unconfined_u         SystemLow-SystemHigh *
root                 unconfined_u         SystemLow-SystemHigh *
system_u             system_u             SystemLow-SystemHigh *
[root@cc-toe3 audit-remote]# semanage login -a test -s system_u
[root@cc-toe3 audit-remote]# semanage login -l

Login Name           SELinux User         MLS/MCS Range        Service

__default__          unconfined_u         SystemLow-SystemHigh *
root                 unconfined_u         SystemLow-SystemHigh *
system_u             system_u             SystemLow-SystemHigh *
test                 system_u             SystemLow            *
[root@cc-toe3 audit-remote]# semanage login -d test
[root@cc-toe3 audit-remote]# semanage login -l

Login Name           SELinux User         MLS/MCS Range        Service

__default__          unconfined_u         SystemLow-SystemHigh *
root                 unconfined_u         SystemLow-SystemHigh *
system_u             system_u             SystemLow-SystemHigh *
[root@cc-toe3 audit-remote]# rpm -q policycoreutils
policycoreutils-2.1.14-75.el7.x86_64

Comment 7 Ludek Smid 2014-06-13 11:50:57 UTC
This request was resolved in Red Hat Enterprise Linux 7.0.

Contact your manager or support representative in case you have further questions about the request.