Tag Info

New answers tagged

0

At the moment on RHEL7.1--I'm not sure if this has always been there and I missed it--I can execute the following to get a list of all the filecontexts and just pipe the output to grep: # semanage fcontext -l |grep ifconfig_exec_t /bin/ip regular file system_u:object_r:ifconfig_exec_t:s0 /sbin/ethtool ...


0

I did run restorecon and it put everything back to var_t type, but, I am still confused as to why all of my html files in /var/www/html were file_t type? two last questions: where is the permissive log located? does SELinux block symbolic links to file_t files and directories when everything in /var/www/html is supposed to be type file_t? thanks for the ...


0

The files were probably created in different way on both systems so this is the reason for different types. To make sure it is in "system-default" state, you can relabel the filesystem (or at least the required directories) using restorecon(8).


0

I think that Derek give the right answer. Anyway I also got that working with: sudo mkdir /var/wwww/html/site/pdf sudo chmod 755 /var/wwww/html/site/pdf #try to change SElinux folder tipe sudo chcon -t public_content_rw_t /var/www/html/site/pdf #i want that persistent sudo semanage fcontext -a -t #add this inside fcontext file public_content_rw_t ...



Top 50 recent answers are included