Description of problem:
semanage fcontext -E does not work when custom policy contains filetype socket spoecification.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. semanage fcontext -E
2. semanage fcontext -a -f s -t httpd_var_run_t '/var/www/\.sockets(/.*)?'
3. semanage fcontext -E
(exit code 1)
list of customizable commands
Seems to be fixed in this commit:
semanage fcontext with other file types work correctly
the same is valid for RHEL 7.4 and F25
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.