Gentoo Archives: gentoo-hardened

From: xake@×××××××××.net
To: gentoo-hardened@l.g.o
Subject: [gentoo-hardened] SELinux and iptables.
Date: Sun, 24 Feb 2008 22:34:51
Message-Id: 24213.193.11.246.158.1203892487.squirrel@webmail.rymdraket.net
1 Iptables does not work for me in selinux with the default configuration.
2 To be precise '/etc/init.d/iptables save' fails to write the rules to
3 '/var/lib/iptables/rules-save'.
4
5 In fact if I do not disable enforcing that file ends up empty no matter if
6 I had or had not anything in it before.
7
8 dmesg leaves me with the following:
9 audit(1203892287.176:2148): avc: denied { write } for pid=10909
10 comm="iptables-save" path="/var/lib/iptables/rules-save" dev=md3
11 ino=26181655 scontext=user_u:system_r:iptables_t
12 tcontext=user_u:object_r:var_lib_t tclass=file
13 audit(1203892287.176:2149): avc: denied { getattr } for pid=10909
14 comm="iptables-save" path="/var/lib/iptables/rules-save" dev=md3
15 ino=26181655 scontext=user_u:system_r:iptables_t
16 tcontext=user_u:object_r:var_lib_t tclass=file
17
18 So is this something gentoo-wise or just my system?
19 Is there anyother place that configuration file is meant to be placed
20 (according to the policies) or do I have to make an local exception in the
21 policy?
22
23 //Peter
24
25 --
26 gentoo-hardened@l.g.o mailing list