Re: nvidia.ko with Grsecurity & PaX kernel

Hinnerk van Bruinehsen <h.v.bruinehsen-j/[email protected]>
Newsgroups gmane.linux.gentoo.hardened
Message-ID <[email protected]>
On Sat, Sep 21, 2013 at 07:55:40PM +0300, Balint Szente wrote:
> Hello Anthony!
>
>
> pypaxctl itself works, but I found the way to reproduce the issue:
>
> 1. Set the PT flags for the nvidia GL library:
>
> # paxctl -c /usr/lib/opengl/nvidia/lib/libGL.so.325.15
> # paxctl-ng -em /usr/lib/opengl/nvidia/lib/libGL.so.325.15
> # paxctl-ng -v /usr/lib/opengl/nvidia/lib/libGL.so.325.15
> /usr/lib/opengl/nvidia/lib/libGL.so.325.15:
> 	PT_PAX    : -em--
> 	XATTR_PAX : -em--
>
> 2. Delete the XT_ATTR PAX flags (because I don't use XT):
>
> # pypaxctl -d /usr/lib/opengl/nvidia/lib/libGL.so.325.15
> # paxctl-ng -v /usr/lib/opengl/nvidia/lib/libGL.so.325.15
> /usr/lib/opengl/nvidia/lib/libGL.so.325.15:
> 	PT_PAX    : -em--
> 	XATTR_PAX : not found
>
> 3. Run revdep-pax:
>
> # paxctl-ng -v /usr/bin/glxgears
> /usr/bin/glxgears:
> 	PT_PAX    : -e---
> 	XATTR_PAX : not found
> # revdep-pax -m -l /usr/lib/libGL.so
> libGL.so.1 /usr/lib64/opengl/nvidia/lib/libGL.so.325.15 :X86_64 (-em--)
>
> 	/usr/bin/glxgears ( -e--- )
>         [...]
>
> 	Will mark elf with -em--
>
> 	Set flags for /usr/bin/glxgears (y/n): y
>
> 		/usr/bin/glxgears ( ----- )
> # paxctl-ng -v /usr/bin/glxgears
> /usr/bin/glxgears:
> 	PT_PAX    : -----
> 	XATTR_PAX : -----
>
> Step 2. is the trigger for the problem. If I don't delete the XT_ATTR
> PAX flags from the GL library, then the revdep-pax script works well.
>
> So as a conclusion, I think the issue appears when the library has only
> PT marks.
>
Why would you remove XT-pax flags anyways? It's just xattr (shouldn't cause
much overhead) and since PT-pax is going to be deprecated (iirc soon), you have
a backup with the  XT-pax flags (so you don't have breakage when the switch
occurs).


WKR
Hinnerk
signature.asc (application/pgp-signature, 490 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.21 (GNU/Linux)

iQEcBAEBAgAGBQJSPd8VAAoJEJwwOFaNFkYc8i0H/Rv9Mvo5uN3sw97wtBS7FO4E
u0RImq02PSiFWFD/eFKjXGs7whPk658cpEIoKt6KAW+Yt12GEdjhBT9i97NnFiu4
pEMoCbCFDVupHRZgf5WnWD6x7eGHIlf5y3AZSfTdbqC0o+QtutOOQfIwZjQ+nmkg
RsHCvbbAab857VCF01AbFah/ntT1qGyYT1WHsYl0J6jZm8hce9qYVZuOuZIZQ9+U
b7Y/ik7MxRNppBObkVQ+ygCUCB3azQDzspdT2oy7bHfElrl/0g7Ey73kgovndUFk
ljDUsip454JzX4PfsKgXx8xEIWgEZ3RI/M+rQNtiEJQvNzlRssIw+K9nHY8223E=
=KrQn
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.