diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2008-07-15 00:22:03 +0400 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2008-07-15 00:22:03 +0400 |
commit | e2406d71aa6a1b632e67f7cd1e53c7d38533cec6 (patch) | |
tree | ce6d14a7419c4ac381b3e734c91be6018474c9bd /winsup/cygwin/mount.cc | |
parent | bf216dcad6ff26bc9c160402da639fdc89614fb4 (diff) |
Throughout drop allow_ntsec and allow_smbntsec handling.
* environ.cc (set_ntsec): Remove.
(set_smbntsec): Remove.
(known): Remove ntsec and smbntsec options.
* external.cc (check_ntsec): Return true if no filename is given.
* mount.cc (oopts): Add "acl" and "noacl" options. Set MOUNT_NOACL
flag accordingly.
(fillout_mntent): Handle MOUNT_NOACL flag.
* path.h (enum path_types): Add PATH_NOACL.
* security.cc (allow_ntsec): Remove.
(allow_smbntsec): Remove.
* security.h (allow_ntsec): Drop declaration.
(allow_smbntsec): Drop declaration.
* include/sys/mount.h (MOUNT_NOACL): Define.
Diffstat (limited to 'winsup/cygwin/mount.cc')
-rw-r--r-- | winsup/cygwin/mount.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/winsup/cygwin/mount.cc b/winsup/cygwin/mount.cc index 3d1a8cb9a..2bc941ef4 100644 --- a/winsup/cygwin/mount.cc +++ b/winsup/cygwin/mount.cc @@ -831,7 +831,9 @@ struct opt {"notexec", MOUNT_NOTEXEC, 0}, {"cygexec", MOUNT_CYGWIN_EXEC, 0}, {"nosuid", 0, 0}, - {"managed", MOUNT_ENC, 0} + {"managed", MOUNT_ENC, 0}, + {"acl", MOUNT_NOACL, 1}, + {"noacl", MOUNT_NOACL, 0} }; static bool @@ -1353,6 +1355,9 @@ fillout_mntent (const char *native_path, const char *posix_path, unsigned flags) if (flags & MOUNT_ENC) strcat (_my_tls.locals.mnt_opts, ",managed"); + if (flags & MOUNT_NOACL) + strcat (_my_tls.locals.mnt_opts, (char *) ",noacl"); + if ((flags & MOUNT_CYGDRIVE)) /* cygdrive */ strcat (_my_tls.locals.mnt_opts, (char *) ",noumount"); |