Ingo Weinhold 360be1fc45 * Implemented support for chroot:
- Added a "root" vnode to the io_context. It is used for resolving
    paths and converting nodes to paths instead of sRoot. Some more
    passing around of io_context structures was necessary.
  - Introduced a new lock sIOContextRootLock to protect
    io_context::root. The current uses of io_context::io_mutex
    (put_vnode(), remove_vnode() while holding it) looked too suspicious
    to use that mutex in vnode_path_to_vnode().
  - Added _kern_change_root() syscall and chroot() libroot function.
  - Added chroot coreutils program to the image. Funnily it seems to be
    much easier to set up a little jail than under Linux (just copy
    bash and libroot.so into respective subdirs; mount another pipefs
    if you want pipe support).
    With Haiku allowing direct access to directories via inode IDs
    jailing is obviously not very secure at the moment.
  - Added /var/empty to the image. It will be the chroot target for ssh.
* Changed vfs.cpp:get_cwd() so that the io_context::io_mutex is no
  longer held when calling dir_vnode_to_path().


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24673 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-03-30 05:59:54 +00:00
..
2005-12-15 19:13:26 +00:00
2006-12-07 17:47:13 +00:00
2007-04-26 22:11:52 +00:00
2006-08-30 10:06:19 +00:00
2007-09-25 17:42:11 +00:00
2005-11-03 13:07:38 +00:00
2006-01-26 17:13:09 +00:00
2006-06-30 10:06:49 +00:00
2006-07-04 16:11:56 +00:00
2006-08-24 13:12:22 +00:00
2005-12-16 10:13:12 +00:00
2006-03-20 19:37:01 +00:00
2008-01-16 00:09:49 +00:00
2008-02-28 21:35:31 +00:00
2007-11-01 01:27:31 +00:00
2006-12-29 11:29:00 +00:00
2006-09-25 22:00:53 +00:00
c++
2008-02-07 00:26:02 +00:00
cc
2008-02-07 00:26:02 +00:00
2006-05-31 00:04:24 +00:00
2008-03-06 01:19:35 +00:00
2006-08-30 10:06:19 +00:00
2007-12-09 01:56:39 +00:00
2006-09-25 21:53:56 +00:00
2006-06-25 23:20:47 +00:00
2006-09-25 22:00:53 +00:00
2008-02-07 00:26:02 +00:00
2007-11-04 14:21:12 +00:00
2005-10-31 14:27:28 +00:00
2006-01-29 23:01:09 +00:00
2008-02-15 02:38:39 +00:00
2006-08-30 10:06:19 +00:00
2008-03-25 11:51:45 +00:00
2007-08-11 21:23:47 +00:00
2008-02-07 19:33:53 +00:00