ELF - allow execution of shared objects
authorAlex Hornung <ahornung@gmail.com>
Tue, 1 Sep 2009 09:42:56 +0000 (10:42 +0100)
committerAlex Hornung <ahornung@gmail.com>
Tue, 1 Sep 2009 12:06:26 +0000 (13:06 +0100)
commit08d72226f4cf31025a2510bca580fc07f1434412
treebc70ee72734a73fd1154fc5994cb1a29c61c4a39
parent95db3aac46e4848403464168e363dfc738549735
ELF - allow execution of shared objects

* Allow execution of shared ELF objects by default.

* Add a sysctl kern.elf_exec_dyn, default to 1, to control permission
  to execute shared elf objects.

* Incidentally, this also makes PIE work, at least for basic testcases
  as ncal, whereis, ...

Obtained-from: FreeBSD
Reported-By: Hasso Tepper
sys/kern/imgact_elf.c