1 |
Thanks, |
2 |
|
3 |
This was a good start, but it needed a few additions for it to work on my |
4 |
system. |
5 |
|
6 |
On my system the tty device is labeled with portage_tty_device_t instead of |
7 |
portage_devpts_t. This is probably because /dev/pts does not appear to be |
8 |
used for ttys. Also, setfiles_t was missing the tty grant. |
9 |
|
10 |
-Tad |
11 |
|
12 |
> -----Original Message----- |
13 |
> From: Chris PeBenito [mailto:pebenito@g.o] |
14 |
> Sent: Tuesday, November 25, 2003 7:44 AM |
15 |
> To: Tad |
16 |
> Cc: 'Hardened Gentoo Mail List' |
17 |
> Subject: RE: [gentoo-hardened] emerge and setfiles |
18 |
> |
19 |
> On Tue, 2003-11-25 at 01:02, Tad wrote: |
20 |
> > There are no denial messages. From the root:portage_r:portage_t read and |
21 |
> |
22 |
> > I can see nothing wrong so this is really perplexing. |
23 |
> > What is especially odd is the lack of denial messages. |
24 |
> |
25 |
> Well this was a sneaky bug. Only people that change to portage_r would |
26 |
> see this. The problem was that portage_t could transition to |
27 |
> setfiles_t, but portage_r could not have the setfiles_t type. If you |
28 |
> use the sysadm_t auto-transition, which most people seem to do, the role |
29 |
> stays as sysadm_r, which was allowed setfiles_t, and thus wouldn't run |
30 |
> into this problem. Please try adding on this patch, it should fix it. |
31 |
> |
32 |
> cd /etc/security/selinux/src/policy |
33 |
> patch -p1 < /path/to/selinux-base-policy-20031010-r1-portage_r-types.diff |
34 |
> |
35 |
> -- |
36 |
> Chris PeBenito |
37 |
> <pebenito@g.o> |
38 |
> Developer, |
39 |
> Hardened Gentoo Linux |
40 |
> Embedded Gentoo Linux |
41 |
> |
42 |
> Public Key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xE6AF9243 |
43 |
> Key fingerprint = B0E6 877A 883F A57A 8E6A CB00 BC8E E42D E6AF 9243 |
44 |
|
45 |
|
46 |
-- |
47 |
gentoo-hardened@g.o mailing list |