Since it won't work without EXT4_FS_SECURITY, F2FS_FS_SECURITY or $any_fs_FS_SECURITY option, I propose to check if FS is compiled and if is, check for _FS_SECURITY config option. Does it make sense? Reproducible: Always
What do you mean with "won't work without"?
without kernel compiled with this option it won't have effect. No capabilities are applied. This cause later issues, since applications suppose it did worked (regular distros has always this option compiled in).
There are some features which maybe need it but not in general. Your comment sounds like we always need it but think about XFS-only systems for example. So what do you want us to do here? A hard failure or just a warning when EXT4_FS_SECURITY is not set in kernel doesn't make sense if you don't use EXT4 at all... I tend to close this as INVALID or at least CANTFIX at the moment.
for me it doesn't matter anymore, I did recompiled kernel long time ago. I just wanted to warn others, that their system may misbehave.