Fcontext fails on re-run on newer platforms
Closed this issue · 1 comments
ehelms commented
An example error from the console of what the module runs:
# /sbin/semanage fcontext -a -t squid_cache_t -f a '/var/spool/squid(/.*)?'
ValueError: File context for /var/spool/squid(/.*)? already defined
Package version:
policycoreutils-python-utils.noarch 2.8-16.1.el8 @rhel-8-for-x86_64-baseos-rpms
Seems that newer semanage will error if a -a
operating is ran for an existing entity which breaks re-runs.