From 7d5ae9ccf7e0d67c5f1e94eefceea27e21f73242 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Wed, 18 Nov 2009 16:07:05 +0000 Subject: * overview2.sgml (ov-hi-files): Remove reference to root directory when explaining fstab content. Add paragraph about Extended Attributes. Discourage chroot. --- winsup/doc/overview2.sgml | 31 ++++++++++++++++++------------- 1 file changed, 18 insertions(+), 13 deletions(-) (limited to 'winsup/doc/overview2.sgml') diff --git a/winsup/doc/overview2.sgml b/winsup/doc/overview2.sgml index 0761629f7..b0e3635c7 100644 --- a/winsup/doc/overview2.sgml +++ b/winsup/doc/overview2.sgml @@ -177,9 +177,9 @@ the mount points point to Win32 paths. An installation with setup.exe installs a fstab file by default, which can easily be changed using the editor of your choice. -In addition to selecting the root partition, the -fstab file allows mounting arbitrary Win32 paths into -the POSIX file system space. A special case is the so-called cygdrive prefix. +The fstab file allows mounting arbitrary Win32 +paths into the POSIX file system space. A special case is the so-called +cygdrive prefix. It's the path under which every available drive in the system is mounted under its drive letter. The default value is /cygdrive, so you can access the drives as /cygdrive/c, @@ -237,18 +237,23 @@ guaranteed to be unique. However, we have not found this to be a significant problem because of the low probability of generating a duplicate inode number. -chroot(2) is supported since Cygwin 1.1.3. -However, chroot is not a concept known by Windows. This implies some +Cygwin 1.7 and later supports Extended Attributes (EAs) via the +linux-specific function calls getxattr, +setxattr, listxattr, and +removexattr. All EAs on Samba or NTFS are treated as +user EAs, so, if the name of an EA is "foo" from the Windows perspective, +it's transformed into "user.foo" within Cygwin. This allows Linux-compatible +EA operations and keeps tools like attr, or +setfattr happy. + + +chroot is supported since Cygwin 1.1.3. +However, chroot is not a concept known by Windows. This implies some serious restrictions. First of all, the chroot call isn't a privileged call. Any user may call it. Second, the chroot environment -isn't safe against native windows processes. If you want to use a -chroot environment to, for example, allow anonymous ftp with restricted -access, you must make sure care that only native Cygwin applications -are accessible inside of the chroot environment. Since those applications -are only using the Cygwin POSIX API to access the file system their access -can be restricted as it is intended. This includes not only POSIX paths but -Win32 paths containing drive letter and/or backslashes as well as UNC paths -(//server/share or \\server\share). +isn't safe against native windows processes. Given that, chroot in Cygwin +is only a hack which pretends security where there is none. For that reason +the usage of chroot is discouraged. -- cgit v1.2.3