Re: SELinux contexts

2014-07-31 Thread Paolo Galtieri
On 07/31/2014 11:28 AM, Daniel J Walsh wrote: On 07/31/2014 01:52 PM, Paolo Galtieri wrote: On 07/31/2014 09:51 AM, Michael Cronenworth wrote: On 07/31/2014 10:54 AM, pgaltieri . wrote: sudo semanage fcontext -a -t var_log_t 'logs' [snip] You need to pass the full path here. # semanage fcon

Re: SELinux contexts

2014-07-31 Thread Daniel J Walsh
On 07/31/2014 01:52 PM, Paolo Galtieri wrote: > On 07/31/2014 09:51 AM, Michael Cronenworth wrote: >> On 07/31/2014 10:54 AM, pgaltieri . wrote: >>> sudo semanage fcontext -a -t var_log_t 'logs' >> [snip] >> >> You need to pass the full path here. >> >> # semanage fcontext -a -t var_log_t /media/N

Re: SELinux contexts

2014-07-31 Thread Paolo Galtieri
On 07/31/2014 09:51 AM, Michael Cronenworth wrote: On 07/31/2014 10:54 AM, pgaltieri . wrote: sudo semanage fcontext -a -t var_log_t 'logs' [snip] You need to pass the full path here. # semanage fcontext -a -t var_log_t /media/NSM/NSM-SENSOR-2/logs I tried that and the restorecon and the fil

Re: SELinux contexts

2014-07-31 Thread Michael Cronenworth
On 07/31/2014 10:54 AM, pgaltieri . wrote: sudo semanage fcontext -a -t var_log_t 'logs' [snip] You need to pass the full path here. # semanage fcontext -a -t var_log_t /media/NSM/NSM-SENSOR-2/logs -- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription optio

SELinux contexts

2014-07-31 Thread pgaltieri .
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: semanage fcontext -a -t FILE_TYPE 'logs' (lots of FILE_TYPEs) followed by restorecon -v 'logs' So here is what happens: ll -Zd logs