SkillAgentSearch skills...

File

A portable version of OpenBSD's privsep/sandboxed file(1) utility

Install / Use

/learn @brynet/File

README

This is an UNOFFICIAL version of Nicholas Marriott's new privsep file(1) implementation for OpenBSD (..introduced in 5.8); portability changes were written by me, brynet@. General bug fixes should be reported to the OpenBSD mailing lists and tested against the latest CVS version.

  • Linux seccomp-bpf sandbox support derived from portable OpenSSH.

Quick/dirty build & install instructions for Linux (glibc): $ sudo useradd -r -s /usr/sbin/nologin _file $ ./configure && make && sudo make install $ sudo install -b -c -o root -g root -m 444 ./magic /etc/magic

This project makes no attempt at coexisting with other file(1) implementations. Take note before installing system wide.

Any bugs introduced in this porting effort are mine.

Related Skills

View on GitHub
GitHub Stars30
CategoryDevelopment
Updated1mo ago
Forks5

Languages

C

Security Score

95/100

Audited on Feb 17, 2026

No findings