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
Fixed in libsepol-2.6-0.2 https://github.com/bachradsusi/selinux/commit/f5ff374f7771e4a299c1ac11f5b7302323f8d5a2 https://github.com/bachradsusi/selinux/commit/fa12003e3cf84e7408d793ce2b22113eca699c89