Gentoo Archives: gentoo-hardened

From: "Alexander Y. Tiurin" <alexanderyt@×××××.com>
To: gentoo-hardened@l.g.o
Subject: [gentoo-hardened] Denied RWX mmap while build gimp in chroot
Date: Mon, 01 Oct 2012 18:03:12
Message-Id: 5069C7E3.6030405@gmail.com
1 Hello!
2 This issue after update to gimp-2.6.12-r5 (build in chroot).
3
4 The host system with 3.2.23-hardened-r1 kernel, arch x86_64, profile
5 hardened/linux/amd64.
6 chroot: arch i686, default/linux/x86/10.0/desktop.
7
8
9 This is part of the build log
10
11 checking for connect... yes
12 checking for remove... yes
13 checking for shmat... yes
14 checking for IceConnectionNumber in -lICE... yes
15 checking for pkg-config... (cached) /usr/bin/pkg-config
16 checking for GTK+ - version >= 2.12.5... no
17 *** Could not run GTK+ test program, checking why...
18 *** The test program compiled, but did not run. This usually means
19 *** that the run-time linker is not finding GTK+ or finding the wrong
20 *** version of GTK+. If it is not finding GTK+, you'll need to set your
21 *** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point
22 *** to the installed location Also, make sure you have run ldconfig if that
23 *** is required on your system
24 ***
25 *** If you have an old version installed, it is best to remove it, although
26 *** you may also be able to get things to work by modifying LD_LIBRARY_PATH
27 configure: error: Test for GTK+ failed. See the file 'INSTALL' for help.
28
29
30 Please see full log on http://pastebin.com/2uzQteTD
31
32
33
34 And grsec log on host:
35 2012-10-01T20:11:33.198786+04:00 miniatx kernel: grsec: From
36 172.21.21.20: denied RWX mmap of
37 /var/local/gentoo_chroots/g32s/usr/lib/opengl/xorg-x11/lib/libGL.so.1.2
38 by
39 /var/local/gentoo_chroots/g32s/var/tmp/portage/media-gfx/gimp-2.6.12-r5/work/gimp-2.6.12/conftest[conftest:30201]
40 uid/euid:0/0 gid/egid:0/0, parent
41 /var/local/gentoo_chroots/g32s/var/tmp/portage/media-gfx/gimp-2.6.12-r5/work/gimp-2.6.12/configure[configure:30200]
42 uid/euid:0/0 gid/egid:0/0
43
44 Please suggest any solution.

Replies

Subject Author
Re: [gentoo-hardened] Denied RWX mmap while build gimp in chroot Pavel Labushev <pavel.labushev@××××××.no>