1 |
The booleans are in /selinux/booleans |
2 |
|
3 |
Use setsebool to change their value and/or make it permanent. |
4 |
|
5 |
Will Keaney wrote: |
6 |
> On Sun, 18 Nov 2007 16:56:55 -0500 |
7 |
> Bill Sharer <bsharer@××××××××××.com> wrote: |
8 |
> |
9 |
> |
10 |
>> You can run the log through audit2why and audit2allow to get a feel |
11 |
>> for what's going on in policy. Don't directly rely on audit2allow |
12 |
>> since I think it still orients itself to the old modular example |
13 |
>> policy and not refpolicy. |
14 |
>> |
15 |
>> Check your booleans. I spotted one thing right off the bat (urandom) |
16 |
>> which is probably due to the boolean global_ssp not being true. This |
17 |
>> should be true for gentoo systems, but for some reason, the ebuild |
18 |
>> defaults it to false. |
19 |
>> |
20 |
>> Will Keaney wrote: |
21 |
>> |
22 |
>>> I've just finished updating my SELinux VM, but still get a lot of |
23 |
>>> avc denials in /var/log/syslog. |
24 |
>>> What is the recommended method of changing |
25 |
>>> the SELinux policy? I seem to remember PeBenito saying in IRC that |
26 |
>>> editing the policy files directly is not recommended. |
27 |
>>> |
28 |
>>> On the off chance that someone has some insight into what might be |
29 |
>>> causing these errors, I'm attaching the output of |
30 |
>>> grep "Nov 18 16:2" /var/log/syslog | cut -d " " -f 7- | grep avc |
31 |
>>> |
32 |
>>> |
33 |
>>> Thanks, |
34 |
>>> |
35 |
>>> Will Keaney |
36 |
>>> uberpinguin |
37 |
>>> |
38 |
>>> |
39 |
> Thanks very much for the quick reply, it is very informative. |
40 |
> I don't seem to have any booleans loaded, according to sestatus -v: |
41 |
> SELinux status: enabled |
42 |
> SELinuxfs mount: /selinux |
43 |
> Current mode: permissive |
44 |
> Mode from config file: permissive |
45 |
> Policy version: 21 |
46 |
> Policy from config file: strict |
47 |
> |
48 |
> Process contexts: |
49 |
> Current context: root:sysadm_r:sysadm_t |
50 |
> Init context: system_u:system_r:init_t |
51 |
> /sbin/agetty system_u:system_r:getty_t |
52 |
> /usr/sbin/sshd system_u:system_r:sshd_t |
53 |
> |
54 |
> File contexts: |
55 |
> Controlling term: root:object_r:sysadm_tty_device_t |
56 |
> /sbin/init system_u:object_r:init_exec_t |
57 |
> /sbin/agetty system_u:object_r:getty_exec_t |
58 |
> /bin/login system_u:object_r:login_exec_t |
59 |
> /sbin/rc system_u:object_r:initrc_exec_t |
60 |
> /sbin/runscript.sh system_u:object_r:initrc_exec_t |
61 |
> /usr/sbin/sshd system_u:object_r:sshd_exec_t |
62 |
> /sbin/unix_chkpwd system_u:object_r:chkpwd_exec_t |
63 |
> /etc/passwd system_u:object_r:etc_t |
64 |
> /etc/shadow system_u:object_r:shadow_t |
65 |
> /bin/sh system_u:object_r:bin_t -> |
66 |
> system_u:object_r:shell_exec_t /bin/bash |
67 |
> system_u:object_r:shell_exec_t /usr/bin/newrole |
68 |
> system_u:object_r:newrole_exec_t /lib/libc.so.6 |
69 |
> system_u:object_r:lib_t -> |
70 |
> system_u:object_r:shlib_t /lib/ld-linux.so.2 |
71 |
> system_u:object_r:lib_t -> system_u:object_r:ld_so_t |
72 |
> |
73 |
> I don't see a command to load/change booleans though? |
74 |
> |
75 |
> Will |
76 |
> |
77 |
|
78 |
-- |
79 |
gentoo-hardened@g.o mailing list |