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.
This commit is contained in:
@@ -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");
|
||||
|
||||
|
Reference in New Issue
Block a user