Linux doesn't perform enough canonicalization on certain filesystems #1094

Closed
opened 2026-01-04 11:26:04 +00:00 by raito · 2 comments
Owner

Certain filesystem possess a special API akin to #1090 APIs.

https://man7.org/linux/man-pages/man2/ioctl_xfs_fsgetxattr.2.html

  This API is implemented by the ext4, xfs, btrfs, and f2fs
  filesystems on the Linux kernel.  Not all fields may be understood
  by filesystems other than xfs.

We should try to look if a filesystem supports them on Linux and scrub everything as much as possible as well. It's going to be hard to test without NixOS tests…

Certain filesystem possess a special API akin to #1090 APIs. https://man7.org/linux/man-pages/man2/ioctl_xfs_fsgetxattr.2.html > This API is implemented by the ext4, xfs, btrfs, and f2fs > filesystems on the Linux kernel. Not all fields may be understood > by filesystems other than xfs. We should try to look if a filesystem supports them on Linux and scrub everything as much as possible as well. It's going to be hard to test without NixOS tests…
Owner

none of these are interesting for us. the marginally interesting ones requires very special capabilities to set, and even then they only prevent file deletion or renaming. everything else just sets performance characteristics, which is not something we need to be worried about a whole lot?

none of these are interesting for us. the marginally interesting ones requires very special capabilities to set, and even then they only prevent file deletion or renaming. everything else just sets performance characteristics, which is not something we need to be worried about a whole lot?
Author
Owner

Works for me, just wanted a double check.

Works for me, just wanted a double check.
raito closed this issue 2026-01-04 16:40:26 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
lix-project/lix#1094
No description provided.