Summary: | x11-drivers/ati-drivers-13.1: check if CONFIG_PAX_KERNEXEC_PLUGIN_METHOD_OR is disabled, paxmark /opt/bin/aticonfig | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Nikoli <nikoli> |
Component: | Current packages | Assignee: | Gentoo X packagers <x11> |
Status: | RESOLVED WONTFIX | ||
Severity: | normal | CC: | hardened, jekarlson, proxy-maint |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Nikoli
2013-03-15 10:40:05 UTC
Also '/usr/bin/fgl_glxgears' needs pax marking. Are you sure about this, I checked the code and there really is #ifdef CONFIG_PAX_KERNEXEC_PLUGIN_METHOD_OR if (!license || !license_is_gpl_compatible(license)) return -ENOEXEC; #endif Perhaps CONFIG_PAX_KERNEXEC_PLUGIN_METHOD_OR is the option that should be disabled? Sorry, it was typo. You are right. Greetings, can you test ati-drivers-13.2-beta7 from x11 overlay. It refers to revdep-pax in postinst message that should solve most of the remaining problems - please note, if I am missing something. I did not try beta ebuild yet, but i did try running commands from it. 1) Are sure that 'pax-mark Cm "${D}"/usr/lib*/opengl/ati/lib/libGL.so.1.2' works fine for you? Please check also output of paxctl -v and paxctl-ng -v: # paxctl -Cm /usr/lib*/opengl/ati/lib/libGL.so.1.2 file /usr/lib64/opengl/ati/lib/libGL.so.1.2 cannot have a PT_PAX_FLAGS program header, creation failed file /usr/lib/opengl/ati/lib/libGL.so.1.2 cannot have a PT_PAX_FLAGS program header, creation failed # paxctl-ng -v /usr/lib*/opengl/ati/lib/libGL.so.1.2 /usr/lib64/opengl/ati/lib/libGL.so.1.2: PT_PAX : not found XATTR_PAX: not found /usr/lib/opengl/ati/lib/libGL.so.1.2: PT_PAX : not found XATTR_PAX: not found 'paxctl-ng -m' works fine for me, but creates only xattr marking: # paxctl-ng -m /usr/lib*/opengl/ati/lib/libGL.so.1.2 # paxctl-ng -v /usr/lib*/opengl/ati/lib/libGL.so.1.2 /usr/lib64/opengl/ati/lib/libGL.so.1.2: PT_PAX : not found XATTR_PAX: -em-- /usr/lib/opengl/ati/lib/libGL.so.1.2: PT_PAX : not found XATTR_PAX: -em-- 2) Using 'revdep-pax -s libGL.so.1 -me' has 2 problems: 1) It does not create PT_PAX_FLAGS program header, for all bins in /opt/ it will use only xattr marking. You need to check in ebuild if kernel was compiled with CONFIG_PAX_XATTR_PAX_FLAGS=y. 2) After 'su' $PATH will not have /opt/bin, /opt/sbin and /usr/games/bin, revdep-pax will not mark aticonfig, amdcccle and most of bins from ati-drivers. Please add info about $PATH to postinst and pax-mark all linked to libGL.so.1 bins in src_install. (In reply to comment #5) > I did not try beta ebuild yet, but i did try running commands from it. > 1) Are sure that 'pax-mark Cm "${D}"/usr/lib*/opengl/ati/lib/libGL.so.1.2' > works fine for you? Please check also output of paxctl -v and paxctl-ng -v: > # paxctl -Cm /usr/lib*/opengl/ati/lib/libGL.so.1.2 > file /usr/lib64/opengl/ati/lib/libGL.so.1.2 cannot have a PT_PAX_FLAGS > program header, creation failed > file /usr/lib/opengl/ati/lib/libGL.so.1.2 cannot have a PT_PAX_FLAGS program > header, creation failed > # paxctl-ng -v /usr/lib*/opengl/ati/lib/libGL.so.1.2 > /usr/lib64/opengl/ati/lib/libGL.so.1.2: > PT_PAX : not found > XATTR_PAX: not found > > /usr/lib/opengl/ati/lib/libGL.so.1.2: > PT_PAX : not found > XATTR_PAX: not found > > 'paxctl-ng -m' works fine for me, but creates only xattr marking: > # paxctl-ng -m /usr/lib*/opengl/ati/lib/libGL.so.1.2 > # paxctl-ng -v /usr/lib*/opengl/ati/lib/libGL.so.1.2 > /usr/lib64/opengl/ati/lib/libGL.so.1.2: > PT_PAX : not found > XATTR_PAX: -em-- > > /usr/lib/opengl/ati/lib/libGL.so.1.2: > PT_PAX : not found > XATTR_PAX: -em-- > > > 2) Using 'revdep-pax -s libGL.so.1 -me' has 2 problems: > 1) It does not create PT_PAX_FLAGS program header, for all bins in /opt/ it > will use only xattr marking. You need to check in ebuild if kernel was > compiled with CONFIG_PAX_XATTR_PAX_FLAGS=y. > 2) After 'su' $PATH will not have /opt/bin, /opt/sbin and /usr/games/bin, > revdep-pax will not mark aticonfig, amdcccle and most of bins from > ati-drivers. Please add info about $PATH to postinst and pax-mark all linked > to libGL.so.1 bins in src_install. Looks like paxctl can't create a PT_PAX phdr and I designed paxctl-ng to NOT create the phdr. Consequently revdep-pax can't either. Looks like this will have to be marked via xattr only. x11-drivers/ati-drivers has been removed, per bug 582406. |