selftests/filesystems: check that the nullfs root can't be reconfigured

Add a test for the root of an empty mount namespace:

- fspick() of the root fails with EINVAL
- mount(MS_REMOUNT) of the root fails with EINVAL
- umount() of the root fails and doesn't remount it read-only

Link: https://patch.msgid.link/20260930-work-mount-fixes-3-v1-12-be34c83956ae@kernel.org
Signed-off-by: Christian Brauner (Amutable) <brauner@kernel.org>
This commit is contained in:
Christian Brauner 2026-09-30 15:32:04 +02:00
commit 5e83e3a38b
No known key found for this signature in database
GPG key ID: 91C61BC06578DCA2
3 changed files with 111 additions and 0 deletions