You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think the CONFIG_F2FS_FS_SECURITY=y option should be enabled in the kernel.
It enables support for the XATTR security namespace, which atm is not supported due to this option currently not being set to yes.
The xattr security namespace is used by SELinux and is also a requirement for Samba4 AD/DC full support.
We already have XATTR and POSIX_ACL support enabled for F2FS, with user namespace support, it only makes sense to fully support XATTR on F2FS by also enabling CONFIG_F2FS_FS_SECURITY.
I don't have a comparative test for the memory usage and CPU performance with and without the feature enabled in the kernel, but I have a Pi with this enabled, which did not had it prior, and I do not see a noticeable difference in feel.
Sure, this is only based on "feel" and my own impression on how the device behaves. It is in no way an exact test. Plus, I am not very sure how I can produce such numbers, I am not very versed in such benchmarking on Linux.
However, not enabling the XATTR security namespace, but only the user namespace, leaves a lot of the uses of XATTR out of the picture due to lack of support. This increases the uselessness level of the previous activation of CONFIG_F2FS_FS_XATTR in the kernel.
Did a quick recompile with this enabled - adds 352 bytes on the Pi4 zImage. Looking at the code, cannot see if having much of a effect on the performance, and it's only used when f2fs is being use I believe. So seems like an OK addition.
In fact the extra seems to get swallowed up in such a way that the memory map doesn't expand.
ext4 has exactly the same initialisation hook, but it configures a different set of attributes.
Since the code size change is negligible, and any (presumably tiny) runtime overhead only affects F2FS users (who might benefit from the change) I'm prepared to enable the config setting.
Activity
JamesH65 commentedon Jan 7, 2019
Do you have any numbers for the impact this has on memory requriements and overall CPU performance impact?
vch42 commentedon Jan 18, 2019
I don't have a comparative test for the memory usage and CPU performance with and without the feature enabled in the kernel, but I have a Pi with this enabled, which did not had it prior, and I do not see a noticeable difference in feel.
Sure, this is only based on "feel" and my own impression on how the device behaves. It is in no way an exact test. Plus, I am not very sure how I can produce such numbers, I am not very versed in such benchmarking on Linux.
However, not enabling the XATTR security namespace, but only the user namespace, leaves a lot of the uses of XATTR out of the picture due to lack of support. This increases the uselessness level of the previous activation of CONFIG_F2FS_FS_XATTR in the kernel.
JamesH65 commentedon Aug 1, 2019
Did a quick recompile with this enabled - adds 352 bytes on the Pi4 zImage. Looking at the code, cannot see if having much of a effect on the performance, and it's only used when f2fs is being use I believe. So seems like an OK addition.
JamesH65 commentedon Aug 1, 2019
@popcornmix @pelwell
popcornmix commentedon Aug 1, 2019
Okay.
JamesH65 commentedon Sep 19, 2019
@dom Not yet enabled - do we intend to do so?
pelwell commentedon Oct 18, 2021
This does indeed add very little code:
In fact the extra seems to get swallowed up in such a way that the memory map doesn't expand.
ext4 has exactly the same initialisation hook, but it configures a different set of attributes.
Since the code size change is negligible, and any (presumably tiny) runtime overhead only affects F2FS users (who might benefit from the change) I'm prepared to enable the config setting.
config: Enable FSFS_FS_SECURITY
pelwell commentedon Oct 18, 2021
See #4637.
config: Enable FSFS_FS_SECURITY
config: Enable FSFS_FS_SECURITY
config: Enable FSFS_FS_SECURITY
config: Enable FSFS_FS_SECURITY
25 remaining items
config: Enable FSFS_FS_SECURITY
config: Enable FSFS_FS_SECURITY
config: Enable FSFS_FS_SECURITY
config: Enable FSFS_FS_SECURITY
config: Enable FSFS_FS_SECURITY
config: Enable FSFS_FS_SECURITY
config: Enable FSFS_FS_SECURITY
config: Enable FSFS_FS_SECURITY
config: Enable FSFS_FS_SECURITY
config: Enable FSFS_FS_SECURITY
config: Enable FSFS_FS_SECURITY
config: Enable FSFS_FS_SECURITY
config: Enable FSFS_FS_SECURITY
config: Enable FSFS_FS_SECURITY