summaryrefslogtreecommitdiff
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorBaolin Liu <liubaolin@kylinos.cn>2026-09-23 14:02:44 +0800
committerNamjae Jeon <linkinjeon@kernel.org>2026-10-20 18:45:59 +0900
commitf09c78bd6242599a3e6ebb6c88b1d857cc981147 (patch)
tree67ed0fa54b1b216c2c22dffcc1193c35316bd9c6 /scripts/Makefile.thinlto
parent5656fea4d6aa4af70edb1c2d5514184ff8ff2cae (diff)
downloadlinux-f09c78bd6242599a3e6ebb6c88b1d857cc981147.tar.gz
linux-f09c78bd6242599a3e6ebb6c88b1d857cc981147.zip
ntfs: persist immutable in the $LINUXFLAGS EA
Add a fileattr setter for immutable and store its state in bit 0 of a little-endian u32 in the private $LINUXFLAGS EA. Reuse the standard NTFS EA attributes and restore the flag when loading an inode, so eviction and unmount do not discard the setting. Use $LINUXFLAGS to avoid the WSL-owned $LX namespace. Preserve unknown bits and delete the entry only when the entire value is zero. Reject malformed values with EUCLEAN. Reject direct xattr writes and removal to avoid bypassing fileattr permissions or stale cached state. Update the cached flags only after the EA update succeeds. Reject clearing immutable on system metadata files and files protected by sys_immutable, following inode-load policy. Do not persist a bit derived solely from this policy. Preserve append state without allowing it to be changed at this stage. Compression, encryption and mount-wide case folding remain read-only. Document the format and its Linux-only enforcement. Signed-off-by: Baolin Liu <liubaolin@kylinos.cn> Reviewed-by: Hyunchul Lee <hyc.lee@gmail.com> Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions