syslogd(8) Dropping Privs
From: Crist J. Clark (cristjc_at_comcast.net)
Date: 06/04/04
- Previous message: Nebi Gurbanov: "How to configure applications so that they could use hardware ssl accelerator"
- Next in thread: Neo-Vortex: "Re: syslogd(8) Dropping Privs"
- Reply: Neo-Vortex: "Re: syslogd(8) Dropping Privs"
- Reply: Colin Percival: "Re: syslogd(8) Dropping Privs"
- Reply: Darren Reed: "Re: syslogd(8) Dropping Privs"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Fri, 4 Jun 2004 12:53:38 -0700 To: freebsd-security@freebsd.org
I made a quick change to syslogd(8) so that it can drop root
privileges immediately after starting up. It opens up the log
sockets (UNIX and network domains) and writes the PID files
before dropping privs. It drops privs before openning log
files and writing to users. Therefore, you would need to
modify your log file permissions appropriately. As for writing
to users, ttys generally are writeable by group tty. The UID
chosen to run syslogd as should be in this group if this feature
is desired.
We haven't had many syslogd(8) vulnerabilities lately, but one
less daemon running as root seems like a Good Thing. I do not
see any drawbacks from a security point of view. The log files
would have to be owned, or otherwise writeable, by this other
user, but so what. Obviously, I may be missing something.
Any interest in this? Let me know if you try it out and any
successes or failures.
Patches! CURRENT and RELENG_4 version attached. The documentation
is included as a patch to the syslogd(8) man page.
--
Crist J. Clark | cjclark@alum.mit.edu
| cjclark@jhu.edu
http://people.freebsd.org/~cjc/ | cjc@freebsd.org
_______________________________________________
freebsd-security@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-security
To unsubscribe, send any mail to "freebsd-security-unsubscribe@freebsd.org"
- text/plain attachment: syslogd.RELENG_4
- text/plain attachment: syslogd.CURRENT
- Previous message: Nebi Gurbanov: "How to configure applications so that they could use hardware ssl accelerator"
- Next in thread: Neo-Vortex: "Re: syslogd(8) Dropping Privs"
- Reply: Neo-Vortex: "Re: syslogd(8) Dropping Privs"
- Reply: Colin Percival: "Re: syslogd(8) Dropping Privs"
- Reply: Darren Reed: "Re: syslogd(8) Dropping Privs"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|