Gentoo Archives: gentoo-hardened

From: Paul Sebastian Ziegler <psz@××××××××.de>
To: gentoo-hardened@l.g.o
Cc: aiko@××××××.de
Subject: Re: [gentoo-hardened] Which security solution?
Date: Sun, 15 Apr 2007 20:41:45
Message-Id: 46228D88.4060804@observed.de
In Reply to: [gentoo-hardened] Which security solution? by Aiko Barz
1 -----BEGIN PGP SIGNED MESSAGE-----
2 Hash: SHA512
3
4 > To be precise, the default rule shall be: Allow everything.
5 > I simply want to keep programs like qmail-ldap, dovecot and so on
6 > within their allowed limits.
7
8 Hi Aiko,
9
10 I hope I understood correctly, but if all you want is to ensure the
11 limits of a few processes there are afaik two easy methods that do not
12 require systemwide settings.
13
14 1) You could try simply jail them into a chroot. This will keep the apps
15 you want to have under greater control separated from the rest of the
16 system and thus limits their damage-potential immensely. Just make sure
17 that you chroot is secure and there is no way out. A great tool to help
18 with this would be JailKit (http://olivier.sessink.nl/jailkit/)
19
20 2) You can use the hardened sources to get access to GRSEC-enhancements.
21 The option you'll need is called CONFIG_GRKERNSEC_AUDIT_GROUP. This will
22 allow you to specify a gid to monitor. Simply make all the processes you
23 want to thoroughly audit members of a special group (e.g. call it
24 "untrusted"). Then activate all the special logging options you want.
25 This can be very comprehensive and produce a LOT of logs. So be careful.
26 You could also activate CONFIG_GRKERNSEC_SOCKET and specify another gid
27 to restrict the usage of sockets. However this appears to be rather
28 unlikely since you said you want to tighten your grip on applications
29 holding a port.
30
31 I think combining both of them would give you a good start in hardening
32 your system the way you want it.
33
34 If I understood your request in a wrong way, please let me know.
35
36 Many Greetings
37 Paul
38 -----BEGIN PGP SIGNATURE-----
39 Version: GnuPG v1.4.6 (GNU/Linux)
40 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
41
42 iD8DBQFGIo2IaHrXRd80sY8RCv5PAKCzYt49Z0sVi992HRrFrCYGHvsrOACffXBj
43 vbdfH7gTJbdHFf8Ee+vHx/w=
44 =QM0W
45 -----END PGP SIGNATURE-----
46 --
47 gentoo-hardened@g.o mailing list