Bug 1414490 - cannot delete an interface which was added by semanage interface -a ...
Summary: cannot delete an interface which was added by semanage interface -a ...
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: libsepol
Version: rawhide
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Petr Lautrbach
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-01-18 16:14 UTC by Milos Malik
Modified: 2017-01-19 14:25 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-01-19 14:25:27 UTC
Type: Bug


Attachments (Terms of Use)

Description Milos Malik 2017-01-18 16:14:57 UTC
Description of problem:
* the same scenario works on RHEL-7.3

Version-Release number of selected component (if applicable):
checkpolicy-2.6-0.1.fc25.x86_64
libselinux-2.6-0.1.fc25.x86_64
libselinux-python-2.6-0.1.fc25.x86_64
libselinux-python3-2.6-0.1.fc25.x86_64
libselinux-utils-2.6-0.1.fc25.x86_64
libsemanage-2.6-0.2.fc25.x86_64
libsemanage-python-2.6-0.2.fc25.x86_64
libsemanage-python3-2.6-0.2.fc25.x86_64
libsepol-2.6-0.1.fc25.x86_64
policycoreutils-2.6-0.2.fc25.x86_64
policycoreutils-python-2.6-0.2.fc25.x86_64
policycoreutils-python3-2.6-0.2.fc25.x86_64
policycoreutils-python-utils-2.6-0.2.fc25.x86_64
python-2.7.12-7.fc25.x86_64
python3-3.5.2-4.fc25.x86_64
selinux-policy-3.13.1-225.6.fc25.noarch
selinux-policy-targeted-3.13.1-225.6.fc25.noarch
setools-python3-4.0.1-0.2.fc25.x86_64

How reproducible:
* always

Steps to Reproduce:
# semanage interface -l
# semanage interface -E
# semanage interface -a -t netif_t xyz
# semanage interface -E
interface -a -t netif_t xyz
# semanage interface -l
SELinux Interface              Context

xyz                            system_u:object_r:netif_t:s0 
# semanage interface -d xyz
ValueError: Interface xyz is not defined
# semanage interface -d -t netif_t xyz
ValueError: Interface xyz is not defined
# semanage interface -D
ValueError: Interface xyz is not defined
# 

Actual results:
* interface record cannot be deleted

Expected results:
* interface record is deleted


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