Skip to content

Comment on Using extended attributes to tag files

Comments

So you're telling me my size 0 file may unknowingly be a large key/value db? Neat.

The system call to read these attributes is getxattr(), for anyone curious.

Ha, it suddenly sounds like trouble.

Eg: one could piggy-back an entirely new file onto an existing file (it might have to be text encoded?).

It looks like the kernel might impose a limit of 64KiB on a file's metadata, but that's still quite a lot of room for data smuggling...

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.