I received a SELinux alert today which said:
SELinux is preventing /usr/local/bin/snort from search access on the directory logs.
One of the options was to do:SELinux is preventing /usr/local/bin/snort from search access on the directory logs.
semanage fcontext -a -t FILE_TYPE 'logs'
restorecon -v 'logs'
ll -Zd logs
drwxr-xr-x. root root unconfined_u:object_r:file_t:s0 logs
sudo semanage fcontext -a -t var_log_t 'logs'
sudo restorecon -v 'logs'
restorecon: Warning no default label for /media/NSM/NSM-SENSOR-2/logs
ll -Zd logs
drwxr-xr-x. root root unconfined_u:object_r:file_t:s0 logs
-- users mailing list users@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines Have a question? Ask away: http://ask.fedoraproject.org