Description of problem: SELinux context entries for local (new) files and directories are lost following updates to the selinux-policy-targeted package. For example, if I add a new entry as follows: semanage fcontext -a -t httpd_sys_content_t "/data/www(/.*)?" restorecon -R -v /data/www/ As far as I understand, these local (new) customisations get stored in: /etc/selinux/targeted/contexts/files/file_contexts.local but this file gets replaced when the selinux-policy-targeted package is updated, and so all my customisations get lost: rpm -qf /etc/selinux/targeted/contexts/files/file_contexts.local selinux-policy-targeted-3.13.1-158.fc23.noarch Should the package replace this file, or reinstate the contents as part of the update (as appears to be done for the /etc/selinux/targeted/contexts/files/file_contexts file)? Version-Release number of selected component (if applicable): selinux-policy-targeted-3.13.1-158.fc23.noarch
This should work *from* selinux-policy-targeted-3.13.1-158.fc23.noarch to selinux-policy-targeted-3.13.1-159.fc23.noarch and higher package update. *** This bug has been marked as a duplicate of bug 1291601 ***