From: Lennart Poettering Date: Tue, 8 Jul 2025 04:51:41 +0000 (+0200) Subject: nspawn: Support idmapped mounts on homed managed home directories (#38069) X-Git-Tag: v258-rc1~141 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=18eafedb1aa7647dc2348c09dd7a4a3584e8c175;p=thirdparty%2Fsystemd.git nspawn: Support idmapped mounts on homed managed home directories (#38069) Christian made this possible in Linux 6.15 with a new system call open_tree_attr() that combines open_tree() and mount_setattr(). Because idmapped mounts are (rightfully) not nested, we have to do some extra shenanigans to make source we're putting the right source uid in the userns for any idmapped mounts that we do in nspawn. Of course we also add the necessary boilerplate to make open_tree_attr() available in our code and wrap open_tree_attr() and the corresponding fallback in a new function which we then use everywhere else. --- 18eafedb1aa7647dc2348c09dd7a4a3584e8c175