Add RFC 5424 syslog message output to syslogd.- Move all of the code responsible for transmitting log messages into a separate function, fprintlog_write().- Instead of manually modifying a list
Add RFC 5424 syslog message output to syslogd.- Move all of the code responsible for transmitting log messages into a separate function, fprintlog_write().- Instead of manually modifying a list of iovecs, add a structure iovlist with some helper functions.- Alter the F_FORW (UDP message forwarding) case to also use iovecs like the other cases. Use sendmsg() instead of sendto().- In the case of F_FORW, truncate the message to a size dependent on the address family (AF_INET, AF_INET6), as proposed by RFC 5426.- Move all traditional message formatting into fprintlog_bsd(). Get rid of some of the string copying and snprintf()'ing. Simply emit more iovecs to get the job done.- Increase ttymsg()'s limit of 7 iovecs to 32. Add a definition for this limit, so it can be reused by iovlist.- Add fprintlog_rfc5424() to emit RFC 5424 formatted log entries.- Add a "-O" command line option to enable RFC 5424 formatting. It would have been nicer if we supported "-o rfc5424", just like on NetBSD. Unfortunately, the "-o" flag is already used for a different purpose on FreeBSD.- Don't truncate hostnames in the RFC 5424 case, as suggested by that specific RFC.For people interested in using this, this feature can be enabled byadding the following line to /etc/rc.conf: syslogd_flags="-s -O rfc5424"Differential Revision: https://reviews.freebsd.org/D15011
show more ...
Close the fp rather than the fd since we fdopen the fd so we don'tleak the FILE *.CID: 978383
General further adoption of SPDX licensing ID tags.Mainly focus on files that use BSD 3-Clause license.The Software Package Data Exchange (SPDX) group provides a specificationto make it easier f
General further adoption of SPDX licensing ID tags.Mainly focus on files that use BSD 3-Clause license.The Software Package Data Exchange (SPDX) group provides a specificationto make it easier for automated tools to detect and summarize well knownopensource licenses. We are gradually adopting the specification, notingthat the tags are considered only advisory and do not, in any way,superceed or replace the license texts.Special thanks to Wind River for providing access to "The Duke ofHighlander" tool: an older (2014) run over FreeBSD tree was useful as astarting point.
DIRDEPS_BUILD: Update dependencies.Sponsored by: Dell EMC Isilon
Renumber copyright clause 4Renumber cluase 4 to 3, per what everybody else did when BSD grantedthem permission to remove clause 3. My insistance on keeping the samenumbering for legal reasons is
Renumber copyright clause 4Renumber cluase 4 to 3, per what everybody else did when BSD grantedthem permission to remove clause 3. My insistance on keeping the samenumbering for legal reasons is too pedantic, so give up on that point.Submitted by: Jan Schaumann <[email protected]>Pull Request: https://github.com/freebsd/freebsd/pull/96
Revert r286144 leaving the original fix to the buffer overflow.Some developers consider the new code unnecessarily obfuscated.There was also a benign off-by-one.Discussed with: bde, vangyzen, jm
Revert r286144 leaving the original fix to the buffer overflow.Some developers consider the new code unnecessarily obfuscated.There was also a benign off-by-one.Discussed with: bde, vangyzen, jmallett
Buffer overflow in wall(1).Revert r286102 and apply a cleaner fix.Tested for overflows by FORTIFY_SOURCE GSoC (with clang).Suggested by: bdeReviewed by: Oliver PinterTested by: Oliver PinterM
Buffer overflow in wall(1).Revert r286102 and apply a cleaner fix.Tested for overflows by FORTIFY_SOURCE GSoC (with clang).Suggested by: bdeReviewed by: Oliver PinterTested by: Oliver PinterMFC after: 3 days
Buffer overflow in wall(1).This affected syslogd, wall and talkd.Detected by FORTIFY_SOURCE GSoC (with clang).Submitted by: Oliver PinterDifferential Revision: https://reviews.freebsd.org/D3254
Buffer overflow in wall(1).This affected syslogd, wall and talkd.Detected by FORTIFY_SOURCE GSoC (with clang).Submitted by: Oliver PinterDifferential Revision: https://reviews.freebsd.org/D3254Reviewed by: delphij, jmgMFC after: 3 days
Fix typo when deregistering the VLAN unconfig event handlerSubmitted by: Masao Uebayashi <[email protected]>MFC after: 3 days
dirdeps.mk now sets DEP_RELDIR
Updated dependencies
Add a MD_ROOT_FSTYPE kernel option. The option specifies thefile system part for the MD_ROOT mount string. Hardcoding thethe file system type as "ufs" is too restrictive.
Sync FreeBSD's bmake branch with Juniper's internal bmake branch.Requested by: Simon Gerraty <[email protected]>
Add multibyte char support.PR: 165429Submitted by: amdmi3
Add missing static keywords to wall(1)
If one's message is longer than the buffer size, then we reset 'cnt' at thewrong point and the actual column # get out of sync across the buffer size.
Remove the advertising clause from UCB copyrighted files in usr.bin. Thisis in accordance with the information provided atftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.ChangeAlso add $F
Remove the advertising clause from UCB copyrighted files in usr.bin. Thisis in accordance with the information provided atftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.ChangeAlso add $FreeBSD$ to a few files to keep svn happy.Discussed with: imp, rwatson
Perform all trivial ports to utmpx for usr.bin/.They were already converted to use libulog, so it's easy to convert themto utmpx.
Build usr.bin/ with WARNS=6 by default.Also add some missing $FreeBSD$ to keep svn happy.
Add missing `void' keyword.
Revert most part of 200420 as requested, as more review and polish isneeded.
Remove unneeded header includes from usr.bin/ except contributed code.Tested with: make universe
123