For a while now I've been updating my weaker systems by mounting their rootfs over NFS and treating it like a regular stage3 chroot env. For the most part this has worked fine. But after learning the above I went to check up on a suspicion, and it turns out everywhere I'd been using USE=filecaps I was actually getting fallback setuid-root binaries installed instead. A few things had been running as root that shouldn't have, and a bunch of data files needed their ownership fixing. That isn't a great silent failure mode to find months after the fact but whatever.
My question is: how do I get xattr support to *work*?
I've got a bare v4 setup right now, everything is on kernel 5.9.x, `findmnt` says vers=4.2 is in use, but I seem to be missing a piece because something like `getcap /bin/ping` within the nfs mounts currently returns an "Operation not supported" error. I have nfs-utils installed with USE=nfsv41 and its manpages don't seem to have caught up yet, as it doesn't mention extended attributes at all.
I'm aware I'm wading into rough territory here so maybe it just doesn't work in Gentoo yet.
----
A month later on kernel 5.10 I'm still no closer to getting this working. I'm going to leave some sample emerge output here in the hopes it shows up better in search:
Code: Select all
* Messages for package net-misc/iputils-20200821-r2:
* Could not set caps on '/bin/ping' due to missing filesystem support:
* * enable XATTR support for 'nfs' in your kernel (if configurable)
* * mount the fs with the user_xattr option (if not the default)
* * enable the relevant FS_SECURITY option (if configurable)
* Could not set caps on '/bin/arping' due to missing filesystem support:
* * enable XATTR support for 'nfs' in your kernel (if configurable)
* * mount the fs with the user_xattr option (if not the default)
* * enable the relevant FS_SECURITY option (if configurable)
