Why restorecon works fine at first and next time doesn't work at all?I have to restorecon every time I write file to /var/www/html/javascripts by php script.Alas, audit error, and this time, semanage fcontext -l says /var/www/html/javascripts has an context httpd_sys_content_t.So, I fired up php script to write a file in /var/www/html/javascriptsI checked by semanage fcontext -l command again and found that the directory has httpd_sys_rw_content_t.# restorecon -r -v /var/www/htmlSo, I typedFound what I set.#semanage fcontext -l | grep /var/www/htmlI checked by# semanage fcontext -a -t httpd_sys_rw_content_t "/var/www/html/javascripts(/.*)?So, I added by semanage commandI write a php script which writes to /var/www/html/javascripts directory.Hi.I'm working with my web server and minor trouble I'm in.
--
日本にヘヴィメタル・ハードロックを根付かせるページ
http://www.heavymetalhardrock.tk/
世界中でセキュアOSのSELinuxを使いやすくするフリーソフト
http://sourceforge.net/projects/segatex/
http://sourceforge.net/projects/webon/
CMS(PHPとPostgreSQLを使ったフリーソフト)