History log of /openbsd/usr.bin/file/Makefile (Results 1 – 18 of 18)
Revision Date Author Comments
# 256e2cc4 15-Jan-2018 brynet <brynet@openbsd.org>

Revert my changes in r1.60 back to nicm@'s latest for now.

Fixes "file *|grep" breakage reported by espie@

ok nicm, deraadt


# 09f2f01e 28-Jun-2017 brynet <brynet@openbsd.org>

Simplify file(1) by removing the no longer necessary parent/child separation
and just drop privileges in the main process.

Also allows for a tighter "stdio" pledge.

passing regress tests still pass

Simplify file(1) by removing the no longer necessary parent/child separation
and just drop privileges in the main process.

Also allows for a tighter "stdio" pledge.

passing regress tests still pass

ok nicm@ with helpful feedback

show more ...


# 80736d22 04-Oct-2015 nicm <nicm@openbsd.org>

Add tame(2) to file(1) and drop the old systrace(4) sandbox. tame(2) is
only applied to the child process, which requires the parent to not pass
directory file descriptors (tame("cmsg") does not allo

Add tame(2) to file(1) and drop the old systrace(4) sandbox. tame(2) is
only applied to the child process, which requires the parent to not pass
directory file descriptors (tame("cmsg") does not allow it). Because
file(1) is already privsep, the permissions in the child can be quickly
restricted: first to "stdio cmsg getpw proc" then after the privdrop to
"stdio cmsg".

show more ...


# 03ed85e1 27-Apr-2015 nicm <nicm@openbsd.org>

Use a systrace(4) sandbox with a short whitelist of allowed syscalls for
the file(1) child process. Based on similar code in ssh sandbox-systrace.c.
Idea and help from deraadt@.


# 8d974f08 27-Apr-2015 nicm <nicm@openbsd.org>

Add simple privilege separation to file(1). Two processes, file
descriptors and a few other bits are opened in parent and passed to
child using imsg. Child currently drops to "nobody" but this will c

Add simple privilege separation to file(1). Two processes, file
descriptors and a few other bits are opened in parent and passed to
child using imsg. Child currently drops to "nobody" but this will change.

show more ...


# ff772f70 24-Apr-2015 nicm <nicm@openbsd.org>

New implementation of the file(1) utility. This is a simplified,
modernised version with a nearly complete magic(5) parser but omits some
of the complex builtin tests (notably ELF) and has a reduced

New implementation of the file(1) utility. This is a simplified,
modernised version with a nearly complete magic(5) parser but omits some
of the complex builtin tests (notably ELF) and has a reduced set of
options.

ok deraadt

show more ...


# dfd5109f 14-Apr-2009 chl <chl@openbsd.org>

force magic file to include all magdir files in alphabetical order,
preparing the way for upcoming update to file 4.24

almost entirely written by espie@

"Go ahead, commit it." espie@


# 57faf822 09-Nov-2008 espie <espie@openbsd.org>

protect against .orig files resulting from a patch.


# 0d65fb4d 19-May-2004 tedu <tedu@openbsd.org>

big update to file 4.09. ok ian@


# f08e2d10 03-Mar-2003 ian <ian@openbsd.org>

Bring in readelf.c from Christos' version 3.41 to head off a local
stack attack noted by iDefense, and for more complete 64-bit ELF support.
Add hand-made config.h to avoid running configure but stil

Bring in readelf.c from Christos' version 3.41 to head off a local
stack attack noted by iDefense, and for more complete 64-bit ELF support.
Add hand-made config.h to avoid running configure but still be able
to use Christos' code. In print.c add error(...)-->err(1,...) wrapper.
Tested on i386, sparc64, macppc.

show more ...


# 18ac11ce 02-Sep-1997 kstailey <kstailey@openbsd.org>

include files that start with numbers


# 9c44650e 27-Apr-1997 millert <millert@openbsd.org>

COPY -> INSTALL_COPY and STRIP -> INSTALL_STRIP
This fixes namespace problems where STRIP is sometimes used as
the name of the strip(1) to use and other times used as
the flag to send install(1) when

COPY -> INSTALL_COPY and STRIP -> INSTALL_STRIP
This fixes namespace problems where STRIP is sometimes used as
the name of the strip(1) to use and other times used as
the flag to send install(1) when stripping (or not).
COPY doesn't have this problem (yet) but was poorly named.

show more ...


# 368e9f69 09-Feb-1997 millert <millert@openbsd.org>

Updates file(1) to version 3.22 by way to NetBSD.


# b26ff1d1 08-Dec-1996 downsj <downsj@openbsd.org>

install -> ${INSTALL}, -c -> ${COPY}


# b0c31e56 27-Jul-1996 deraadt <deraadt@openbsd.org>

MAGICOWN = root


# 1258a77d 26-Jun-1996 deraadt <deraadt@openbsd.org>

rcsid


# 5cc96124 02-Jan-1996 deraadt <deraadt@openbsd.org>

netbsd -> openbsd


# df930be7 18-Oct-1995 deraadt <deraadt@openbsd.org>

initial import of NetBSD tree