Bug 1399049

Summary: seunshare falsely complains about required tmpdir and/or homedir
Product: Red Hat Enterprise Linux 7 Reporter: Milos Malik <mmalik>
Component: policycoreutilsAssignee: Vit Mojzis <vmojzis>
Status: CLOSED WONTFIX QA Contact: Milos Malik <mmalik>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.3CC: dwalsh, lvrabec, mgrepl, mmalik, plautrba, ssekidde, zpytela
Target Milestone: rcKeywords: EasyFix
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1671449 (view as bug list) Environment:
Last Closed: 2019-02-27 12:50:03 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:

Description Milos Malik 2016-11-28 07:32:22 UTC
Description of problem:
* based on the position of '[' and ']' in the usage message and in the man page, temporary directory and/or home directory are not required
* the only thing that's required is an executable

Version-Release number of selected component (if applicable):
policycoreutils-python-2.5-10.2.el7_3.x86_64
policycoreutils-gui-2.5-10.2.el7_3.x86_64
policycoreutils-restorecond-2.5-10.2.el7_3.x86_64
policycoreutils-sandbox-2.5-10.2.el7_3.x86_64
policycoreutils-devel-2.5-10.2.el7_3.x86_64
policycoreutils-newrole-2.5-10.2.el7_3.x86_64
policycoreutils-2.5-10.2.el7_3.x86_64

How reproducible:
* always

Steps to Reproduce:
# seunshare 
Error: tmpdir and/or homedir required
 USAGE: seunshare [ -v ] [ -C ] [ -k ] [ -t tmpdir ] [ -h homedir ] [ -Z CONTEXT ] -- executable [args] 
# seunshare id
Error: tmpdir and/or homedir required
 USAGE: seunshare [ -v ] [ -C ] [ -k ] [ -t tmpdir ] [ -h homedir ] [ -Z CONTEXT ] -- executable [args] 
#

Actual results:
* seunshare complains when only executable is provided

Expected results:
* seunshare does not complain when home and temporary directory are omitted and an executable is provided
* the behavior should be the same as in RHEL-6

Comment 3 Zdenek Pytela 2019-02-27 12:50:03 UTC
This issue was not selected to be included in Red Hat Enterprise Linux 7.7 because it is seen either as low or moderate impact to a small number of use-cases. The next release will be in Maintenance Support 1 Phase, which means that qualified Critical and Important Security errata advisories (RHSAs) and Urgent Priority Bug Fix errata advisories (RHBAs) may be released as they become available.

We will now close this issue, but if you believe that it qualifies for the Maintenance Support 1 Phase, please re-open; otherwise, we recommend moving the request to Red Hat Enterprise Linux 8 if applicable.