Re: [PATCH RFC 4/7] fs: support FD_FAILFS_ROOT in fchroot()
From: John Ericson
Date: Sun Jul 26 2026 - 23:32:29 EST
Very happy to see this patch series appear; thanks Christian!
Also happy with where this specific thread is going. I will just add
that an additional flag in fs_struct to force RESOLVE_BENEATH in *all* path
lookup would also be nice. The combination of:
root = pwd = failfs;
chroot_locked = false;
always_resolve_beneath = true;
goes along way to getting Capsicum's "capability mode". Then we just
need to figure out things like more capabilities for directory file
descriptors per Andy's brainstorming thread thread (which I ought to get
to replying to).
John