diff options
| author | Baolin Liu <liubaolin@kylinos.cn> | 2026-09-23 14:02:44 +0800 |
|---|---|---|
| committer | Namjae Jeon <linkinjeon@kernel.org> | 2026-10-12 20:52:45 +0900 |
| commit | 057b2ccd118b1145b5216586100c2aa0f73f8d53 (patch) | |
| tree | e4923efb6b4c3e73212d42857bc058fbfe89d898 /tools/lib/python | |
| parent | 0cdae4fd58133e8fd7a0034d505340fe691fb803 (diff) | |
| download | linux-next-057b2ccd118b1145b5216586100c2aa0f73f8d53.tar.gz linux-next-057b2ccd118b1145b5216586100c2aa0f73f8d53.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 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions
