Hi! I run a webserver on FC5. I have noticed, however, that if I create a file as root, put it in /var/www/html, and share it, it opens fine. However, if I create a file as my user, put it in /var/www/html as root, and share it, it won't open. This is regardless of if I chmod 777 the file, or chown root:root the file. It will not open. Here are the lines I am seeing in /var/log/messages:
Code:
May 1 16:34:14 thor kernel: audit(1146519254.957:24): avc: denied { getattr } for pid=31198 comm="httpd" name="h1.jpg" dev=dm-0 ino=2097225 scontext=system_u:system_r:httpd_t:s0 tcontext=system_u:object_r:default_t:s0 tclass=fileMay 1 16:35:10 thor kernel: audit(1146519310.641:25): avc: denied { getattr } for pid=31202 comm="httpd" name="h1.jpg" dev=dm-0 ino=2097225 scontext=system_u:system_r:httpd_t:s0 tcontext=system_u:object_r:default_t:s0 tclass=fileMay 1 16:35:10 thor kernel: audit(1146519310.661:26): avc: denied { getattr } for pid=31202 comm="httpd" name="h1.jpg" dev=dm-0 ino=2097225 scontext=system_u:system_r:httpd_t:s0 tcontext=system_u:object_r:default_t:s0 tclass=fileMay 1 16:35:37 thor kernel: audit(1146519337.013:27): avc: denied { getattr } for pid=31204 comm="httpd" name="h1.jpg" dev=dm-0 ino=2097225 scontext=system_u:system_r:httpd_t:s0 tcontext=system_u:object_r:default_t:s0 tclass=fileMay 1 16:35:37 thor kernel: audit(1146519337.049:28): avc: denied { getattr } for pid=31204 comm="httpd" name="h1.jpg" dev=dm-0 ino=2097225 scontext=system_u:system_r:httpd_t:s0 tcontext=system_u:object_r:default_t:s0 tclass=fileMay 1 16:35:39 thor kernel: audit(1146519338.981:29): avc: denied { getattr } for pid=31200 comm="httpd" name="h1.jpg" dev=dm-0 ino=2097225 scontext=system_u:system_r:httpd_t:s0 tcontext=system_u:object_r:default_t:s0 tclass=fileMay 1 16:35:39 thor kernel: audit(1146519339.021:30): avc: denied { getattr } for pid=31200 comm="httpd" name="h1.jpg" dev=dm-0 ino=2097225 scontext=system_u:system_r:httpd_t:s0 tcontext=system_u:object_r:default_t:s0 tclass=file
I have had this issue with several files. Any ideas?
Cody