summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2015-11-15Really silly to chmod "st_mode & 07777" when making a copy of theTheo de Raadt
group file, like entirely missing the point. ok jca
2015-11-15Make key_code unsigned long long not uint64_t which is more portable forNicholas Marriott
printf formats, and move UTF8_SIZE define down to near the rest of the UTF-8 bits.
2015-11-15Tweak previous: rename it to fpround() to match FreeBSDPhilip Guenther
requested by kettenis@
2015-11-15Add an AddKeysToAgent client option which can be set to 'yes', 'no',Joshua Stein
'ask', or 'confirm', and defaults to 'no'. When enabled, a private key that is used during authentication will be added to ssh-agent if it is running (with confirmation enabled if set to 'confirm'). Initial version from Joachim Schipper many years ago. ok markus@
2015-11-15When validating a char by calling strchr() with a string of allowed chars,Tobias Stoeckmann
check for '\0' first, because strchr() would return non-NULL. ok nicm
2015-11-15update NAME; ok nicm schwarzeJason McIntyre
2015-11-15_towctrans_ext and _wctrans_init are now hidden; so drop them from the listPhilip Guenther
2015-11-15ui_new -> UI_new;Jason McIntyre
2015-11-15fix references to lhash(3);Jason McIntyre
2015-11-15fix a double space issue in the following, rather wonderful, fortune:Jason McIntyre
On two occasions I have been asked [by members of Parliament!], `Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?' I am not able rightly to apprehend the kind of confusion of ideas that could provoke such a question. -- Charles Babbage
2015-11-15The compile-time secure mode has gone, from Michael Reed.Nicholas Marriott
2015-11-15Remove more register keywords.mmcc
ok daniel@, discussed on hackers@
2015-11-15remove mlink for non-existent ieee80211_compute_duration;Jason McIntyre
2015-11-15'.Ql Quit' -> '.Ql quit' because only the lowercase command is valid.mmcc
2015-11-15everyting -> everythingMiod Vallat
2015-11-15Make sure every mtmsr instruction disabling external interrupts is immediatelyMiod Vallat
followed by an isync. ok mpi@
2015-11-15virtio2 at pci0 dev 3 function 0 "Qumranet Virtio Network" rev 0x00: Virtio ↵Theo de Raadt
Network Device becomes simply virtio2 at pci0 dev 3 function 0 "Qumranet Virtio Network" rev 0x00
2015-11-15remove entries for SRPL_HEAD_INIT (listed twice!) and SRPL_ENTRY_INIT,Jason McIntyre
neither of which appear to exist;
2015-11-15word fix;Jason McIntyre
2015-11-15Accidentally turned off pledge, turn it back on.Nicholas Marriott
2015-11-15Simplify TIOCGWINSZ codeblock by removing support for SCO Unix.Theo de Raadt
2015-11-15Same as in binutils-2.17, only restore regular permission bits.Jeremie Courreges-Anglas
But don't restore ownership/setuid/etc bits. ok deraadt@
2015-11-15In smart_rename, restore at least the regular permissions bits.Jeremie Courreges-Anglas
But don't try to chown or set special bits. This fixes several ports. ok deraadt@
2015-11-15Add support for 11n mode to the rate adaptation (AMRR) code.Stefan Sperling
Currently limited to MCS 0-7. For now, drivers must not configure 11n hardware to use MCS other than MCS 0-7, which limits us to 65Mbit/s. MCS 8 and above use MIMO and will require more work in AMRR once we get there. ok deraadt mpi phessler kettenis guenther
2015-11-15Expose 11n mode to the ifmedia layer and introduce the concept of MCS.Stefan Sperling
Make sure 11n features are enabled only if media type is autoselect or 11n. 11n mode uses MCS (modulation & coding scheme) instead of rates like 11a/b/g. This means we'll have to take the current mode into account and decide whether to use a rate or an MCS for transmission. Receiving frames on legacy rates will still work in 11n mode. We just won't be using legacy rates to send data frames to an STA or AP we negotiated 11n features with. My initial plan was to grow the ieee80211_rateset structure and treat MCS just like rates. However, ieee80211_rateset corresponds to rates and xrates elements in management frames and is copied directly into such elements so its size cannot change. Thus, MCS stands on its own and corresponds to elements in management frames related to 11n HT capabilities. ok deraadt mpi phessler kettenis guenther
2000-09-12Import binutils-2.10Marc Espie
- only the binutils package (no gdb here) - don't import libiberty and texinfo, they are elsewhere - remove all .info* generated files
2015-11-15Parse 11n HT capabilities and operational info from association responseStefan Sperling
frames, negotiate HT with the AP, and move the interface into or out of 11n mode accordingly. If running as AP negotiate HT with nodes joining the BSS. ok deraadt mpi kettenis guenther
2015-11-15IEEE80211_MODE_MAX has been raised to include 11n mode so make sure thatStefan Sperling
ieee80211_media_init doesn't index its rates array beyond turbo mode.
2015-11-15Extend struct ieee80211_node with fields for 11n STA HT capabilities andStefan Sperling
HT operational information sent by 11n APs. These fields reflect the structure of elements in management frames so that IEEE80211_HTCAP* and IEEE80211_HTOP* macros designed to operate on frame elements can be used directly to read or set the fields. Populate nodes with HT information received in probe responses, probe requests, and association requests. ok deraadt mpi phessler kettenis guenther
2015-11-15Declare macros for antenna flags. Lifted from Linux iwlwifi.Stefan Sperling
2015-11-15very simple pledges, stdio and rpath, very boringTheo de Raadt
2015-11-15pretty simple. pledge "stdio rpath" at startup, and pledge "stdio" afterTheo de Raadt
opening the database.
2015-11-15KNF, de-register, fix other minor grumblesTheo de Raadt
2015-11-15unifdef MAKE_BOOTSTRAP now that Makefile.boot is gone.Daniel Dickman
ok espie@
2015-11-15Switch to linkat() to support hardlinked symlinksPhilip Guenther
Simplify chown logic by using fchownat() Cache whether we're root instead of calling getuid() before each chown
2015-11-15exit needs stdlib, switch to "return 0" to fix.Daniel Dickman
ok espie
2015-11-15Now that the (setuid bit related) bad-practice audit and repair is complete,Theo de Raadt
ar/ranlib and objcopy/strip can pledge "stdio rpath wpath cpath fattr" ok guenther
2015-11-15In most cases binutils strips off setuid/setgid bits when creating copiesTheo de Raadt
of files. In two cases however they were not being masked. These are build tools -- therefore they should not encourage further propogation of such unsafe bits. ok guenther
2015-11-15Using #ifndef __OpenBSD__, disable the really dangerous and sillyTheo de Raadt
setuid-preserving code in the so-called smart_rename() function. I don't want my tools (ar, ranlib, objcopy, strip) going through the effort to preserve setuid bits on ``build-directory'' files when they sense a symbolic link, thank you very much. The modern way is to build code, then set such modes at install-time. Our kernel goes through the effort to clear setuid flags, and this was neutering that attempt. Also has atrocious error handling. (Identified as an issue of concern while doing the audit for pledge) ok guenther
2015-11-15I got a round tuit to rename round() to roundit() to avoid gcc warning.Philip Guenther
ok deraadt@
2015-11-15ldd(1) sets environment variable LD_TRACE_LOADED_OBJECTS to tell ld.soTheo de Raadt
that it should show information about the program it loads, rather than run it. In that specific case, ld.so can pledge to "stdio rpath" to ensure that code path in ld.so has no bugs. Yes, a pledge in ld.so.... who'd have thought! ok guenther
2015-11-15pledge "stdio rpath wpath cpath tmppath fattr"Theo de Raadt
ok guenther
2015-11-15Fix CCMP (WPA2) in preparation for 11n. This code didn't handle QoSStefan Sperling
frames correctly but QoS frames are required for 11n A-MPDU aggregation and 11n STAs are required to use CCMP instead of WEP or TKIP ciphers. The QoS bit in FC0 is part of AAD (additional authentication data) but was being masked unconditionally. The FC1 order bit is masked to 0 in AAD if a data frame contains a QoS control field but this code was looking for HT control fields instead. Add an XXX comment about another bit which must be set if SPP (signaling and payload protected) A-MSDUs are supported. Neither Linux nor FreeBSD seem to set this bit, and we don't support SPP A-MSDUs yet so a comment seems good enough for now. ok deraadt mpi kettenis guenther helpful hints from mikeb
2015-11-15pledge for ypldap is easy because it's purely a network program.Jonathan Matthew
One process talks to yp clients, one talks to ldap servers, one does dns. ok deraadt@
2015-11-15Move zapping of invalid GPT data into GPT_get_gpt() rather thanKenneth R Westerback
returning a value to tell callers to zap it. Use consistant idiom to check for the presence of a GPT (check gh.gh_sig). When zapping GPT, always zap both the header and partition table just for paranoia's sake.
2015-11-15Vi needs flock, for those who haven't set nolock in .exrc for years...Anthony J. Bentley
Pointed out by Theo Buehler.
2015-11-15Declare 802.11n mode and channel flags. Tweak 11n related fields in structStefan Sperling
ieee80211com and move them inside #ifndef IEEE80211_NO_HT without breaking the build in rsu(4) for RAMDISK_CD. Also declare 11n protection modes and MCS count. ok deraadt mpi kettenis guenther
2015-11-15Basic pledge for vi.Anthony J. Bentley
ok deraadt@
2015-11-15syncTheo de Raadt
2015-11-15Add ifmedia definitions for 802.11n.Stefan Sperling
ok deraadt mpi phessler kettenis guenther