看板FB_security
标 题Re: syslogd(8) Dropping Privs
发信站NCTU CSIE FreeBSD Server (Mon Jun 14 10:33:53 2004)
转信站ptt!FreeBSD.csie.NCTU!not-for-mail
On Sat, Jun 05, 2004 at 06:21:29PM +1000, Darren Reed wrote:
> ...and this works in the case of SIGHUP too ?
>
> i.e. re-read syslogd.conf and can open new files r/w root only ?
Syslogd(8) does NOT run as root by the time log files are openned
at startup or a reconfig (SIGHUP). As I stated in the original
message, the log files will have to be writable by the user. Same
goes for writting messages to users via their ttys. Although having
things set up otherwise is probably rare, make sure that the user
can read the configuration file.
What do we do while still root? Open the UNIX domain log sockets
(/var/run/log and any others specified) and open the network socket
(514/udp by default or whatever specified). The PID file is also
written while still root.
I'm thinking of writing a "conversion" script to make the required
changes.
--
Crist J. Clark |
[email protected]
|
[email protected]
http://people.freebsd.org/~cjc/ |
[email protected]
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-security
To unsubscribe, send any mail to "
[email protected]"