Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
For bugs related to Red Hat Enterprise Linux 5 product line. The current stable release is 5.10. For Red Hat Enterprise Linux 6 and above, please visit Red Hat JIRA https://issues.redhat.com/secure/CreateIssue!default.jspa?pid=12332745 to report new issues.

Bug 584286

Summary: 'seinfo -p' and 'seinfo --portcon' are not equivalent
Product: Red Hat Enterprise Linux 5 Reporter: Milos Malik <mmalik>
Component: setoolsAssignee: Daniel Walsh <dwalsh>
Status: CLOSED WONTFIX QA Contact: Milos Malik <mmalik>
Severity: medium Docs Contact:
Priority: low    
Version: 5.5CC: cpebenito
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-05-14 14:32:35 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Milos Malik 2010-04-21 08:59:38 UTC
Description of problem:
'seinfo --portcon' prints the same output as 'seinfo'. But it should print the same output as 'seinfo -p'.

Version-Release number of selected component (if applicable):
setools-3.0-3.el5.i386
setools-devel-3.0-3.el5.i386
setools-gui-3.0-3.el5.i386

How reproducible:
always

Steps to Reproduce:
# seinfo --help | grep 'port contexts'
  -p[PORT], --portcon[=PORT]       print port contexts
# seinfo -p | wc -l
Rule loading disabled
330
# seinfo --portcon | wc -l
19
# seinfo --portcon

Statistics for policy file: /etc/selinux/targeted/policy/policy.21
Policy Version & Type: v.21 (binary, MLS)

   Classes:            61    Permissions:       220
   Types:            1785    Attributes:        166
   Users:               3    Roles:               6
   Booleans:          257    Cond. Expr.:       240
   Sensitivities:       1    Categories:       1024
   Allow:          124656    Neverallow:          0
   Auditallow:         42    Dontaudit:        7071
   Role allow:          5    Role trans:          0
   Type_trans:       2093    Type_change:         0
   Type_member:         0    Range_trans:       433
   Constraints:        47    Validatetrans:       0
   Fs_use:             19    Genfscon:           74
   Portcon:           328    Netifcon:            0
   Nodecon:             8    Initial SIDs:       27

  
Actual results:
'seinfo --portcon' does not print port contexts (as described in its man page).

Expected results:
'seinfo --portcon' prints port contexts (as described in its man page).

Comment 1 Chris PeBenito 2010-05-14 12:41:45 UTC
Dan, newer versions dropped -p as an option and instead --portcon pronts the portcons.  Upstream won't be backporting it.  It may be best just to fix the man page.

Comment 2 Daniel Walsh 2010-05-14 13:28:40 UTC
Milos, I don't think this is an important enough problem to push an update.

Comment 3 RHEL Program Management 2010-05-14 14:32:35 UTC
Development Management has reviewed and declined this request.  You may appeal
this decision by reopening this request.