Home | History | Annotate | Download | only in paxctl
History log of /src/usr.sbin/paxctl/paxctl.c
RevisionDateAuthorComments
 1.13  23-Jun-2023  rin paxctl(8): Introduce -0 option to clear all PaX flag bits in ELF note.
Part of PR toolchain/52675
 1.12  27-Oct-2009  christos branches: 1.12.56;
PR/42239: M. Levinson: paxctl(8) fails since binutils 2.19.1 upgrade
binutils-2.19.1 tries to create one note section for all adjacent loadable
note sections, instead of the old behavior where each note is in its own
section. The fix looks at the section headers instead of the program headers
for the note.
 1.11  02-May-2009  christos easier done with a goto instead of closing in each error.
 1.10  02-May-2009  elad PR/41332: Jason V. Miller: paxctl(8) leaks file descriptors

Always close(fd) before returning.

Thanks for the report!
 1.9  18-Jan-2009  lukem branches: 1.9.2;
fix -Wsign-compare issues
 1.8  11-Aug-2008  christos try to handle different byte orders.
 1.7  26-Dec-2007  christos branches: 1.7.6;
Allow turning ASLR on and off.
 1.6  24-Dec-2007  elad Fix typos:

- Mprotect -> MPROTECT
- Servguard -> Segvguard

While here, pad values.
 1.5  15-Dec-2007  perry convert __attribute__s to applicable cdefs.h macros
 1.4  11-Dec-2007  christos fix usage to say we can take multiple files.
 1.3  08-Dec-2007  christos We should be able to operate on more than one file, like other unix tools.
 1.2  24-Jun-2007  christos branches: 1.2.4;
Use an elf note to handle pax arguments. This is a temporary solution to
avoid wasting OS flag bits. In the future we'll probably use fileassoc to
achieve this (once there is a way to make fileassoc persistent) or in the
shorter term libelf, so that we can add and remove the note on demand instead
of burning bits on each binary. Of course since this is a tool, this means
that we'll need to think about how to handle libelf...
 1.1  30-Jan-2007  elad branches: 1.1.2;
Move paxctl from usr.bin/paxctl to usr.sbin/paxctl, and make it an admin
tool (man-page moved from section 1 to section 8).
 1.1.2.3  09-Jul-2007  liamjfoy Pull up following revision(s) (requested by christos in ticket #755):
sys/sys/pax.h: revision 1.9
sys/sys/exec_elf.h: revision 1.90
usr.sbin/paxctl/paxctl.c: revision 1.2
sys/kern/kern_pax.c: revision 1.16
sys/sys/exec.h: revision 1.117
sys/kern/exec_elf32.c: revision 1.124
libexec/ld.elf_so/sysident.h: revision 1.14
Use an elf note to handle pax arguments. This is a temporary solution to
avoid wasting OS flag bits. In the future we'll probably use fileassoc to
achieve this (once there is a way to make fileassoc persistent) or in the
shorter term libelf, so that we can add and remove the note on demand instead
of burning bits on each binary. Of course since this is a tool, this means
that we'll need to think about how to handle libelf...
 1.1.2.2  06-Feb-2007  tron branches: 1.1.2.2.2;
Pull up following revision(s) (requested by elad in ticket #396):
distrib/sets/lists/base/mi: revision 1.685
usr.sbin/paxctl/Makefile: revision 1.1
usr.bin/Makefile: revision 1.156
usr.sbin/paxctl/paxctl.c: revision 1.1
usr.bin/paxctl/paxctl.1: file removal
usr.sbin/paxctl/paxctl.8: revision 1.1
distrib/sets/lists/comp/mi: revision 1.995
usr.bin/paxctl/Makefile: file removal
distrib/sets/lists/man/mi: revision 1.971
usr.bin/paxctl/paxctl.c: file removal
usr.sbin/Makefile: revision 1.225
Move paxctl from usr.bin/paxctl to usr.sbin/paxctl, and make it an admin
tool (man-page moved from section 1 to section 8).
 1.1.2.1  30-Jan-2007  tron branches: 1.1.2.1.2;
file paxctl.c was added on branch netbsd-4 on 2007-02-06 22:20:42 +0000
 1.1.2.2.2.1  03-Sep-2007  wrstuden Sync w/ NetBSD-4-RC_1
 1.1.2.1.2.1 locked by: joerg;  30-Jan-2007  wrstuden file paxctl.c was added on branch netbsd-4 on 2007-09-03 07:05:42 +0000
 1.2.4.1  09-Jan-2008  matt sync with HEAD
 1.7.6.1  18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.9.2.1  13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.12.56.1  27-Jun-2023  martin Pull up following revision(s) (requested by rin in ticket #215):

usr.sbin/paxctl/paxctl.8: revision 1.17
usr.sbin/paxctl/paxctl.8: revision 1.18
usr.bin/crunch/crunchgen/crunchgen.c: revision 1.95
usr.sbin/paxctl/paxctl.c: revision 1.13

paxctl(8): Introduce -0 option to clear all PaX flag bits in ELF note.
Part of PR toolchain/52675

crunchgen(1): Clear PaX flags instead of removing its ELF note section.
The latter results in zero-filled hole in ELF note segment for EARM,
where PaX section is not located the bottom of that segment (see
src/lib/csu/sysident.S). Fortunately, this hole does not cause real
harms for our in-kernel ELF note parser, except for noisy warnings on
DIAGNOSTIC kernels.

Bump CRUNCH_VERSION.

PR toolchain/52675

Use Fl for options.

RSS XML Feed