]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
vfs: stricter validation for flags passed to namei in cn_flags
authorMateusz Guzik <mjg@FreeBSD.org>
Tue, 11 Aug 2020 01:34:40 +0000 (01:34 +0000)
committerMateusz Guzik <mjg@FreeBSD.org>
Tue, 11 Aug 2020 01:34:40 +0000 (01:34 +0000)
commit2d0631dd08ddca6eaba593148a4533313dedfddd
treeee428299d70488ff528695a680c63c321ff926d3
parent8d2105da1660dd79e4e287cb14c34651bc086bf9
vfs: stricter validation for flags passed to namei in cn_flags

namei de facto expects that the naimeidata object is properly initialized,
but at the same time it mixes consumer-passable and internal flags, while
tolerating this part by explicitly clearing some of them.

Tighten the interface instead.

While here renumber the flags and denote the gap between the 2 variants.

Try to piggy back th renumber on the just bumped __FreeBSD_version.
sys/kern/vfs_lookup.c
sys/sys/namei.h