Gentoo Archives: gentoo-hardened

From: "Anthony G. Basile" <basile@××××××××××××××.edu>
To: gentoo-hardened@l.g.o
Subject: Re: [gentoo-hardened] XATTR_PAX migration
Date: Mon, 09 Sep 2013 17:46:55
Message-Id: 522E0995.40500@opensource.dyc.edu
In Reply to: Re: [gentoo-hardened] XATTR_PAX migration by Michael Orlitzky
1 On 09/09/2013 10:19 AM, Michael Orlitzky wrote:
2 > On 09/09/2013 09:49 AM, Alex Efros wrote:
3 >> Hi!
4 >>
5 >> On Mon, Sep 09, 2013 at 09:30:56AM -0400, Michael Orlitzky wrote:
6 >>> That is, can I disable PT_PAX, enable XATTR_PAX, reboot, and run
7 >>> migrate-pax? Or might that cause problems?
8 >>
9 >> You can migrate with just one reboot, but order of actions is different:
10 >>
11 >> 1. Build new kernel with PT_PAX disabled and XATTR_PAX enabled.
12 >> 2. Run `migrate-pax -m`.
13 >> 3. Reboot using new kernel.
14 >
15 > Thanks, I'll give it a try (on the router in the building where I have
16 > keys, first...).
17 >
18 >
19 >> I'm not really sure, but you may also need to add PAX_MARKINGS="XT" into
20 >> /etc/make.conf.
21 >>
22 >
23 > pax-utils.eclass has this to say:
24 >
25 > To control what markings are made, set PAX_MARKINGS in /etc/portage
26 > /make.conf to contain either "PT", "XT" or "none". The default is to
27 > attempt both PT_PAX and XATTR_PAX.
28 >
29 > But then again, right below that, I see,
30 >
31 > # @ECLASS-VARIABLE: PAX_MARKINGS
32 > # @DESCRIPTION:
33 > # Control which markings are made:
34 > # PT = PT_PAX markings, XT = XATTR_PAX markings
35 > # Default to PT markings.
36 > PAX_MARKINGS=${PAX_MARKINGS:="PT"}
37 >
38 > So I'm not really sure either.
39 >
40
41 That was my mistake. When I dropped XT I forgot to update the comment.
42 We tried XT right off the bat, but discovered a couple of problems: 1)
43 install doesn't preserve xattr. we have a solution but it isn't working
44 that well, and 2) there were lots of warning thrown for non hardened
45 users which annoyed them. So we dropped to just PT.
46
47
48 --
49 Anthony G. Basile, Ph. D.
50 Chair of Information Technology
51 D'Youville College
52 Buffalo, NY 14201
53 (716) 829-8197

Replies

Subject Author
Re: [gentoo-hardened] XATTR_PAX migration Michael Orlitzky <michael@××××××××.com>