Bug 1399049 - seunshare falsely complains about required tmpdir and/or homedir
Summary: seunshare falsely complains about required tmpdir and/or homedir
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: policycoreutils
Version: 7.3
Hardware: All
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Vit Mojzis
QA Contact: Milos Malik
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-11-28 07:32 UTC by Milos Malik
Modified: 2019-02-27 12:50 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1671449 (view as bug list)
Environment:
Last Closed: 2019-02-27 12:50:03 UTC
Target Upstream Version:


Attachments (Terms of Use)

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.


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