All of lore.kernel.org
 help / color / mirror / Atom feed
* please offer your good advices / new policies: exim, dovecot, maradns, (aptitude)
@ 2003-04-23 16:06 Peter Gervai
  2003-04-23 20:13 ` Andreas Schuldei
                   ` (4 more replies)
  0 siblings, 5 replies; 9+ messages in thread
From: Peter Gervai @ 2003-04-23 16:06 UTC (permalink / raw)
  To: SELinux List

Hello,

I subscribed the list as I became confident that my contributions aren't
worthless after my very complex patch got into newrule.pl. :-)

Apart from kidding... I have had small and large problems with selinux, and
most of them was resolved by my humble self, or with the help of
#selinux@irc.debian.org, but I'm not confident that my policies are really
as secure as I would like to have them to be.

The server is a school server with some hundred young users, which was once
compromised, due to the clueless morons walking with root pw to be able to
create users and due to other morons being friends of the before mentioned
ones installing attacking software of questionnable source (not that the
source would change the roots of the problems) containing RST.B and other
linux viruses.

Now enough was enough, selinux goes on the system. 

Mailserver, dns, webserver, and some usual goodies run on it. Mailserver is
exim, dns was chosen maradns (it handles both auth and recur queries, free,
and the author isn't a moron :)), imap/pop is dovecot (pretty nice piece of
sw), apache is apache. Debian sid/unstable is the base with the valuable
help of Russel's packages.

My policies are on http://narya.grin.hu/selinux/policy/
There is a diff to help to show my actions, and the policies are there as
well if someone needs them.

I'd be happy if you would read the README and do what it says, which is
basically a beg for peer review of the beforementioned policies of mine and
sharing good advices.

				*

Other question: what is the advised way to have the server an admin
(staff_t?) who is able to create/delete users? Probably emitting user_u
users are okay in the beginning, because I believe everything more would
require policy reloading. (I'm checking this after this email anyway, but
maybe you're faster.)

This probably need changing to uid=0, and I see that there is no sudo.te in
the default... but I don't think sharing the root pw is better than su. Is
it safe to allow sudo setuid:capability? Does anyone already have a sudo.te?

				*

There was a question a month ago about dhcpc_t (and sshd_t and newrole_t in
cases) emitting this:

avc:  denied  { recvfrom } for  pid=1059 exe=/usr/sbin/exim saddr=10.1.1.16
 source=17664 daddr=10.1.1.1 dest=60 netif=eth0
 scontext=system_u:system_r:dhcpc_t tcontext=root:sysadm_r:sysadm_t
 tclass=packet_socket

(One line for every packet ever arriving on the network!)

I don't see the reason for this (I have wild guesses), and I don't see the
solution. And I don't get why nobody had this problem before. Shall I
dontaudit these (modifying dhcpc, newrole, sshd, ...)? Is there a better
solution?


Thanks for the reading,
Peter


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2003-04-24 16:12 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-04-23 16:06 please offer your good advices / new policies: exim, dovecot, maradns, (aptitude) Peter Gervai
2003-04-23 20:13 ` Andreas Schuldei
2003-04-24 16:11   ` Stephen Smalley
2003-04-24  2:56 ` Russell Coker
2003-04-24  3:05 ` Russell Coker
2003-04-24  3:29 ` Russell Coker
2003-04-24 11:00   ` several wee things about exim and macros (was: please offer your good advices...) Peter Gervai
2003-04-24 11:59     ` Russell Coker
2003-04-24 16:07 ` please offer your good advices / new policies: exim, dovecot, maradns, (aptitude) Stephen Smalley

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.