[File] "file" as a type filter
Gordon Messmer
gordon.messmer at gmail.com
Sat Jun 20 13:37:55 EDT 2026
I've recently discovered executable binaries in source archives while
building Fedora packages, and I'd like to extend the standard tooling to
detect and remove content that is not allowed by policy.
Naturally, "file" seems like the tool best suited to identifying file
content so that we can strip out what isn't wanted. But file's output types
are both hard to parse reliably.
What I would really like is a tool that accepted file types (or MIME types)
as command line arguments, and which accepted a list of files on stdin and
provided a list of files that match one of the types on stdout. Something
that could be used as a filter.
Would you accept a patch that added functionality like that to the "file"
command? Or would you accept one that added a new "file-filter" binary?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.astron.com/pipermail/file/attachments/20260620/13ddf88e/attachment.htm>
More information about the File
mailing list