Commit Graph

12 Commits

Author SHA1 Message Date
christos 6e36ff926d 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.
2009-10-27 16:27:47 +00:00
christos 11a630f123 easier done with a goto instead of closing in each error. 2009-05-02 16:19:36 +00:00
elad 0b783346d2 PR/41332: Jason V. Miller: paxctl(8) leaks file descriptors
Always close(fd) before returning.

Thanks for the report!
2009-05-02 06:01:30 +00:00
lukem 29f2e1ce01 fix -Wsign-compare issues 2009-01-18 10:01:34 +00:00
christos 4c20e2ab03 try to handle different byte orders. 2008-08-11 10:58:02 +00:00
christos 4e65b015fb Allow turning ASLR on and off. 2007-12-26 22:16:31 +00:00
elad 3278973321 Fix typos:
- Mprotect -> MPROTECT
  - Servguard -> Segvguard

While here, pad values.
2007-12-24 20:05:24 +00:00
perry 8b0f9554ff convert __attribute__s to applicable cdefs.h macros 2007-12-15 19:44:37 +00:00
christos f84222f6f6 fix usage to say we can take multiple files. 2007-12-11 01:40:27 +00:00
christos f8082d9a50 We should be able to operate on more than one file, like other unix tools. 2007-12-08 19:56:54 +00:00
christos 2ffe4b875f 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...
2007-06-24 20:35:36 +00:00
elad a8c0f0c72e 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).
2007-01-30 19:40:07 +00:00