subuser
subuser copied to clipboard
Subuser not working with SELINUX enforcing mode
When test create file with vim, not work permissions denied, problem with SELINUX, infact when use mode Permissive write file in home directory work.
I investigate for check and create rules for subuser work with SELINUX enforcing mode.
With audit2allow i write package policy, now Subuser work with SELINUX Enforcing.
But you show that broken security, infact home user have read/write permission for container. It necessary to disable SELINUX for use Subuser but not solution. I continu to investigate.
Some time I did some investigation on this topic as I have the same issue. I found some partial solutions documented on stackexchange: https://unix.stackexchange.com/questions/386767/selinux-and-docker-allow-access-to-x-unix-socket-in-tmp-x11-unix
Not really good, but the best solution so far is docker run option:
--security-opt label=type:container_runtime_t