Re: [cap-talk] File API taming
| Newsgroups | gmane.comp.lang.e.general,gmane.comp.capabilities.general |
|---|---|
| Message-ID | <[email protected]> |
I should clarify some vagueness that was caught by David Wagner -- On Thu, Apr 9, 2009 at 4:34 PM, <[email protected]> wrote: > * Files provide a "getPath()" up to the closest makeOpaque()-ed directory; > and > > * Each sandbox gets a reference to a (usually -- but not always -- > makeOpaque()-ed) reference to a directory that serves as its "chroot()-ed > jail". > One more criterion is that no directory (makeOpaque()-ed or not) can resolves a ".." path that traverses past its own level. So, for directory 'd', the following work -- d.resolve('foo/bar'); d.resolve('baz'); d.resolve('a/b/../c'); but not -- d.resolve('..'); d.resolve('a/b/../../..'); Ihab -- Ihab A.B. Awad, Palo Alto, CA _______________________________________________ e-lang mailing list [email protected] http://www.eros-os.org/mailman/listinfo/e-lang