Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

Re: SELinux settings for a program run either by apache or user?: msg#00167

Subject: Re: SELinux settings for a program run either by apache or user?
On Thu, 2005-01-20 at 19:56 +1100, Nick Urbanik wrote:

> This raises a can of worms when maintaining the program, and the
> question arises as to which is the "real one". 

Well...no, since you still have the same source code and build process,
etc.  This solution is a lot like what pre-SELinux chroot scripts did
for bind, etc.

>  I'm likely to forget
> to update one or the other.  

I'd imagine that your Makefile or whatever would install the two copies
explicitly.  Or you could do it in the RPM build process.

> "Which one do I enter into version
> control?" is a question I would ask myself often.

You enter binaries into version control?

> Where are SELinux attributes stored?  In the inode?  

They are tightly coupled to the inode, yes.  Just like Unix permissions
are.

> If not, can hard
> links be given different attributes?

No; hard links are just additional names for the same object.  SELinux
protects the actual object, not names or references to objects.

> > The other solution is to define a new type, and grant both domains in
> > question access to it.  This is a lot more complex; now you have to
> > consider potential information flow between the two domains which were
> > (presumably) separate before.
> 
> Well, that may be more managable in the long term.  Can you suggest a
> (relatively) simple way of doing that?

You'd have to explain more about your setup.  Are you just trying to run
the CGI script as an ordinary user from unconfined_t?




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
qnx.openqnx.dev...    gcc.libstdc++.c...    solaris.opensol...    information-ret...    misc.misterhous...    web.catalyst.ge...    apache.webservi...    redhat.release....    hardware.lirc/2...    kernel.autofs/2...    technology.sust...    linux.vdr/2003-...    editors.lyx.gen...    org.user-groups...    netbsd.devel.pk...    xdg.devel/2004-...    version-control...    jakarta.slide.d...    debian.packages...    creativecommons...    ports.ppc.embed...    bug-tracking.bu...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe