#################################################################### # Copyright 1999-2003 Gentoo Technologies, Inc. # # Distributed under the terms of the GNU General Public License v2 # #################################################################### # chpax prefix description # p PE do not enforce paging based non-executable pages # E ET emulate trampolines # r RE do not randomize mmap() base [ELF only] # m ME do not restrict mprotect() # s SE do not enforce segmentation based non-executable pages # x XE do not randomize ET_EXEC base [ELF only] # I've taken to the convention of using one of the above prefixes with # _[package] to name the variables here, i.e. PE_wine would be like # `chpax -p` against the affected wine binaries. As far as I know, # there's no setting in here for `chpax -x` # "blackdown_java" would be blackdown-jdk or blackdown-jre # packages that need Page Exempt PE_wine=/usr/lib/wine/bin/{wine{,build,clipsrv,dump,gcc,server,wrap,-{k,p}thread},w{mc,rc,idl}} PE_blackdown_java=/opt/blackdown-{jdk-*/{,jre/},jre-*/}bin/{java{_vm},keytool,kinit,klist,ktab,orbd,policytool,rmi{d,registry},servertool,tnameserv} PE_openoffice=/opt/OpenOffice.org*/program/soffice.bin PE_xfce4=/usr/bin/xfce4-panel PE_gnome=/usr/bin/gnome-sound-recorder PE_bzflag=/usr/games/bin/bzflag # misc PE: xfree, xmms, mplayer, blender, gxine, totem, acme PEMISC="/usr/X11R6/bin/XFree86 /usr/bin/xmms /usr/bin/mplayer \ /usr/bin/blender /usr/bin/gxine /usr/bin/totem /usr/bin/acme" # packages that need Rand Exempt # Note that at least blackdown-jre-1.4.1/bin/javac needs this, or it segs. RE_blackdown_java="${PE_blackdown_java}" # packages that need MProtect Exempt ME_blackdown_java="${PE_blackdown_java}" # All are applied here PAGEEXEC_EXEMPT="${PEMISC} ${PE_wine} ${PE_blackdown_java} ${PE_gnome} \ ${PE_openoffice} ${PE_xfce4} ${PE_gnome} ${PE_bzflag}" TRAMPOLINE_EXEMPT="" MPROTECT_EXEMPT="${ME_blackdown_java}" RANDMMAP_EXEMPT="" SEGMEXEC_EXEMPT="${PAGEEXEC_EXEMPT}" RANDEXEC_EXEMPT="${RE_blackdown_java}" # when zero flag mask is set to "yes" it will remove all pax flags from all files on reboot/stop ZERO_FLAG_MASK=yes