The bind mount to rootfs requires root privileges and doesn't work
in user namespace simulation environments.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
return -1
def test_mount_bind_to_rootfs():
+ if is_rootless():
+ return (77, "requires root for bind mount to rootfs")
+
conf = base_config()
conf['process']['args'] = ['/init', 'true']
add_all_namespaces(conf)