Skip to main content
1 of 2
sebasth
  • 15.8k
  • 6
  • 53
  • 71

Configure SELinux to allow daemons to use files in non-default locations

I have a daemon (apache/samba/vsftpd/...) running on SELinux enabled system and I need to allow it to use files in non-default location. The standard file permissions are configured to allow access.

If the daemon is running in permissive mode, everything works. When set back to enforcing it doesn't work anymore and I get a SELinux AVC denial messages.

How can I configure the system to allow the access in enforcing mode?

sebasth
  • 15.8k
  • 6
  • 53
  • 71