diff options
| author | Al Viro <viro@zeniv.linux.org.uk> | 2025-08-19 23:54:39 -0400 |
|---|---|---|
| committer | Al Viro <viro@zeniv.linux.org.uk> | 2025-09-02 19:35:58 -0400 |
| commit | d29da1a8f119130e6fc7d5d71029d402dabe2cb0 (patch) | |
| tree | ddc41888d5b5fc571a0e516728759eace28261e4 /scripts/lib/abi/helpers.py | |
| parent | c1ab70be88f3135cdb931673aae2afc5d6624b62 (diff) | |
move_mount(2): take sanity checks in 'beneath' case into do_lock_mount()
We want to mount beneath the given location. For that operation to
make sense, location must be the root of some mount that has something
under it. Currently we let it proceed if those requirements are not met,
with rather meaningless results, and have that bogosity caught further
down the road; let's fail early instead - do_lock_mount() doesn't make
sense unless those conditions hold, and checking them there makes
things simpler.
Reviewed-by: Christian Brauner <brauner@kernel.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'scripts/lib/abi/helpers.py')
0 files changed, 0 insertions, 0 deletions
