Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 365359 - sci-astronomy/celestia-1.6.1 needs paxctl -m
Summary: sci-astronomy/celestia-1.6.1 needs paxctl -m
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: The Gentoo Linux Hardened Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-29 20:39 UTC by Nikoli
Modified: 2014-02-04 03:58 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nikoli 2011-04-29 20:39:53 UTC
Without 'paxctl -m /usr/bin/celestia' it fails to run:

[178651.095191] grsec: denied RWX mmap of <anonymous mapping> by /usr/bin/celestia[celestia:10082] uid/euid:1101/1101 gid/egid:1101/1101, parent /bin/bash[bash:9703] uid/euid:1101/1101 gid/egid:1101/1101
[178651.095214] celestia[10082]: segfault at ffffffffffffffff ip 00000287f10645b1 sp 0000039cbb9aefe0 error 6 in i915g_dri.so[287f0e0b000+36b000]
[178651.095258] grsec: Segmentation fault occurred at ffffffffffffffff in /usr/bin/celestia[celestia:10082] uid/euid:1101/1101 gid/egid:1101/1101, parent /bin/bash[bash:9703] uid/euid:1101/1101 gid/egid:1101/1101
[178651.095298] grsec: denied resource overstep by requesting 4096 for RLIMIT_CORE against limit 0 for /usr/bin/celestia[celestia:10082] uid/euid:1101/1101 gid/egid:1101/1101, parent /bin/bash[bash:9703] uid/euid:1101/1101 gid/egid:1101/1101
Comment 1 Sébastien Fabbro (RETIRED) gentoo-dev 2011-08-06 18:53:43 UTC
please confirm with 1.6.1. if it persists, could you file a bug upstream?
Comment 2 Nikoli 2012-01-06 12:44:31 UTC
Confirm for 1.6.1, sorry for delay.
Comment 3 Kacper Kowalik (Xarthisius) (RETIRED) gentoo-dev 2012-02-04 19:11:57 UTC
@hardened: please apply any fix you deem necessary
Comment 4 Kacper Kowalik (Xarthisius) (RETIRED) gentoo-dev 2012-02-21 20:54:54 UTC
  21 Feb 2012; Kacper Kowalik <xarthisius@gentoo.org> celestia-1.6.1.ebuild:
  Pax mark m main binary wrt bug 365359 by Nikoli <nikoli@lavabit.com>

Thanks to Zorry for testing.
Comment 5 Nikoli 2012-06-17 15:19:31 UTC
Now celestia works fine without paxctl -m, i have Radeon HD6770 with gallium driver, llvm is disabled:
[ebuild   R   ~] media-libs/mesa-8.0.3  USE="egl g3dvl gallium gbm nptl openvg pax_kernel shared-glapi vdpau xa -bindist -classic -d3d -debug -gles1 -gles2 -llvm -osmesa -pic (-selinux) -shared-dricore -wayland -xvmc" VIDEO_CARDS="r600 radeon -i915 -i965 -intel -nouveau -r100 -r200 -r300 -vmware" 0 kB
Comment 6 Nikoli 2014-01-31 07:22:51 UTC
Please remove pax-mark from celestia ebuild, it is bug in _some_ video drivers: users need to pax mark every bin using libGL.so. nouveau drivers still have this problem bug #432520, radeon foss drivers work fine (even with llvm enabled), do not know about other.
http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/x11-drivers/ati-drivers/ati-drivers-13.12.ebuild?view=markup&revision=1.2
        if use pax_kernel; then
                ewarn "Please run \"revdep-pax -s libGL.so.1 -me\" after installation and"
                ewarn "after you have run \"eselect opengl set ati\". Executacle"
                ewarn "revdep-pax is part of package sys-apps/elfix."
        fi
Comment 7 Rick Farina (Zero_Chaos) gentoo-dev 2014-02-03 15:16:15 UTC
(In reply to Nikoli from comment #6)
> Please remove pax-mark from celestia ebuild, it is bug in _some_ video
> drivers: users need to pax mark every bin using libGL.so. nouveau drivers
> still have this problem bug #432520, radeon foss drivers work fine (even
> with llvm enabled), do not know about other.
> http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/x11-drivers/ati-
> drivers/ati-drivers-13.12.ebuild?view=markup&revision=1.2
>         if use pax_kernel; then
>                 ewarn "Please run \"revdep-pax -s libGL.so.1 -me\" after
> installation and"
>                 ewarn "after you have run \"eselect opengl set ati\".
> Executacle"
>                 ewarn "revdep-pax is part of package sys-apps/elfix."
>         fi

Maybe instead of removing it we could say "You man need to run"?  Or is this entirely unneeded?
Comment 8 Nikoli 2014-02-03 15:30:20 UTC
I think it is not needed in celestia package and in other packages using opengl. Warning should be displayed by video drivers packages, because they are the source of the problem.
Comment 9 Rick Farina (Zero_Chaos) gentoo-dev 2014-02-03 16:09:41 UTC
If no one disagrees in the next few hours I'm going to make this commit.
Comment 10 Rick Farina (Zero_Chaos) gentoo-dev 2014-02-04 03:58:33 UTC
removed pax-mark.  I agree, if a user wants to use binary drivers with this issue they can use revdep-pax.