#
1.18 |
|
15-Jan-2018 |
brynet |
Revert my changes in r1.60 back to nicm@'s latest for now.
Fixes "file *|grep" breakage reported by espie@
ok nicm, deraadt
|
Revision tags: OPENBSD_6_2_BASE
|
#
1.17 |
|
28-Jun-2017 |
brynet |
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
|
Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE
|
#
1.16 |
|
04-Oct-2015 |
nicm |
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".
|
Revision tags: OPENBSD_5_8_BASE
|
#
1.15 |
|
27-Apr-2015 |
nicm |
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@.
|
#
1.14 |
|
27-Apr-2015 |
nicm |
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.
|
#
1.13 |
|
24-Apr-2015 |
nicm |
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
|
Revision tags: OPENBSD_4_6_BASE OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE OPENBSD_5_6_BASE OPENBSD_5_7_BASE
|
#
1.12 |
|
14-Apr-2009 |
chl |
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@
|
Revision tags: OPENBSD_4_5_BASE
|
#
1.11 |
|
09-Nov-2008 |
espie |
protect against .orig files resulting from a patch.
|
Revision tags: OPENBSD_3_6_BASE OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE
|
#
1.10 |
|
19-May-2004 |
tedu |
big update to file 4.09. ok ian@
|
Revision tags: OPENBSD_3_3_BASE OPENBSD_3_4_BASE OPENBSD_3_5_BASE
|
#
1.9 |
|
03-Mar-2003 |
ian |
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.
|
Revision tags: OPENBSD_2_2_BASE OPENBSD_2_3_BASE OPENBSD_2_4_BASE OPENBSD_2_5_BASE OPENBSD_2_6_BASE OPENBSD_2_7_BASE OPENBSD_2_8_BASE OPENBSD_2_9_BASE OPENBSD_3_0_BASE OPENBSD_3_1_BASE OPENBSD_3_2_BASE
|
#
1.8 |
|
02-Sep-1997 |
kstailey |
branches: 1.8.22; include files that start with numbers
|
Revision tags: OPENBSD_2_1_BASE
|
#
1.7 |
|
27-Apr-1997 |
millert |
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.
|
#
1.6 |
|
09-Feb-1997 |
millert |
Updates file(1) to version 3.22 by way to NetBSD.
|
#
1.5 |
|
08-Dec-1996 |
downsj |
install -> ${INSTALL}, -c -> ${COPY}
|
Revision tags: OPENBSD_2_0_BASE
|
#
1.4 |
|
27-Jul-1996 |
deraadt |
MAGICOWN = root
|
#
1.3 |
|
26-Jun-1996 |
deraadt |
rcsid
|
#
1.2 |
|
02-Jan-1996 |
deraadt |
netbsd -> openbsd
|
#
1.1 |
|
18-Oct-1995 |
deraadt |
branches: 1.1.1; Initial revision
|