Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Security and Privacy
FedoraForum Search

Forgot Password? Join Us!

Security and Privacy Sadly, malware, spyware, hackers and privacy threats abound in today's world. Let's be paranoid and secure our penguins, and slam the doors on privacy exploits.

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 1st May 2006, 11:04 PM
Cody Offline
Registered User
 
Join Date: Feb 2006
Posts: 110
SELinux Blocking Certain Web Files?

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
Reply With Quote
 

Tags
blocking, files, selinux, web

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
SELinux blocking dhcpc_t mbr661 Security and Privacy 1 5th September 2008 01:06 PM
SELinux is blocking.........what? Judy Using Fedora 7 1st February 2008 12:06 AM
SELinux is blocking.........what? Judy Using Fedora 5 30th December 2007 11:01 PM
SELinux blocking tmpwatch ajamison Security and Privacy 0 20th December 2007 03:18 AM
SELinux Blocking SAMBA andymelton Servers & Networking 5 5th December 2007 06:01 PM


Current GMT-time: 14:30 (Friday, 24-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat