Bug 1398987 - `semanage fcontext` command line messed up
Summary: `semanage fcontext` command line messed up
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: policycoreutils
Version: 25
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Petr Lautrbach
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 1427138 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-11-27 23:32 UTC by Eli Barzilay
Modified: 2017-04-12 14:51 UTC (History)
6 users (show)

Fixed In Version: policycoreutils-2.5-20.fc25
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-04-09 21:51:50 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Eli Barzilay 2016-11-27 23:32:01 UTC
Description of problem:
  Multiple problems with the `semanage fcontext` command line and its
  documentation.

Version-Release number of selected component (if applicable):
  Fedora 25

The problems are:

1. Running `semanage fcontext` without any flags or arguments spits out
   a short description of the expected command line.  This description
   is completely broken, with various redundant ")"s.

2. The same broken specification appears in its man page
   (semanage-fcontext(8)).

3. According to this man page and the output of `semanage fcontext -h`,
   listing the local fcontext rules is supposed to be achieved using
   "-C, --locallist", neither of these work.

4. Following the broken command line in item #1 above, I finally found
   that the correct incantation is "semanage fcontext --list -C"

Comment 1 Vit Mojzis 2016-11-30 15:31:09 UTC
Thanks for reporting, fixed on upstream (soon to be backported to Fedora):

https://github.com/SELinuxProject/selinux/commit/86e568c27bd6e6d4428b9bca67c5de6a6bdcebb2

Comment 2 Petr Lautrbach 2017-04-06 15:33:27 UTC
policycoreutils-2.6-5.fc27 -
https://koji.fedoraproject.org/koji/taskinfo?taskID=18820403

Comment 3 Fedora Update System 2017-04-06 16:16:36 UTC
policycoreutils-2.6-5.fc26 libselinux-2.6-5.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2017-f21a1bffda

Comment 4 Fedora Update System 2017-04-07 07:41:53 UTC
policycoreutils-2.5-20.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2017-c89d1d37d0

Comment 5 Fedora Update System 2017-04-07 19:57:54 UTC
policycoreutils-2.5-20.fc25 has been pushed to the Fedora 25 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-c89d1d37d0

Comment 6 Fedora Update System 2017-04-07 21:21:05 UTC
libselinux-2.6-5.fc26, policycoreutils-2.6-5.fc26 has been pushed to the Fedora 26 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-f21a1bffda

Comment 7 Alan Jenkins 2017-04-08 16:25:50 UTC
*** Bug 1427138 has been marked as a duplicate of this bug. ***

Comment 8 Fedora Update System 2017-04-09 21:51:50 UTC
policycoreutils-2.5-20.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report.

Comment 9 Fedora Update System 2017-04-12 14:51:06 UTC
libselinux-2.6-5.fc26, policycoreutils-2.6-5.fc26 has been pushed to the Fedora 26 stable repository. If problems still persist, please make note of it in this bug report.


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