]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Do not allow to use O_BENEATH as an oracle.
authorKonstantin Belousov <kib@FreeBSD.org>
Thu, 8 Oct 2020 22:31:11 +0000 (22:31 +0000)
committerKonstantin Belousov <kib@FreeBSD.org>
Thu, 8 Oct 2020 22:31:11 +0000 (22:31 +0000)
commit4ea49660099c288517d9321f3ed40ff4e9d42cfc
treed3c592c45b81b220b65a8e237b5c6dec57835aab
parent9470013f5a32b26bf24f3c624750ccf1a9268f49
Do not allow to use O_BENEATH as an oracle.

Specifically, if lookup() returned any error and the topping directory
was not latched, which means that (non-existent) path did not returned
to the topping location, give ENOTCAPABLE a priority over the lookup()
error.

PR: 249960
Reviewed by: emaste, ngie
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D26695
sys/kern/vfs_lookup.c