paxctl doesnt work on java binaries (sun, 1.4.2_04) -> co
Posted: Mon Jul 05, 2004 4:54 pm
input data:
`'`'`'`'`'``'
gentoo distribution
kernel 2.6.7 with grsecurity applied ( from /~spender
sun jdk 1.4.2.04 (also tested blackdown 1.4.1 and 1.4.2_rc1)
paxctl 0.2
chpax 0.6.1 (also tested 0.7)
browser with java plugin affected: all (opera,konqueror, mozilla)
results:
`'`'``'`
1. chpax modification of correct (?) jdk .so files results in flags being properly written (chpax -v shows changes)
2. but java segfaults
3. due to fact (look below for .config) that I enabled CONFIG_PAX_PT_PAX_FLAGS=y i think that paxctl usage is critical, but paxctl -v BINARY shows nothing
4. browser/java still segfaults
any ideas ??
questions unanswered:
`'`'`'`'`'`'``'`'`'`'`'`'`'
1. will java compiled from scratch with patched binutils work ? /it is compiling now, so we will see in few hours /
2. which one should i use chpax/paxctl for:
a. binaries built with patched binutils
b. binaries built without patched binutils
3. ekhmm maybe i chpax'ed/paxctl'ed wrong files ???
my kernel .config related to pax:
`'``'`'`'`'``'`'`'`'`'`'`'`'`'``'`'`'
#
# PaX Control
#
CONFIG_PAX_SOFTMODE=y
CONFIG_PAX_EI_PAX=y
CONFIG_PAX_PT_PAX_FLAGS=y
CONFIG_PAX_NO_ACL_FLAGS=y
# CONFIG_PAX_HAVE_ACL_FLAGS is not set
# CONFIG_PAX_HOOK_ACL_FLAGS is not set
#
# Non-executable pages
#
CONFIG_PAX_NOEXEC=y
# CONFIG_PAX_PAGEEXEC is not set
CONFIG_PAX_SEGMEXEC=y
# CONFIG_PAX_EMUTRAMP is not set
CONFIG_PAX_MPROTECT=y
# CONFIG_PAX_NOELFRELOCS is not set
#
# Address Space Layout Randomization
#
CONFIG_PAX_ASLR=y
CONFIG_PAX_RANDKSTACK=y
CONFIG_PAX_RANDUSTACK=y
CONFIG_PAX_RANDMMAP=y
# CONFIG_PAX_RANDEXEC is not set
CONFIG_PAX_NOVSYSCALL=y
CONFIG_SECURITY=y
CONFIG_SECURITY_NETWORK=y
CONFIG_SECURITY_CAPABILITIES=y
CONFIG_SECURITY_ROOTPLUG=m
CONFIG_SECURITY_SELINUX=y
# CONFIG_SECURITY_SELINUX_BOOTPARAM is not set
# CONFIG_SECURITY_SELINUX_DISABLE is not set
# CONFIG_SECURITY_SELINUX_DEVELOP is not set
# CONFIG_SECURITY_SELINUX_MLS is not set
`'`'`'`'`'``'
gentoo distribution
kernel 2.6.7 with grsecurity applied ( from /~spender
sun jdk 1.4.2.04 (also tested blackdown 1.4.1 and 1.4.2_rc1)
paxctl 0.2
chpax 0.6.1 (also tested 0.7)
browser with java plugin affected: all (opera,konqueror, mozilla)
results:
`'`'``'`
1. chpax modification of correct (?) jdk .so files results in flags being properly written (chpax -v shows changes)
2. but java segfaults
3. due to fact (look below for .config) that I enabled CONFIG_PAX_PT_PAX_FLAGS=y i think that paxctl usage is critical, but paxctl -v BINARY shows nothing
4. browser/java still segfaults
any ideas ??
questions unanswered:
`'`'`'`'`'`'``'`'`'`'`'`'`'
1. will java compiled from scratch with patched binutils work ? /it is compiling now, so we will see in few hours /
2. which one should i use chpax/paxctl for:
a. binaries built with patched binutils
b. binaries built without patched binutils
3. ekhmm maybe i chpax'ed/paxctl'ed wrong files ???
my kernel .config related to pax:
`'``'`'`'`'``'`'`'`'`'`'`'`'`'``'`'`'
#
# PaX Control
#
CONFIG_PAX_SOFTMODE=y
CONFIG_PAX_EI_PAX=y
CONFIG_PAX_PT_PAX_FLAGS=y
CONFIG_PAX_NO_ACL_FLAGS=y
# CONFIG_PAX_HAVE_ACL_FLAGS is not set
# CONFIG_PAX_HOOK_ACL_FLAGS is not set
#
# Non-executable pages
#
CONFIG_PAX_NOEXEC=y
# CONFIG_PAX_PAGEEXEC is not set
CONFIG_PAX_SEGMEXEC=y
# CONFIG_PAX_EMUTRAMP is not set
CONFIG_PAX_MPROTECT=y
# CONFIG_PAX_NOELFRELOCS is not set
#
# Address Space Layout Randomization
#
CONFIG_PAX_ASLR=y
CONFIG_PAX_RANDKSTACK=y
CONFIG_PAX_RANDUSTACK=y
CONFIG_PAX_RANDMMAP=y
# CONFIG_PAX_RANDEXEC is not set
CONFIG_PAX_NOVSYSCALL=y
CONFIG_SECURITY=y
CONFIG_SECURITY_NETWORK=y
CONFIG_SECURITY_CAPABILITIES=y
CONFIG_SECURITY_ROOTPLUG=m
CONFIG_SECURITY_SELINUX=y
# CONFIG_SECURITY_SELINUX_BOOTPARAM is not set
# CONFIG_SECURITY_SELINUX_DISABLE is not set
# CONFIG_SECURITY_SELINUX_DEVELOP is not set
# CONFIG_SECURITY_SELINUX_MLS is not set