diff options
author | Konstantin Belousov <kib@FreeBSD.org> | 2016-12-12 11:12:04 +0000 |
---|---|---|
committer | Konstantin Belousov <kib@FreeBSD.org> | 2016-12-12 11:12:04 +0000 |
commit | 778aa66a68dc569ef2243e2579443f549f4225b7 (patch) | |
tree | 48da87c0dd6e3d73a444d55c88c8b320ac53bee6 | |
parent | 545d31229353b58c550628b5eefff3436dc3ec66 (diff) | |
download | src-778aa66a68dc569ef2243e2579443f549f4225b7.tar.gz src-778aa66a68dc569ef2243e2579443f549f4225b7.zip |
Enable lookup_cap_dotdot and lookup_cap_dotdot_nonlocal.
Requested and reviewed by: cem
Sponsored by: The FreeBSD Foundation
MFC after: 2 weeks
Differential revision: https://reviews.freebsd.org/D8746
Notes
Notes:
svn path=/head/; revision=309887
-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 bab4edf5b444..7885ec1e7647 100644 --- a/sys/kern/vfs_lookup.c +++ b/sys/kern/vfs_lookup.c @@ -161,16 +161,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 " |