Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1509383

Summary: sub-package: policycoreutils-devel lacks a manual Require: for policycore-utils-gui
Product: Red Hat Enterprise Linux 7 Reporter: R P Herrold <herrold>
Component: policycoreutilsAssignee: Vit Mojzis <vmojzis>
Status: CLOSED ERRATA QA Contact: Jan Zarsky <jzarsky>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 7.4CC: dapospis, dwalsh, herrold, jzarsky, lvrabec, mgrepl, mmalik, plautrba, ssekidde, vmojzis
Target Milestone: rcKeywords: Documentation
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
URL: https://fedoraproject.org/wiki/PackagingDrafts/SELinux_Independent_Policy
Whiteboard:
Fixed In Version: policycoreutils-2.5-23.el7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-10-30 09:46:22 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 R P Herrold 2017-11-03 16:36:42 UTC
Description of problem:

The mailing list post mentions using: 
    sepolicy generate

man 8 sepolicy at 'generate' mentions the need to (manually ??) install:
    policycore-utils-gui

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

policycoreutils-2.5-17.1.el7.x86_64

How reproducible:

run:
    sudo yum install policycore-utils-gui


Steps to Reproduce:
1.   and the transaction will fail, noting:

No package policycore-utils-gui available.


Actual results:

This implies two sub-parts to the bug:

1.   the missing Requires: policycore-utils-gui

in the -devel stanza of the .spec file

2.   the missing package: policycore-utils-gui
in the binary repository


Expected results:

1.    Not needing to read the man page to get a working GUI with the command
   sepolicy generate

2.    a compete set of dependencies in the distribution

Additional info:

this blocks the proposed delegation under the method outlined in the URL -- I have also corresponded with the author of that piece

I would ask that any fix be slip-streamed, rather than waiting until the next point release, because it is additive as to features, with no real possibility of a function regression

As SElinux is security related, this may have STIG overtimes -- I have not done an evaluation of that here

Comment 2 R P Herrold 2017-11-03 16:54:19 UTC
fwiw, this bug blocks EPEL being able to follow:
   https://pagure.io/packaging-committee/issue/726

Comment 3 Petr Lautrbach 2017-11-04 19:59:32 UTC
This is a bug in the man page. policycoreutils-gui is needed only for `sepolicy gui`, `sepolicy generate` is a command line tool:


^_^ rpm -q policycoreutils-gui
package policycoreutils-gui is not installed

o_O sepolicy generate         
sepolicy generate [-h] [-n NAME] [-p PATH] [ --admin_user [-r TRANSITION_ROLE ] [ -w WRITEPATHS ] | --application COMMAND [ -w WRITEPATHS ] | --cgi COMMAND [ -w WRITEPATHS ] | --confined_admin -a  ADMIN_DOMAIN [ -w WRITEPATHS ] | --customize -d DOMAIN -a  ADMIN_DOMAIN [ -w WRITEPATHS ] | --dbus COMMAND [ -w WRITEPATHS ] | --desktop_user  [ -w WRITEPATHS ] | --inetd COMMAND [ -w WRITEPATHS ] | --init COMMAND [ -w WRITEPATHS ] | --newtype -t [TYPES [TYPES ...]] | --sandbox [ -w WRITEPATHS ] | --term_user [ -w WRITEPATHS ] | --x_user [ -w WRITEPATHS ] ]
sepolicy generate: error: one of the arguments  --inetd --dbus --admin_user --confined_admin --sandbox --newtype --term_user --cgi --customize --x_user --desktop_user --init --application is required

o_O sepolicy generate -n my-service --application /usr/bin/my-service
Loaded plugins: fastestmirror

***************************************
Warning /usr/bin/my-service does not exist
***************************************

Created the following files:
/home/vagrant/my-service.te # Type Enforcement file
/home/vagrant/my-service.if # Interface file
/home/vagrant/my-service.fc # File Contexts file
/home/vagrant/my-service_selinux.spec # Spec file
/home/vagrant/my-service.sh # Setup Script

Comment 8 errata-xmlrpc 2018-10-30 09:46:22 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2018:3098