1 |
On Sun, 31 Jul 2011 16:00:40 -0400 |
2 |
"Anthony G. Basile" <blueness@g.o> wrote: |
3 |
|
4 |
> On 07/31/2011 03:46 PM, Nirbheek Chauhan wrote: |
5 |
> > On Sun, Jul 31, 2011 at 8:13 PM, Anthony G. Basile |
6 |
> > <blueness@g.o> wrote: |
7 |
> >> Hi everyone, |
8 |
> >> |
9 |
> >> A couple of days ago, bonsaikitten (Patrick), kerframil (Kerin |
10 |
> >> Millar) and myself were talking about other distros moving away |
11 |
> >> from setuid binaries towards caps. Openwall and Fedora are now |
12 |
> >> setuid-less [1]. Some googling showed that Constanze has done |
13 |
> >> quite a bit of work in the area and that there was a consensus to |
14 |
> >> include functions to set caps within portage [2]. I don't know |
15 |
> >> what, if anything has been done since then, but I'd like to lend |
16 |
> >> my support. |
17 |
> >> |
18 |
> > One problem that came up was that a lot of people use tmpfs for |
19 |
> > /var/tmp/portage, and tmpfs doesn't support xattrs which are needed |
20 |
> > for setting caps. |
21 |
> > |
22 |
> > Linux 3.0 has added support for xattrs with tmpfs (the redhat folks |
23 |
> > did the work, afaik), so that problem is partly solved now. |
24 |
> |
25 |
> I know, there are lots of places where xattrs is not supported that |
26 |
> lead to the same problem. I'm tempted to respond with pkg_postinst() |
27 |
> but I see QA problems written all over that. |
28 |
|
29 |
We can either do that or 'Future EAPI' capsetting in PMS. Then, a PM |
30 |
could implement capsetting functions in a such way that they will |
31 |
preserve caps internally to PM and re-set them when merging to livefs. |
32 |
|
33 |
-- |
34 |
Best regards, |
35 |
Michał Górny |