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%
Yes this is a correct behaviour. You want to use # semanage port -m -t stunnel_listen_port_t -p tcp 8009