LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-17-2011, 01:11 PM   #1
trist007
Senior Member
 
Registered: May 2008
Distribution: Slackware
Posts: 1,033

Rep: Reputation: 69
A question about selinux...


What if two programs say ftpd and httpd need to acces the
same directory? Any way to set context type of that directory to httpd_t and ftpd_t? What do you do in a case like this?
 
Old 06-17-2011, 03:46 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,360
Blog Entries: 55

Rep: Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547
Web server content does not have a "httpd_t" but "public_content_t" or "public_content_rw_t" type. Before manually changing context ('semanage fcontext') look at what the policy offers in terms of booleans. In this case 'setsebool -P allow_ftpd_anon_write on' would allow the FTP daemon to read and write to files with a "public_content_rw_t" type. Also note in case of SELinux errors it's always good to check the /var/log/audit/audit.log (or /var/log/messages if not logged there) for (sealert?) clues.
 
Old 06-19-2011, 10:19 AM   #3
trist007
Senior Member
 
Registered: May 2008
Distribution: Slackware
Posts: 1,033

Original Poster
Rep: Reputation: 69
Ah I see. Thank you.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
SELinux question sang_froid Linux - Security 1 01-28-2010 04:13 PM
SELINUX Question Iamriccati Linux - Enterprise 1 12-04-2007 07:44 PM
SELINUX Question Iamriccati Linux - Server 2 12-04-2007 05:23 PM
selinux question stopmotion24 Fedora 2 03-26-2005 11:58 PM
selinux question ronin4601 Linux - Newbie 0 04-18-2004 02:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:17 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration