brynet / file Goto Github PK
View Code? Open in Web Editor NEWA portable version of OpenBSD's privsep/sandboxed file(1) utility
Home Page: https://cvsweb.openbsd.org/cgi-bin/cvsweb/src/usr.bin/file/?hideattic=1
License: ISC License
A portable version of OpenBSD's privsep/sandboxed file(1) utility
Home Page: https://cvsweb.openbsd.org/cgi-bin/cvsweb/src/usr.bin/file/?hideattic=1
License: ISC License
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.
Hi.
file.c:388:7: warning: implicit declaration of function 'setresgid' is invalid in C99
file.c:390:7: warning: implicit declaration of function 'setresuid' is invalid in C99
magic-load.c:694:35: warning: passing 'int64_t *' (aka 'long long *') to parameter of type 'uint64_t *'
(aka 'unsigned long long *') converts between pointers to integer types with different sign
Undefined symbols for architecture x86_64:
"_setresgid", referenced from:
_child in file.o
"_setresuid", referenced from:
_child in file.o
Please add setresgid and setresuid to compat folder and configure script.
Thanks.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.