I set a file to a specific type using
semanage fcontext, and using
restorecon does properly set the file type. However, upon reboot, the type goes back the default. If I run
restorecon again then it updates to its proper type. This file exists under
/run/, is there a way to have this permissions change persist across reboots?
semanage fcontext -a -t httpd_sys_content_t /var/run/myfile