Hi All,
I am playing with bootc and it appears that when I run semanage more than once in my Containerfile I get the error;
`+ semanage fcontext --add --type container_file_t '/usr/containers(/.*)?'`
`libsemanage.semanage_commit_sandbox: Error while renaming /etc/selinux/targeted/tmp to /etc/selinux/targeted/active. (Directory not empty).`
`libsemanage.semanage_commit_sandbox: Error while renaming /etc/selinux/targeted/previous back to /etc/selinux/targeted/active. (Directory not empty).`
`OSError: Directory not empty`
Note: In this case the above command is the second in the Containerfile.
The specific command I am running are;
semanage fcontext --add --type httpd_config_t "/usr/httpd(/.*)?"
semanage fcontext --add --type container_file_t "/usr/containers(/.*)?"
I would have expected that anyone using custom paths would need to run this command multiple times so I am suprised I havent found anything using Google.
Appreciate any pointers.
Thanks,
Adam