freebsd-dev/libexec
Bryan Drewery 5608fd23c2 Revert r267233 for now. PIE support needs to be reworked.
1. 50+% of NO_PIE use is fixed by adding -fPIC to INTERNALLIB and other
   build-only utility libraries.
2. Another 40% is fixed by generating _pic.a variants of various libraries.
3. Some of the NO_PIE use is a bit absurd as it is disabling PIE (and ASLR)
   where it never would work anyhow, such as csu or loader. This suggests
   there may be better ways of adding support to the tree. Many of these
   cases can be fixed such that -fPIE will work but there is really no
   reason to have it in those cases.
4. Some of the uses are working around hacks done to some Makefiles that are
   really building libraries but have been using bsd.prog.mk because the code
   is cleaner. Had they been using bsd.lib.mk then NO_PIE would not have
   been needed.

We likely do want to enable PIE by default (opt-out) for non-tree consumers
(such as ports). For in-tree though we probably want to only enable PIE
(opt-in) for common attack targets such as remote service daemons and setuid
utilities. This is also a great performance compromise since ASLR is expected
to reduce performance. As such it does not make sense to enable it in all
utilities such as ls(1) that have little benefit to having it enabled.

Reported by:	kib
2014-08-19 15:04:32 +00:00
..
atf Rework privatelib/internallib 2014-08-06 22:17:26 +00:00
atrun Fix releasing the lock in the parent atrun process after the queue 2014-04-17 16:00:26 +00:00
bootpd use .Mt to mark up email addresses consistently (part2) 2014-06-20 09:57:27 +00:00
casper NO_MAN= has been deprecated in favor of MAN= for some time, go ahead 2014-04-13 05:21:56 +00:00
comsat Remove the 3rd clause ("advertising clause") of the BSD license as 2014-02-17 22:27:32 +00:00
dma Lower warning level when built with gcc 2014-02-21 14:14:48 +00:00
dma-mbox-create NO_MAN= has been deprecated in favor of MAN= for some time, go ahead 2014-04-13 05:21:56 +00:00
fingerd Remove the 3rd clause ("advertising clause") of the BSD license as 2014-02-17 22:27:32 +00:00
ftpd Use src.opts.mk in preference to bsd.own.mk except where we need stuff 2014-05-06 04:22:01 +00:00
getty Remove LOG_ODELAY because it does nothing. 2014-08-17 19:06:26 +00:00
mail.local Revert r267233 for now. PIE support needs to be reworked. 2014-08-19 15:04:32 +00:00
mknetid use .Mt to mark up email addresses consistently (part2) 2014-06-20 09:57:27 +00:00
pppoed use .Mt to mark up email addresses consistently (part2) 2014-06-20 09:57:27 +00:00
rbootd Remove the 3rd clause ("advertising clause") of the BSD license as 2014-02-17 22:27:32 +00:00
revnetgroup use .Mt to mark up email addresses consistently (part2) 2014-06-20 09:57:27 +00:00
rlogind Use src.opts.mk in preference to bsd.own.mk except where we need stuff 2014-05-06 04:22:01 +00:00
rpc.rquotad The NFS quota-reporting RPC uses 32-bit sized fields. We approximate 2010-04-25 00:05:51 +00:00
rpc.rstatd Remove the 3rd clause ("advertising clause") of the BSD license as 2014-02-17 22:27:32 +00:00
rpc.rusersd Remove the 3rd clause ("advertising clause") of the BSD license as 2014-02-17 22:27:32 +00:00
rpc.rwalld Remove the 3rd clause ("advertising clause") of the BSD license as 2014-02-17 22:27:32 +00:00
rpc.sprayd Make WARNS=6 the default for libexec/. 2010-01-02 09:50:19 +00:00
rshd Remove LOG_ODELAY because it does nothing. 2014-08-17 19:06:26 +00:00
rtld-aout More -Wmissing-variable-declarations fixes. 2012-10-19 14:49:42 +00:00
rtld-elf Revert r267233 for now. PIE support needs to be reworked. 2014-08-19 15:04:32 +00:00
save-entropy Don't save entropy inside jails. 2014-07-22 06:40:27 +00:00
smrsh Revert r267233 for now. PIE support needs to be reworked. 2014-08-19 15:04:32 +00:00
talkd Remove the 3rd clause ("advertising clause") of the BSD license as 2014-02-17 22:27:32 +00:00
tcpd Use src.opts.mk in preference to bsd.own.mk except where we need stuff 2014-05-06 04:22:01 +00:00
telnetd Revert r267233 for now. PIE support needs to be reworked. 2014-08-19 15:04:32 +00:00
tests Build and install the atf tests. 2013-11-08 14:33:41 +00:00
tftp-proxy Make WARNS=6 the default for libexec/. 2010-01-02 09:50:19 +00:00
tftpd Remove the 3rd clause ("advertising clause") of the BSD license as 2014-02-17 22:27:32 +00:00
ulog-helper NO_MAN= has been deprecated in favor of MAN= for some time, go ahead 2014-04-13 05:21:56 +00:00
ypxfr use .Mt to mark up email addresses consistently (part2) 2014-06-20 09:57:27 +00:00
Makefile Use src.opts.mk in preference to bsd.own.mk except where we need stuff 2014-05-06 04:22:01 +00:00
Makefile.inc Make WARNS=6 the default for libexec/. 2010-01-02 09:50:19 +00:00