Bug 1118827 - semanage fails to shadow ports
Summary: semanage fails to shadow ports
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: policycoreutils
Version: 20
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Daniel Walsh
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-07-11 15:47 UTC by Enrico Scholz
Modified: 2014-07-11 15:54 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-07-11 15:54:11 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Enrico Scholz 2014-07-11 15:47:02 UTC
Description of problem:

When trying to label a custom port, 'semanage' sometimes fails with

# semanage port -a -t stunnel_listen_port_t -p tcp 8009
ValueError: Port tcp/8009 already defined

# semanage port -d -p tcp 8009
ValueError: Port tcp/8009 is defined in policy, cannot be deleted


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

policycoreutils-python-2.2.5-4.fc20.x86_64


How reproducible:

100%

Comment 1 Miroslav Grepl 2014-07-11 15:54:11 UTC
Yes this is a correct behaviour.

You want to use


# semanage port -m -t stunnel_listen_port_t -p tcp 8009


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