2 ms·
While capability systems are totally awesome, for this sort of application, you don't really need it. Open the target file read-only, open the magic database re
by geofft 12y ago
While capability systems are totally awesome, for this sort of application, you don't really need it. Open the target file read-only, open the magic database read-only, keep stdout open, and then even something as restrictive as Linux's seccomp mode 1 sandbox (read(2), write(2), exit(2), nothing else) should be enough to let you print out an answer.