Gentoo Archives: gentoo-user

From: Pandu Poluan <pandu@××××××.info>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Problems emerging util-linux-2.20-r1 in chroot
Date: Thu, 09 Feb 2012 13:16:59
Message-Id: CAA2qdGWco0ciYOfNfSOpzou-eMv+Eb99uzuKQESBpnWyNxROGw@mail.gmail.com
In Reply to: Re: [gentoo-user] Problems emerging util-linux-2.20-r1 in chroot by Alex Schuster
1 Okay, PROBLEM SOLVED. (Read below)
2
3 On Thu, Feb 9, 2012 at 19:51, Alex Schuster <wonko@×××××××××.org> wrote:
4 > Pandu Poluan writes:
5 >
6 >> Have anyone been having problems emerging sys-apps/util-linux-2.20-r1
7 >> on a chroot-ed environment?
8 >>
9 >> In my case, it always fail during the following stage:
10 >>
11 >> chmod
12 >> g+s /var/tmp/portage/sys-apps/util-linux-2.20-r1/image//usr/bin/write
13 >
14 > Very strange. What is the exact error message?
15 >
16
17 The error message was "Permission denied"
18
19 Trying the exact same chmod command from shell also resulted in
20 "Permission denied"
21
22 Then I got suspicious of my kernel (hardened).
23
24 "make menuconfig" brought me to GRKERNSEC_CHROOT_CHMOD ... and that's
25 the reason for my problems!!
26
27 So, before chroot-ing, I did:
28
29 sysctl -w kernel.grsecurity.chroot_deny_chmod=0
30
31 followed by "emerge -1av sysvinit util-linux"
32
33 annnddd...... THERE'S JOY IN MUDVILLE!!! :-D
34
35 (Let it be for the record that this is the *first* time *ever*
36 hardened-sources bit me)
37
38
39 Anyway, thanks for the attempts to help, guys!
40
41 Rgds,
42 --
43 FdS Pandu E Poluan
44 ~ IT Optimizer ~
45
46  • LOPSA Member #15248
47  • Blog : http://pepoluan.tumblr.com
48  • Linked-In : http://id.linkedin.com/in/pepoluan