<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/usr.sbin/syslogd/syslogd.c, branch releng/9.2</title>
<subtitle>FreeBSD source tree</subtitle>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/'/>
<entry>
<title>MFC r249983: syslogd: Use closefrom() instead of getdtablesize()/close()</title>
<updated>2013-05-04T11:49:02+00:00</updated>
<author>
<name>Jilles Tjoelker</name>
<email>jilles@FreeBSD.org</email>
</author>
<published>2013-05-04T11:49:02+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=0d4961252d256242ee8cf041d3b4e50865c3b013'/>
<id>0d4961252d256242ee8cf041d3b4e50865c3b013</id>
<content type='text'>
loop.

When syslogd forks a process for '|' destinations, it closes all file
descriptors greater than 2.

Use closefrom() for this instead of a getdtablesize()/close() loop because
it is both faster and avoids leaving file descriptors open because the limit
was lowered after they were opened.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
loop.

When syslogd forks a process for '|' destinations, it closes all file
descriptors greater than 2.

Use closefrom() for this instead of a getdtablesize()/close() loop because
it is both faster and avoids leaving file descriptors open because the limit
was lowered after they were opened.
</pre>
</div>
</content>
</entry>
<entry>
<title>MFC 244523:</title>
<updated>2012-12-31T03:34:52+00:00</updated>
<author>
<name>Mark Johnston</name>
<email>markj@FreeBSD.org</email>
</author>
<published>2012-12-31T03:34:52+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=dcd0b3668fa421cb0dc6f5c1562bd982cc1d822c'/>
<id>dcd0b3668fa421cb0dc6f5c1562bd982cc1d822c</id>
<content type='text'>
- Make sure that errno isn't modified before calling logerror() in error
  conditions.
- Don't check for AF_INET6 when compiled without INET6 support.

Approved by:	emaste (co-mentor)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
- Make sure that errno isn't modified before calling logerror() in error
  conditions.
- Don't check for AF_INET6 when compiled without INET6 support.

Approved by:	emaste (co-mentor)
</pre>
</div>
</content>
</entry>
<entry>
<title>MFC r240389,r240409:</title>
<updated>2012-10-12T02:10:27+00:00</updated>
<author>
<name>Eitan Adler</name>
<email>eadler@FreeBSD.org</email>
</author>
<published>2012-10-12T02:10:27+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=40e61da9f97dfa38fc3b21dbf03bba169abd7d7d'/>
<id>40e61da9f97dfa38fc3b21dbf03bba169abd7d7d</id>
<content type='text'>
- 	Add support for ipv6 addresses as destination
- 	Add documentation for IPv6 support

PR:		docs/171580
Approved by:	cperciva (implicit)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
- 	Add support for ipv6 addresses as destination
- 	Add documentation for IPv6 support

PR:		docs/171580
Approved by:	cperciva (implicit)
</pre>
</div>
</content>
</entry>
<entry>
<title>Add a new option, -N to disable the default and recommended syslogd(8)</title>
<updated>2011-07-14T07:33:53+00:00</updated>
<author>
<name>Xin LI</name>
<email>delphij@FreeBSD.org</email>
</author>
<published>2011-07-14T07:33:53+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=35741267c0767d45ab00923eec6c98e87b4e3217'/>
<id>35741267c0767d45ab00923eec6c98e87b4e3217</id>
<content type='text'>
behavior, which binds to the well known UDP port.

This option implies -s.

MFC after:	2 months
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
behavior, which binds to the well known UDP port.

This option implies -s.

MFC after:	2 months
</pre>
</div>
</content>
</entry>
<entry>
<title>Here v-&gt;iov_len has been assigned the return value from snprintf.</title>
<updated>2011-01-19T17:17:37+00:00</updated>
<author>
<name>David Malone</name>
<email>dwmalone@FreeBSD.org</email>
</author>
<published>2011-01-19T17:17:37+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=98d1f19ba2ca3540e48582cf1ca56ced5193bc7b'/>
<id>98d1f19ba2ca3540e48582cf1ca56ced5193bc7b</id>
<content type='text'>
Checking if it is &gt; 0 doesn't make sense, because snprintf returns
how much space is needed if the buffer is too small. Instead, check
if the return value was greater than the buffer size, and truncate
the message if it was too long.

It isn't clear if snprintf can return a negative value in the case
of an error - I don't believe it can. If it can, then testing
v-&gt;iov_len won't help 'cos it is a size_t, not an ssize_t.

Also, as clang points out, we must always increment v here, because
later code depends on the message being in iov[5].
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Checking if it is &gt; 0 doesn't make sense, because snprintf returns
how much space is needed if the buffer is too small. Instead, check
if the return value was greater than the buffer size, and truncate
the message if it was too long.

