summaryrefslogtreecommitdiff
path: root/usr.sbin
AgeCommit message (Collapse)Author
2018-11-21Allow rad(8) to watch interface groups; e.g. "interface tap" in rad.conf.Reyk Floeter
OK florian@, additional review from kn@
2018-11-20DNS goes over both udp and tcp, so reflect that in example pf.conf line;Otto Moerbeek
ok reyk@
2018-11-20Fix when ber_free_elements is called with a NULL-value.Martijn van Duren
Found via snmpctl snmp walk 127.0.0.1 oid 1 OK claudio@
2018-11-20move a magic constant into a magic defineTed Unangst
2018-11-20unveil(2) boot images which are specified by -o option. Also exitYASUOKA Masahiko
with an error status when writing cd image fails. ok deraadt
2018-11-18Use correct name when printing the error message that a network prefix-setClaudio Jeker
is not found. Fixes crash reported by Tom Smyth.
2018-11-18later versions of 802.1Q replaced the vlan CFI field with DEIDavid Gwynne
CFI stood for canonical format indicator, and basically said whether the payload was ethernet of fddi (with 0 meaning ethernet). DEI stands for drop eligibility indicator
2018-11-18handle the 802.1Q i-tag format for provider backbone bridges.David Gwynne
2018-11-17tcpdump(8) monitor process privdropBryan Steele
The privsep monitor process handles all privileged operations on behalf of the unprivileged "packet parser" process. Once it enters its runtime state, it only needs to: * Perform DNS and other "numbers to names" lookups, sending results back over a pipe/socketpair. * Display the final packet statistics on ^C. We can finally now drop root privileges in this process as well, as bpf BIOCGSTATS is still permitted by non-root on open descriptors after it has been permanently locked with BIOCLOCK. This provides some additional protection, to go along with the already tight unveil(2) and pledge(2) restrictions. With this change tcpdump(8) completely drops root privileges at runtime. ok mestre@, deraadt@
2018-11-16add missing imsg namesEric Faurot
2018-11-16when using smtps, tls initialisation must occur after FILTER_CONNECTEDEric Faurot
has been evaluated. ok gilles@
2018-11-16Don't fatal if IPV6_LEAVE_GROUP fails.Reyk Floeter
The underlying interface might have been destroyed or detached and rad(8) will just cope with that. OK florian@
2018-11-14Plug memory leak in host()'s error code pathRicardo Mestre
OK claudio@
2018-11-14Remove an unneeded union wrapping the skipsteps pointer.Claudio Jeker
OK phessler@
2018-11-14Adjust comment.Claudio Jeker
2018-11-13Remove #if'ed 0 code around a broken pledge. Due to some ioctls and sysctlsRicardo Mestre
pledge cannot be used, nevertheless since we now have unveil available we can use it to guarantee that in this particular case the snmpe process cannot access the filesystem at all, therefore close a big attack vector and achieve a great level of protection even without being able to use pledge. prodded by deraadt@
2018-11-12simplify code for resolver_getnaimeinfo()Eric Faurot
ok gilles@
2018-11-12get rid of useless casts on setsockopt callsDavid Gwynne
suggested by kn@ after similar changes to ping
2018-11-11Fix resolver_getaddrinfo(): use NULL strings in underlying messagesEric Faurot
where appropriate and add missing check before freeaddrinfo(). This code path is currently unused.
2018-11-11accept NULL as a valid string in the proc message formating api.Eric Faurot
ok gilles@
2018-11-11accept "interface ifX" without parameters. Extend the man page to showremi
an interface config example with and one without parameters. comment and OK claudio@
2018-11-11Mention the default address (0.0.0.0) and port (6653) that switchd(8)akoshibe
uses. OK nayden@ kn@
2018-11-10the default for triggered-updates is no.remi
OK claudio@
2018-11-10fix error message when querying a non-existent tabledenis
OK claudio@
2018-11-10add support for setting the traffic class on ipv6 packets.David Gwynne
it reuses the toskeyword handling that ipv4 uses for setting the tos field, which is equiavlent to traffic class. ok florian@ denis@
2018-11-09Document interactions of rad(8), carp(4), and SOII:Stefan Sperling
When running rad(8) on top of carp(4), ifconfig carp0 -soii is a good idea. ok florian@ jmc@
2018-11-09The 'recvfd' and 'inet' promises are no longer required by tcpdump(8)Bryan Steele
This reduces the remaining runtime pledge(2) in the privsep monitor process to "stdio rpath dns bpf": - 'rpath' for /etc/{ethers,rpc}, also unveil(2)'d thanks to mestre@! - 'dns' for DNS lookups - 'bpf' BIOCGSTATS on ^C The unprivileged packet parser process remains pledged just "stdio" This depends on the previous commit that removed YP support from ethers(5). ok mestre@
2018-11-08Set sc_server.srv_tls value for "LISTEN ON STRING opttls".akoshibe
OK phessler@
2018-11-08Close the fingerprints file in the child after it has been loaded.Bryan Steele
I missed this part in my previous commit.
2018-11-08Currently, switchd(8) defaults to listening on port 6633, which was theakoshibe
defacto port value used by OpenFlow. A decent chunk of OpenFlow controllers have switched over to the IANA standardized OpenFlow port, 6653. switchd(8) also randomizes its listen ports when one is not specified in switchd.conf(5).conf. Consolidate the #defines for port values, and set a default listen port. OK phessler@ claudio@, kn@ with separate switchd.conf(5) update
2018-11-08Hoist opening pf.os(5) fingerprints '-o' earlier so that it doesn'tBryan Steele
need to be unveiled at runtime in the monitor process. Cleanup the unused internal privsep "getlines" code, we now explictly fdpass the OS fingerprints file instead. ok mestre@ kn@
2018-11-08introduce smtp-in keyword in grammar so we can report smtp-in and smtp-outGilles Chehade
events with less ambiguity ok eric@
2018-11-08when reporting tx events, report tx idGilles Chehade
when reporting tx commit, report data size report tx-envelope events
2018-11-08add protocol version to report lines and reorder timestampGilles Chehade
2018-11-08Introduce rde_update_queue_pending() similar to rib_dump_pending() it checksClaudio Jeker
if there are any neighbors that have pending updates. If so the timeout of the poll loop is set to 0 so that the work is completet ASAP. The regress test was not working because of this. The RDE was stuck in poll() instead of sending the updates out. Tested and OK denis@
2018-11-08Committed wrong version. Check the flags against the fib flags from theClaudio Jeker
config and not the old flags. Needed so that changing flags and rtableid at the same time works.
2018-11-08Only whack the RIB and recreate it if the the FIB distribution flags changedClaudio Jeker
or the rtableid changed and there is a FIB. In the NOFIB case changing the rtableid has no effect. Fixes a problem introduced with keeping the default ribs alive and Adj-RIB-In/Out. Probelm found, tested and OK denis@
2018-11-08tcpdrop(8) needs to access only two files, in this case /etc/hosts andRicardo Mestre
/etc/resolv.conf both with read permissions for the purpose of name resolution, so unveil(2) both files with "r" perms and disable further filesystem access. While here sort the headers alphabetically. OK bluhm@
2018-11-07report "." as a protocol-client event, it is the commit command, not reallyGilles Chehade
part of DATA
2018-11-07avoid freeing r twice in error case; OK otto@miko
2018-11-06Use TLS_CA_CERT_FILE instead of a separate define.Joel Sing
ok beck@ bluhm@ tb@
2018-11-05snmpd(8)'s main process needs to open the config file and /dev/pf both withRicardo Mestre
read permissions, but once it reaches pledge(2) just before the main loop both were already opened. Since snmpd(8) doesn't have a way to load or reload the config file, not even through SIGHUP, then rpath promise is not needed. The snmpe process cannot yet be pledged, but it doesn't need fs access so we can disable the access through unveil("/", ""); unveil(NULL, NULL); "looks right" to deraadt@
2018-11-05mark up AUTHORS; from raf czlonkaJason McIntyre
2018-11-05F_RIB_HASNOFIB is defined, let's use itdenis
OK claudio@
2018-11-05Be stricter with TLS configuration for ntpd constraints.Joel Sing
We already require TLSv1.2 so it does not make sense to be liberal with the cipher suites that we allow. Additionally, it is potentially dangerous to disable certificate verification when no CA data is available (which is currently an impossible case to reach). Also ensure we check the return value from tls_config_set_ca_mem() (as spotted by tb@). ok kn@ tb@
2018-11-04Graceful BGP Session Shutdown is a real RFC, add it to the list.Claudio Jeker
OK job@, benno@
2018-11-04Introduce a real Adj-RIB-Out. At the same time remove the update_ribClaudio Jeker
introduced before 6.4 because it now can be replaced with the real RIB. Main changes are: - simplified 'show rib' handling since everything is now a real RIB - path_update() is now returning if a prefix was not modified, added or moved - softreconfig out case is simpler since path_update does all the magic now - Adjust shutdown code to work with the Adj-RIB-Out Tested and OK denis@, benno@
2018-11-04some tweaks from raf czlonka, plus one more from me;Jason McIntyre
2018-11-04Pledge ripe and rde.remi
Use unveil to remove file system access for the parent proc. Also remove control_cleanup as discussed on tech@. It allows to fully remove fs access (ripd does not support reload). It's not an issue for ripd and ripctrl if an unused socket file is lying around. reads OK for claudio@ and mestre@
2018-11-04isalpha(3) requires an unsigned char value (or -1).Philip Guenther
from Hiltjo Posthuma (hiltjo(at)codemadness.org)