Re: Preventing file writes outside of a tree or filesystem
- From: Stefaan A Eeckels <hoendech@xxxxxx>
- Date: Wed, 27 Dec 2006 17:29:31 +0100
On Wed, 27 Dec 2006 09:18:58 +0000 (UTC)
Andre Majorel <cheney@xxxxxxxxxxxxxxx> wrote:
Is there a way to run a subprocess so that it can read from all
files but not write to files outside of a tree or filesystem you
specify ? That would be on Linux but if there's a more general
solution, I'm interested in it.
Access privileges are granted to users and not to processes, so you
cannot ask the OS to restrict file access to a specific process. A
fairly hackish approach would be to preload a library that intercepts
the "open" call and applies your access policies.
I suspect you're asking the wrong question. What exactly are you trying
to achieve?
--
Stefaan A Eeckels
--
....one of the chief advantages of a CLI over a GUI: people who are
truly clueless are more likely to give up and walk away before they
mess things up too badly. --Logan Shaw
.
- Follow-Ups:
- Re: Preventing file writes outside of a tree or filesystem
- From: Andre Majorel
- Re: Preventing file writes outside of a tree or filesystem
- References:
- Preventing file writes outside of a tree or filesystem
- From: Andre Majorel
- Preventing file writes outside of a tree or filesystem
- Prev by Date: Re: Solaris 10 (01/06) SSH login warning banner page setup - Beginner Question
- Next by Date: Re: Preventing file writes outside of a tree or filesystem
- Previous by thread: Re: Preventing file writes outside of a tree or filesystem
- Next by thread: Re: Preventing file writes outside of a tree or filesystem
- Index(es):
Relevant Pages
|