Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src

Module Name:    src
Committed By:   tls
Date:           Mon May 28 12:06:43 UTC 2007

Modified Files:
        src/bin/rcmd: Makefile
        src/distrib/i386/ramdisks/common: list.ramdisk
        src/gnu/usr.bin/gkermit: Makefile
        src/lib: Makefile
        src/lib/libasn1: Makefile
        src/lib/libbluetooth: Makefile
        src/lib/libbz2: Makefile
        src/lib/libcrypto: Makefile
        src/lib/libdes: Makefile
        src/lib/libedit: Makefile
        src/lib/libgssapi: Makefile
        src/lib/libhdb: Makefile
        src/lib/libipsec: Makefile
        src/lib/libiscsi: Makefile
        src/lib/libkadm5clnt: Makefile
        src/lib/libkadm5srv: Makefile
        src/lib/libkafs: Makefile
        src/lib/libkrb5: Makefile
        src/lib/libkvm: Makefile
        src/lib/libmagic: Makefile
        src/lib/libpcap: Makefile
        src/lib/libpuffs: Makefile
        src/lib/libradius: Makefile
        src/lib/librefuse: Makefile
        src/lib/librmt: Makefile
        src/lib/libroken: Makefile
        src/lib/librpcsvc: Makefile
        src/lib/libsdp: Makefile
        src/lib/libskey: Makefile
        src/lib/libsl: Makefile
        src/lib/libss: Makefile
        src/lib/libssh: Makefile
        src/lib/libssl: Makefile
        src/lib/libtelnet: Makefile
        src/lib/libwrap: Makefile
        src/lib/libz: Makefile
        src/libexec: Makefile
        src/rescue: list.crypto
        src/sbin/ccdconfig: Makefile
        src/sbin/mount_nfs: Makefile
        src/sbin/ping: Makefile
        src/sbin/ping6: Makefile
        src/sbin/pppoectl: Makefile
        src/sbin/routed: Makefile
        src/sbin/shutdown: Makefile
        src/usr.bin/at: Makefile
        src/usr.bin/bdes: Makefile
        src/usr.bin/bthset: Makefile
        src/usr.bin/bzip2: Makefile
        src/usr.bin/bzip2recover: Makefile
        src/usr.bin/chpass: Makefile
        src/usr.bin/compress: Makefile
        src/usr.bin/crontab: Makefile
        src/usr.bin/db: Makefile
        src/usr.bin/file: Makefile
        src/usr.bin/finger: Makefile
        src/usr.bin/from: Makefile
        src/usr.bin/fstat: Makefile
        src/usr.bin/ftp: Makefile
        src/usr.bin/getent: Makefile
        src/usr.bin/gzip: Makefile
        src/usr.bin/hesinfo: Makefile
        src/usr.bin/kdestroy: Makefile
        src/usr.bin/kdump: Makefile
        src/usr.bin/kgetcred: Makefile
        src/usr.bin/kinit: Makefile
        src/usr.bin/klist: Makefile
        src/usr.bin/lock: Makefile
        src/usr.bin/logger: Makefile
        src/usr.bin/login: Makefile
        src/usr.bin/mail: Makefile
        src/usr.bin/modstat: Makefile
        src/usr.bin/netgroup: Makefile
        src/usr.bin/netstat: Makefile
        src/usr.bin/openssl: Makefile
        src/usr.bin/passwd: Makefile
        src/usr.bin/pmap: Makefile
        src/usr.bin/rdist: Makefile
        src/usr.bin/rfcomm_sppd: Makefile
        src/usr.bin/rlogin: Makefile
        src/usr.bin/rpcinfo: Makefile
        src/usr.bin/rsh: Makefile
        src/usr.bin/rup: Makefile
        src/usr.bin/ruptime: Makefile
        src/usr.bin/rusers: Makefile
        src/usr.bin/rwall: Makefile
        src/usr.bin/rwho: Makefile
        src/usr.bin/sdpquery: Makefile
        src/usr.bin/showmount: Makefile
        src/usr.bin/skeyinfo: Makefile
        src/usr.bin/skeyinit: Makefile
        src/usr.bin/su: Makefile
        src/usr.bin/systat: Makefile
        src/usr.bin/talk: Makefile
        src/usr.bin/telnet: Makefile
        src/usr.bin/tftp: Makefile
        src/usr.bin/vacation: Makefile
        src/usr.bin/vmstat: Makefile
        src/usr.bin/wall: Makefile
        src/usr.bin/whois: Makefile
        src/usr.bin/write: Makefile
        src/usr.bin/ypcat: Makefile
        src/usr.bin/ypmatch: Makefile
        src/usr.bin/ypwhich: Makefile
        src/usr.sbin/btconfig: Makefile
        src/usr.sbin/bthcid: Makefile
        src/usr.sbin/faithd: Makefile
        src/usr.sbin/hprop: Makefile
        src/usr.sbin/inetd: Makefile
        src/usr.sbin/iscsi/target: Makefile
        src/usr.sbin/kadmin: Makefile
        src/usr.sbin/kdc: Makefile
        src/usr.sbin/ktutil: Makefile
        src/usr.sbin/map-mbone: Makefile
        src/usr.sbin/mld6query: Makefile
        src/usr.sbin/mountd: Makefile
        src/usr.sbin/mrinfo: Makefile
        src/usr.sbin/mrouted: Makefile
        src/usr.sbin/mscdlabel: Makefile
        src/usr.sbin/mtrace: Makefile
        src/usr.sbin/ndbootd: Makefile
        src/usr.sbin/ndp: Makefile
        src/usr.sbin/nfsd: Makefile
        src/usr.sbin/pstat: Makefile
        src/usr.sbin/racoon: Makefile
        src/usr.sbin/rarpd: Makefile
        src/usr.sbin/rbootd: Makefile
        src/usr.sbin/rip6query: Makefile
        src/usr.sbin/route6d: Makefile
        src/usr.sbin/rpc.bootparamd: Makefile
        src/usr.sbin/rpc.lockd: Makefile
        src/usr.sbin/rpcbind: Makefile
        src/usr.sbin/rtadvd: Makefile
        src/usr.sbin/rtsold: Makefile
        src/usr.sbin/rwhod: Makefile
        src/usr.sbin/sdpd: Makefile
        src/usr.sbin/sntp: Makefile
        src/usr.sbin/syslogd: Makefile
        src/usr.sbin/tcpdump: Makefile
        src/usr.sbin/traceroute: Makefile
        src/usr.sbin/traceroute6: Makefile
        src/usr.sbin/trpt: Makefile
        src/usr.sbin/ypbind: Makefile
        src/usr.sbin/yppoll: Makefile
        src/usr.sbin/ypset: Makefile