It isn't clear if snprintf can return a negative value in the case
of an error - I don't believe it can. If it can, then testing
v-&gt;iov_len won't help 'cos it is a size_t, not an ssize_t.

Also, as clang points out, we must always increment v here, because
later code depends on the message being in iov[5].
</pre>
</div>
</content>
</entry>
<entry>
<title>syslogd(8) already supports *sending* log messages to non-</title>
<updated>2010-08-07T16:20:12+00:00</updated>
<author>
<name>Oliver Fromme</name>
<email>olli@FreeBSD.org</email>
</author>
<published>2010-08-07T16:20:12+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=974835c956ee8041ed16066038326475d443d15b'/>
<id>974835c956ee8041ed16066038326475d443d15b</id>
<content type='text'>
standard ports, but it can't *receive* them (port 514 is
hardcoded).  This commit adds that missing feature.

(NB:  I actually needed this feature for a server farm where
multiple jails run with shared IP addresses, and every jail
should have its own syslogd process.)

As a side effect, syslogd now compiles with WARNS=6.

Approved by:	des (mentor)
MFC after:	3 weeks
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
standard ports, but it can't *receive* them (port 514 is
hardcoded).  This commit adds that missing feature.

(NB:  I actually needed this feature for a server farm where
multiple jails run with shared IP addresses, and every jail
should have its own syslogd process.)

As a side effect, syslogd now compiles with WARNS=6.

Approved by:	des (mentor)
MFC after:	3 weeks
</pre>
</div>
</content>
</entry>
<entry>
<title>Port all applications in usr.sbin/ from libulog to utmpx.</title>
<updated>2010-01-13T18:17:53+00:00</updated>
<author>
<name>Ed Schouten</name>
<email>ed@FreeBSD.org</email>
</author>
<published>2010-01-13T18:17:53+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=b5810e9449971dd6d8ad2a130fbe855ca16c0a81'/>
<id>b5810e9449971dd6d8ad2a130fbe855ca16c0a81</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Let syslogd use utmpx.</title>
<updated>2009-12-24T18:05:33+00:00</updated>
<author>
<name>Ed Schouten</name>
<email>ed@FreeBSD.org</email>
</author>
<published>2009-12-24T18:05:33+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=2734cf8c82a68d59ddfb7485ff5819b563807f39'/>
<id>2734cf8c82a68d59ddfb7485ff5819b563807f39</id>
<content type='text'>
Because strings are guaranteed to be null terminated, there is no need
for excessive copying of strings, such as the line name.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Because strings are guaranteed to be null terminated, there is no need
for excessive copying of strings, such as the line name.
</pre>
</div>
</content>
</entry>
<entry>
<title>Avoid sshd, cron, syslogd and inetd to be killed under high-pressure swap</title>
<updated>2009-11-25T15:12:24+00:00</updated>
<author>
<name>Attilio Rao</name>
<email>attilio@FreeBSD.org</email>
</author>
<published>2009-11-25T15:12:24+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=7a7043c787b61d6bf02733a04ade1947fc4ded2b'/>
<id>7a7043c787b61d6bf02733a04ade1947fc4ded2b</id>
<content type='text'>
environments.
Please note that this can't be done while such processes run in jails.

Note: in future it would be interesting to find a way to do that
selectively for any desired proccess (choosen by user himself), probabilly
via a ptrace interface or whatever.

Obtained from:	Sandvine Incorporated
Reviewed by:	emaste, arch@
Sponsored by:	Sandvine Incorporated
MFC:		1 month
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
environments.
Please note that this can't be done while such processes run in jails.

Note: in future it would be interesting to find a way to do that
selectively for any desired proccess (choosen by user himself), probabilly
via a ptrace interface or whatever.

Obtained from:	Sandvine Incorporated
Reviewed by:	emaste, arch@
Sponsored by:	Sandvine Incorporated
MFC:		1 month
</pre>
</div>
</content>
</entry>
<entry>
<title>Constify 'name' field in struct funix.  This commit makes syslogd(8)</title>
<updated>2008-12-19T18:27:51+00:00</updated>
<author>
<name>Xin LI</name>
<email>delphij@FreeBSD.org</email>
</author>
<published>2008-12-19T18:27:51+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=7ad0654cff4287c47e390343eda49922f1467224'/>
<id>7ad0654cff4287c47e390343eda49922f1467224</id>
<content type='text'>
WARNS?=6 on amd64 but I have not tested under universe so keep WARNS?=
level as-is for now.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
WARNS?=6 on amd64 but I have not tested under universe so keep WARNS?=
level as-is for now.
</pre>
</div>
</content>
</entry>
</feed>
