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: Private user directory trees.: msg#00185

Subject: Re: Private user directory trees.
On Thu, 2005-05-26 at 09:41 +0300, George J. Jahchan wrote:
> How can we setup private user directory that is (recursively) off-limits to
> anyone but the owner (including root), so long as the policy is being 
> enforced.
> 
> These directory trees would be similarly named for all users:
> "/home_dir_path/Private/" for instance.

First, what do you mean by "root"?  An arbitrary uid 0 process like a
daemon or setuid application, or an authenticated administrative user?
The former is easy to restrict, as it only has the capabilities and
permissions allowed by the SELinux policy for its domain.  The latter is
difficult, as an admin often has legitimate need to access all files
(e.g. backup), can subvert the OS (e.g. by installing updated OS
software or configuration files that include his own modifications), and
can bypass any OS restrictions (e.g. boot from CD or remove the disk and
put it into a system under his control).

Second, do you truly want per-user separation or just per-
role/domain/level?  MAC is more oriented toward the latter.  For per-
user separation, you have two options:
- use the existing Linux DAC support, i.e. set file modes in the usual
manner, and only use SELinux to help restrict what processes can
override DAC,
- define per-user entries in policy/users, define a new file type for
these directories, and define a constraint in policy/constraints so that
this type may only be accessed by a process with the same SELinux user
identity.

-- 
Stephen Smalley
National Security Agency



<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