summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2015-10-23Cast isspace() argument to unsigned char.mmcc
2015-10-23remove some more ifdef mazinessTed Unangst
2015-10-23Fix renaming in the root directory by correctly setting directoryKenneth R Westerback
offset. From Serguey Parkhomovsky via bugs@, in response to problem report from matthieu@. Same fix is in NetBSD for one. ok tedu@
2015-10-23Remove three strange and unused preproc defines. Submitted by Ilyammcc
Kaliman. ok nicm@
2015-10-23Fix printf() types so kernel compiles with or w/o MSDOSFS_DEBUG.Kenneth R Westerback
e.g. print pointers with %p instead of %08x. No changes outside of MSDOSFS_DEBUG.
2015-10-23From jmc@ "the exclusive open propery" does not make sense. Try with 'an'.Claudio Jeker
2015-10-23Forgot to install the new tap.4 man page.Claudio Jeker
2015-10-23Rather than re-opening the driftfile to write, keep it open; rewindingTheo de Raadt
and coping with error conditions... that lets us avoid a pledge "wpath". Putting it all together, this lets the master ntpd pledge "stdio rpath inet settime proc id". It works like this: "rpath" to load the certificates, "proc" to create constraint processes, "id" to chroot and lock the constraint processes into a jail, then "inet" to open a https session. "settime" is used by the master to manage the system time when the ntp-speaking engine instructs the master. with help from naddy
2015-10-23Remove some unnecessary checks before free().Nicholas Marriott
2015-10-23If $TMUX is set, and we are unsure about the session, use it.Nicholas Marriott
2015-10-23If writing to a tty blocks, syslogd forked and tried to write againAlexander Bluhm
in a background process. A potential fork(2) at every message is bad, so replace this with an event. As a bonus the syslogd child process does not need to pledge "proc" anymore. Also limit the number of delayed write events. OK deraadt@
2015-10-23tmux can call pledge() in main with large set and then reduce itNicholas Marriott
slightly in the server to "stdio rpath wpath cpath fattr unix recvfd proc exec tty ps".
2015-10-23Format for scroll position, from Jorge Morante.Nicholas Marriott
2015-10-23Allow SIOCGIFINFO_IN6Theo de Raadt
2015-10-23Use tty_term_flag not _has for XT, and make -2 force direct use ofNicholas Marriott
256-colour escape sequences (so setaf/setab can be bypassed if needed).
2015-10-23document -h flag and add a .XrJoerg Jung
ok sunil millert
2015-10-23ndp -n -d <addr> does dns lookups, even with -n. it should not.Sebastian Benoit
found through pledge. ok deraadt@
2015-10-23netstart bits for tap(4)Claudio Jeker
2015-10-23Sync (MAKEDEV addition of tap)Claudio Jeker
2015-10-23Adjust tun(4) and tap(4) after the split.Claudio Jeker
Note: "pseudo-device tun" is used by both devices this is not a typo OK dlg@ mpi@
2015-10-23Sync (after tap addition)Claudio Jeker
2015-10-23MAKEDEV bits for tap(4)Claudio Jeker
OK dlg@ mpi@
2015-10-23Allocate a new major for tap(4) also note that pseudo-device tun is for tapClaudio Jeker
as well. OK dlg@ mpi@
2015-10-23Split up tun(4) into tun(4) & tap(4). Killing the link0 magic to switchClaudio Jeker
between modes. The two drivers still share most of the code but the mode switcher is gone. OK dlg@ mpi@
2015-10-23route has 3 code paths: monitor (listening on route socket); showTheo de Raadt
(sysctl and then print), change (getsocket, then read/write on that). Refactor lightly and insert pledge "stdio rpath dns" in each case. ok claudio benno phessler
2015-10-23Allowing upstream servers of ntp being in multiple routing tables isPeter Hessler
non-sensical. The dns lookups happened in the process routing table (usually '0'), which is very likely to have different results from the other routing domains. If you do depend on having this behaviour, you'll need to use pf to cross the rtable boundary. "listen on * rtable X" is still supported. Users of "server * rtable X" will need to switch to launching ntpd with "route -T X exec /usr/sbin/ntpd" OK deraadt@
2015-10-23rtfree(9) and rtalloc(9) no longer need to be called under KERNEL_LOCK.Martin Pieuchot
2015-10-23apply bold and italic to all non-ASCII Unicode codepoints,Ingo Schwarze
fixing input like \fB\('e; issue reported by bentley@
2015-10-23Update route entries reference counters atomically.Martin Pieuchot
This allows us to only grab the KERNEL_LOCK when the last reference of an entry has been dropped. For symmetry also grab the KERNEL_LOCK inside rtalloc(9). ok dlg@, bluhm@
2015-10-23don't need MMAP to compile nowTed Unangst
2015-10-23correct spelling of statistic in function name, from Pablo HernandezTed Unangst
2015-10-23Check that syslogd delays a blocking write to tty and that that allAlexander Bluhm
messages still appear on the tty.
2015-10-23It was possible to create a gateway route pointing to another gatewayAlexander Bluhm
route by changing the gateway. Despite the error message when doing so, the route did actually change. The gateway is modified by rt_setgate(), the error is created by rt_getifa(). Do these operations the other way around. OK mpi@
2015-10-23``rt_ifp'' cannot be NULL.Martin Pieuchot
ok claudio@
2015-10-23getnameinfo() no longer needs pledge "route". this drops toTheo de Raadt
pledge "stdio rpath".
2015-10-23Switch if_nameindex(3) to use the new NET_RT_IFNAMES sysctl to get theClaudio Jeker
list of interface names. At the same time switch if_nametoindex(3) and if_indextoname(3) to use if_nameindex(3) instead of getifaddrs(3). if_nameindex(3) exposes much less then getifaddrs(3) and is allowed by pledge(2). With and OK deraadt@
2015-10-23Add ifnameindex to te libc regress testsClaudio Jeker
2015-10-23delete ) that jumped inTheo de Raadt
2015-10-23let the icmp check use getsockopt IP_IPDEFTTL to get the default ttlSebastian Benoit
instead of using sysctl. makes it possible to pledge hce.
2015-10-23A bit of whitespace cleanup, to make further diffs smaller.Vadim Zhukov
2015-10-23Fix BODUN handling after switch to UTF-8.Vadim Zhukov
Still wondering if this functionality should be removed, but I'll leave the decision to those who drink alcohol. Input from & okay tedu@.
2015-10-23Nuke a bunch of leading/embedded/trailing whitespace so the code can beKenneth R Westerback
read without generating spurious headaches.
2015-10-23forgot to commit makefile change for utf-8 calendarsTed Unangst
2015-10-23Introduce a new sysctl NET_RT_IFNAMES that returns only ifnames to ifindexClaudio Jeker
mappings. This will be used by if_nameindex(3), if_nametoindex(3) and if_indextoname(3) soon to fix the issues in pledge because of inet6 link local addressing. OK mpi@ benno@ deraadt@ The libc version will follow soon so better start updating your kernels
2015-10-23Make use of pledge(2).Renato Westphal
ok deraadt@
2015-10-23Add pledge(2) to the child processes.Renato Westphal
This is almost identical to the eigrpd(8) pledge diff, with the exception that the parent process can not be pledged bacause of a SIOCSETMPWCFG ioctl used to configure pseudowires. Looks good to deraadt@.
2015-10-23Zap pv allocation abstraction layer.Mark Kettenis
ok mlarkin@
2015-10-23i assume this file needs a LANG like all the restTed Unangst
2015-10-23translate calendar files to utf-8Ted Unangst
2015-10-23push LDSTATIC line down so it's not overridden by makefile.inc. ok reykTed Unangst