I have a daemon (apache/samba/vsftpd/…) running on SELinux enabled system and I need to allow it to use files in a non-default location. The standard file permissions are configured to allow access.
I’m on CentOS 6.2, and have a file with the alternate access method character displayed as a dot.
Does anyone know which sebool it is to allow httpd write access to /home/user/html?
When I disable SELinux echo 0 > /selinux/enforce
I can write, so my problem is definitely related to SELinux. I just don’t know which one is the right one without opening a big hole and Google isn’t being much help.
I want to run a command on Linux in a way that it cannot create or open any files to write. It should still be able to read files as normal (so an empty chroot is not an option), and still be able to write to files already open (especially stdout).
I wrote a service/single binary app that I’m trying to run on Fedora 24, it runs using systemd, the binary is deployed to /srv/bot
How can I copy SELinux context from one directory and apply it to another?