Log Message:
Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the
FORTIFY_SOURCE feature of libssp, thus checking the size of arguments to
various string and memory copy and set functions (as well as a few system
calls and other miscellany) where known at function entry.  RedHat has
evidently built all "core system packages" with this option for some time.

This option should be used at the top of Makefiles (or where
this is used for subdirectories) but after any setting of LIB.

This is only useful for userland code, and cannot be used in libc or in
any code which includes the libc internals, because it overrides certain
libc functions with macros.  Some effort has been made to make USE_FORT=yes
work correctly for a full-system build by having the logic
disable the feature where it should not be used (libc, libssp iteself,
the kernel) but no attempt has been made to build the entire system with
USE_FORT and doing so will doubtless expose numerous bugs and misfeatures.

Adjust the system build so that all programs and libraries that are setuid,
directly handle network data (including serial comm data), perform
authentication, or appear likely to have (or have a history of having)
data-driven bugs (e.g. file(1)) are built with USE_FORT=yes by default,
with the exception of libc, which cannot use USE_FORT and thus uses
only USE_SSP by default.  Tested on i386 with no ill results; USE_FORT=no
per-directory or in a system build will disable if desired.

To generate a diff of this commit:
cvs rdiff -r1.10 -r1.11 src/bin/rcmd/Makefile
cvs rdiff -r1.3 -r1.4 src/distrib/i386/ramdisks/common/list.ramdisk
cvs rdiff -r1.11 -r1.12 src/games/
cvs rdiff -r1.1 -r1.2 src/gnu/usr.bin/gkermit/Makefile
cvs rdiff -r1.1 -r1.2 src/gnu/usr.bin/xcvs/
cvs rdiff -r1.15 -r1.16 src/gnu/usr.sbin/postfix/
cvs rdiff -r1.114 -r1.115 src/lib/Makefile
cvs rdiff -r1.27 -r1.28 src/lib/libasn1/Makefile
cvs rdiff -r1.2 -r1.3 src/lib/libbluetooth/Makefile
cvs rdiff -r1.10 -r1.11 src/lib/libbz2/Makefile
cvs rdiff -r1.1 -r1.2 src/lib/libc/
cvs rdiff -r1.46 -r1.47 src/lib/libcrypto/Makefile
cvs rdiff -r1.15 -r1.16 src/lib/libdes/Makefile
cvs rdiff -r1.35 -r1.36 src/lib/libedit/Makefile
cvs rdiff -r1.16 -r1.17 src/lib/libgssapi/Makefile
cvs rdiff -r1.20 -r1.21 src/lib/libhdb/Makefile
cvs rdiff -r1.16 -r1.17 src/lib/libipsec/Makefile
cvs rdiff -r1.3 -r1.4 src/lib/libiscsi/Makefile
cvs rdiff -r1.22 -r1.23 src/lib/libkadm5clnt/Makefile
cvs rdiff -r1.25 -r1.26 src/lib/libkadm5srv/Makefile
cvs rdiff -r1.10 -r1.11 src/lib/libkafs/Makefile
cvs rdiff -r1.37 -r1.38 src/lib/libkrb5/Makefile
cvs rdiff -r1.43 -r1.44 src/lib/libkvm/Makefile
cvs rdiff -r1.5 -r1.6 src/lib/libmagic/Makefile
cvs rdiff -r1.5 -r1.6 src/lib/libpam/
cvs rdiff -r1.29 -r1.30 src/lib/libpcap/Makefile
cvs rdiff -r1.18 -r1.19 src/lib/libpuffs/Makefile
cvs rdiff -r1.9 -r1.10 src/lib/libradius/Makefile
cvs rdiff -r1.4 -r1.5 src/lib/librefuse/Makefile
cvs rdiff -r1.8 -r1.9 src/lib/librmt/Makefile
cvs rdiff -r1.14 -r1.15 src/lib/libroken/Makefile
cvs rdiff -r1.38 -r1.39 src/lib/librpcsvc/Makefile
cvs rdiff -r1.1 -r1.2 src/lib/libsdp/Makefile
cvs rdiff -r1.5 -r1.6 src/lib/libskey/Makefile
cvs rdiff -r1.7 -r1.8 src/lib/libsl/Makefile
cvs rdiff -r1.6 -r1.7 src/lib/libss/Makefile
cvs rdiff -r1.9 -r1.10 src/lib/libssh/Makefile
cvs rdiff -r1.13 -r1.14 src/lib/libssl/Makefile
cvs rdiff -r1.27 -r1.28 src/lib/libtelnet/Makefile
cvs rdiff -r1.9 -r1.10 src/lib/libwrap/Makefile
cvs rdiff -r1.19 -r1.20 src/lib/libz/Makefile
cvs rdiff -r1.51 -r1.52 src/libexec/Makefile
cvs rdiff -r1.3 -r1.4 src/rescue/list.crypto
cvs rdiff -r1.7 -r1.8 src/sbin/ccdconfig/Makefile
cvs rdiff -r1.20 -r1.21 src/sbin/mount_nfs/Makefile
cvs rdiff -r1.13 -r1.14 src/sbin/ping/Makefile
cvs rdiff -r1.11 -r1.12 src/sbin/ping6/Makefile
cvs rdiff -r1.2 -r1.3 src/sbin/pppoectl/Makefile
cvs rdiff -r1.22 -r1.23 src/sbin/routed/Makefile
cvs rdiff -r1.9 -r1.10 src/sbin/shutdown/Makefile
cvs rdiff -r1.142 -r1.143 src/share/mk/
cvs rdiff -r1.100 -r1.101 src/sys/conf/
cvs rdiff -r1.13 -r1.14 src/sys/lkm/
cvs rdiff -r1.7 -r1.8 src/usr.bin/at/Makefile
cvs rdiff -r1.6 -r1.7 src/usr.bin/bdes/Makefile
cvs rdiff -r1.1 -r1.2 src/usr.bin/bthset/Makefile
cvs rdiff -r1.9 -r1.10 src/usr.bin/bzip2/Makefile
cvs rdiff -r1.7 -r1.8 src/usr.bin/bzip2recover/Makefile
cvs rdiff -r1.14 -r1.15 src/usr.bin/chpass/Makefile
cvs rdiff -r1.11 -r1.12 src/usr.bin/compress/Makefile
cvs rdiff -r1.24 -r1.25 src/usr.bin/crontab/Makefile
cvs rdiff -r1.1.1.1 -r1.2 src/usr.bin/db/Makefile
cvs rdiff -r1.53 -r1.54 src/usr.bin/file/Makefile
cvs rdiff -r1.10 -r1.11 src/usr.bin/finger/Makefile
cvs rdiff -r1.3 -r1.4 src/usr.bin/from/Makefile
cvs rdiff -r1.19 -r1.20 src/usr.bin/fstat/Makefile
cvs rdiff -r1.31 -r1.32 src/usr.bin/ftp/Makefile
cvs rdiff -r1.2 -r1.3 src/usr.bin/getent/Makefile
cvs rdiff -r1.10 -r1.11 src/usr.bin/gzip/Makefile
cvs rdiff -r1.1 -r1.2 src/usr.bin/hesinfo/Makefile
cvs rdiff -r1.17 -r1.18 src/usr.bin/kdestroy/Makefile
cvs rdiff -r1.27 -r1.28 src/usr.bin/kdump/Makefile
cvs rdiff -r1.2 -r1.3 src/usr.bin/kgetcred/Makefile
cvs rdiff -r1.20 -r1.21 src/usr.bin/kinit/Makefile
cvs rdiff -r1.16 -r1.17 src/usr.bin/klist/Makefile
cvs rdiff -r1.11 -r1.12 src/usr.bin/lock/Makefile
cvs rdiff -r1.3 -r1.4 src/usr.bin/logger/Makefile
cvs rdiff -r1.46 -r1.47 src/usr.bin/login/Makefile
cvs rdiff -r1.29 -r1.30 src/usr.bin/mail/Makefile
cvs rdiff -r1.7 -r1.8 src/usr.bin/modstat/Makefile
cvs rdiff -r1.1 -r1.2 src/usr.bin/netgroup/Makefile
cvs rdiff -r1.27 -r1.28 src/usr.bin/netstat/Makefile
cvs rdiff -r1.24 -r1.25 src/usr.bin/openssl/Makefile
cvs rdiff -r1.40 -r1.41 src/usr.bin/passwd/Makefile
cvs rdiff -r1.2 -r1.3 src/usr.bin/pmap/Makefile
cvs rdiff -r1.10 -r1.11 src/usr.bin/rdist/Makefile
cvs rdiff -r1.1 -r1.2 src/usr.bin/rfcomm_sppd/Makefile
cvs rdiff -r1.20 -r1.21 src/usr.bin/rlogin/Makefile
cvs rdiff -r1.10 -r1.11 src/usr.bin/rpcinfo/Makefile
cvs rdiff -r1.18 -r1.19 src/usr.bin/rsh/Makefile
cvs rdiff -r1.6 -r1.7 src/usr.bin/rup/Makefile
cvs rdiff -r1.3 -r1.4 src/usr.bin/ruptime/Makefile
cvs rdiff -r1.10 -r1.11 src/usr.bin/rusers/Makefile
cvs rdiff -r1.8 -r1.9 src/usr.bin/rwall/Makefile
cvs rdiff -r1.4 -r1.5 src/usr.bin/rwho/Makefile
cvs rdiff -r1.2 -r1.3 src/usr.bin/sdpquery/Makefile
cvs rdiff -r1.6 -r1.7 src/usr.bin/showmount/Makefile
cvs rdiff -r1.1 -r1.2 src/usr.bin/skeyinfo/Makefile
cvs rdiff -r1.5 -r1.6 src/usr.bin/skeyinit/Makefile
cvs rdiff -r1.14 -r1.15 src/usr.bin/ssh/
cvs rdiff -r1.45 -r1.46 src/usr.bin/su/Makefile
cvs rdiff -r1.33 -r1.34 src/usr.bin/systat/Makefile
cvs rdiff -r1.6 -r1.7 src/usr.bin/talk/Makefile
cvs rdiff -r1.40 -r1.41 src/usr.bin/telnet/Makefile
cvs rdiff -r1.8 -r1.9 src/usr.bin/tftp/Makefile
cvs rdiff -r1.10 -r1.11 src/usr.bin/tn3270/
cvs rdiff -r1.6 -r1.7 src/usr.bin/vacation/Makefile
cvs rdiff -r1.25 -r1.26 src/usr.bin/vmstat/Makefile
cvs rdiff -r1.9 -r1.10 src/usr.bin/wall/Makefile
cvs rdiff -r1.5 -r1.6 src/usr.bin/whois/Makefile
cvs rdiff -r1.7 -r1.8 src/usr.bin/write/Makefile
cvs rdiff -r1.10 -r1.11 src/usr.bin/ypcat/Makefile
cvs rdiff -r1.10 -r1.11 src/usr.bin/ypmatch/Makefile
cvs rdiff -r1.10 -r1.11 src/usr.bin/ypwhich/Makefile
cvs rdiff -r1.20 -r1.21 src/usr.sbin/amd/
cvs rdiff -r1.27 -r1.28 src/usr.sbin/bind/
cvs rdiff -r1.2 -r1.3 src/usr.sbin/bootp/
cvs rdiff -r1.1 -r1.2 src/usr.sbin/btconfig/Makefile
cvs rdiff -r1.3 -r1.4 src/usr.sbin/bthcid/Makefile
cvs rdiff -r1.20 -r1.21 src/usr.sbin/dhcp/
cvs rdiff -r1.3 -r1.4 src/usr.sbin/faithd/Makefile
cvs rdiff -r1.13 -r1.14 src/usr.sbin/hprop/Makefile
cvs rdiff -r1.20 -r1.21 src/usr.sbin/inetd/Makefile
cvs rdiff -r1.17 -r1.18 src/usr.sbin/ipf/
cvs rdiff -r1.1 -r1.2 src/usr.sbin/iscsi/target/Makefile
cvs rdiff -r1.1.1.1 -r1.2 src/usr.sbin/isdn/
cvs rdiff -r1.15 -r1.16 src/usr.sbin/kadmin/Makefile
cvs rdiff -r1.13 -r1.14 src/usr.sbin/kdc/Makefile
cvs rdiff -r1.16 -r1.17 src/usr.sbin/ktutil/Makefile
cvs rdiff -r1.6 -r1.7 src/usr.sbin/lpr/
cvs rdiff -r1.8 -r1.9 src/usr.sbin/map-mbone/Makefile
cvs rdiff -r1.2 -r1.3 src/usr.sbin/mld6query/Makefile
cvs rdiff -r1.9 -r1.10 src/usr.sbin/mopd/
cvs rdiff -r1.17 -r1.18 src/usr.sbin/mountd/Makefile
cvs rdiff -r1.9 -r1.10 src/usr.sbin/mrinfo/Makefile
cvs rdiff -r1.13 -r1.14 src/usr.sbin/mrouted/Makefile
cvs rdiff -r1.5 -r1.6 src/usr.sbin/mscdlabel/Makefile
cvs rdiff -r1.9 -r1.10 src/usr.sbin/mtrace/Makefile
cvs rdiff -r1.2 -r1.3 src/usr.sbin/ndbootd/Makefile
cvs rdiff -r1.5 -r1.6 src/usr.sbin/ndp/Makefile
cvs rdiff -r1.10 -r1.11 src/usr.sbin/nfsd/Makefile
cvs rdiff -r1.17 -r1.18 src/usr.sbin/ntp/
cvs rdiff -r1.4 -r1.5 src/usr.sbin/pf/
cvs rdiff -r1.26 -r1.27 src/usr.sbin/pkg_install/
cvs rdiff -r1.14 -r1.15 src/usr.sbin/pstat/Makefile
cvs rdiff -r1.1 -r1.2 src/usr.sbin/puffs/
cvs rdiff -r1.17 -r1.18 src/usr.sbin/racoon/Makefile
cvs rdiff -r1.10 -r1.11 src/usr.sbin/rarpd/Makefile
cvs rdiff -r1.10 -r1.11 src/usr.sbin/rbootd/Makefile
cvs rdiff -r1.3 -r1.4 src/usr.sbin/rip6query/Makefile
cvs rdiff -r1.6 -r1.7 src/usr.sbin/route6d/Makefile
cvs rdiff -r1.24 -r1.25 src/usr.sbin/rpc.bootparamd/Makefile
cvs rdiff -r1.13 -r1.14 src/usr.sbin/rpc.lockd/Makefile
cvs rdiff -r1.7 -r1.8 src/usr.sbin/rpcbind/Makefile
cvs rdiff -r1.10 -r1.11 src/usr.sbin/rtadvd/Makefile
cvs rdiff -r1.11 -r1.12 src/usr.sbin/rtsold/Makefile
cvs rdiff -r1.12 -r1.13 src/usr.sbin/rwhod/Makefile
cvs rdiff -r1.2 -r1.3 src/usr.sbin/sdpd/Makefile
cvs rdiff -r1.2 -r1.3 src/usr.sbin/sntp/Makefile
cvs rdiff -r1.10 -r1.11 src/usr.sbin/sup/
cvs rdiff -r1.19 -r1.20 src/usr.sbin/syslogd/Makefile
cvs rdiff -r1.43 -r1.44 src/usr.sbin/tcpdump/Makefile
cvs rdiff -r1.2 -r1.3 src/usr.sbin/timed/
cvs rdiff -r1.14 -r1.15 src/usr.sbin/traceroute/Makefile
cvs rdiff -r1.6 -r1.7 src/usr.sbin/traceroute6/Makefile
cvs rdiff -r1.9 -r1.10 src/usr.sbin/trpt/Makefile
cvs rdiff -r1.6 -r1.7 src/usr.sbin/wpa/
cvs rdiff -r1.15 -r1.16 src/usr.sbin/ypbind/Makefile
cvs rdiff -r1.11 -r1.12 src/usr.sbin/yppoll/Makefile
cvs rdiff -r1.7 -r1.8 src/usr.sbin/ypserv/
cvs rdiff -r1.10 -r1.11 src/usr.sbin/ypset/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Home | Main Index | Thread Index | Old Index