apache under debian
Hello,
To be able to read the /var/www/ directory I had to add the following line.
#http stuff
allow httpd_t var_t:file { getattr read };
Yet /var/www is this.
drwxrwxrwx www-data www-data system_u:object_r:httpd_sys_content_t www
does this mean we need some additional rules for apache?
Ed
---
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.692 / Virus Database: 453 - Release Date: 5/28/2004
Quoted 4 lines · Ed Street
To be able to read the
/var/www/directory I had to add the following line. #http stuffallow
httpd_tvar_t:file { getattr read };
That should not be necessary.
daemon_domain(httpd, `, privmail')
The above line from httpd.te expands to:
define(daemon_domain',
daemon_base_domain($1, `$2', $3)
# Create pid file.
allow $1_t var_t:dir { getattr search };var_run_domain($1)
Quoted 3 lines
Yet
/var/wwwis this.drwxrwxrwx www-data www-data system_u:object_r:httpd_sys_content_t www
That's bad, you don't want mode 777 even when using SE Linux. Or are you repeating my "chmod -R 777 /" experiment?
Signature · 9 lines
http://www.coker.com.au/selinux/ My NSA Security Enhanced Linux packages http://www.coker.com.au/bonnie++/ Bonnie++ hard drive benchmark http://www.coker.com.au/postal/ Postal SMTP/POP benchmark http://www.coker.com.au/~russell/ My home page -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.