diff options
author | kib <kib@FreeBSD.org> | 2016-12-26 09:56:52 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2016-12-26 09:56:52 +0000 |
commit | 94f4b4caf87199c5daed85c364bb2d6b3418a0b3 (patch) | |
tree | f6085aa67e35ecf84a87cca369b86345ebe4f46c /sys/kern | |
parent | a23ff62742978f29a5c7087c93a9998b6406cc7b (diff) | |
download | FreeBSD-src-94f4b4caf87199c5daed85c364bb2d6b3418a0b3.zip FreeBSD-src-94f4b4caf87199c5daed85c364bb2d6b3418a0b3.tar.gz |
MFC r309887:
Enable lookup_cap_dotdot and lookup_cap_dotdot_nonlocal.
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/vfs_lookup.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/sys/kern/vfs_lookup.c b/sys/kern/vfs_lookup.c index 4ce7850..85c625f 100644 --- a/sys/kern/vfs_lookup.c +++ b/sys/kern/vfs_lookup.c @@ -106,16 +106,11 @@ static int lookup_shared = 1; SYSCTL_INT(_vfs, OID_AUTO, lookup_shared, CTLFLAG_RWTUN, &lookup_shared, 0, "enables shared locks for path name translation"); -/* - * Intent is that lookup_cap_dotdot becomes unconditionally enabled, - * but it defaults to the disabled state until verification efforts - * are complete. - */ -static int lookup_cap_dotdot = 0; +static int lookup_cap_dotdot = 1; SYSCTL_INT(_vfs, OID_AUTO, lookup_cap_dotdot, CTLFLAG_RWTUN, &lookup_cap_dotdot, 0, "enables \"..\" components in path lookup in capability mode"); -static int lookup_cap_dotdot_nonlocal = 0; +static int lookup_cap_dotdot_nonlocal = 1; SYSCTL_INT(_vfs, OID_AUTO, lookup_cap_dotdot_nonlocal, CTLFLAG_RWTUN, &lookup_cap_dotdot_nonlocal, 0, "enables \"..\" components in path lookup in capability mode " |