Commit Graph

245252 Commits

Author SHA1 Message Date
christos
c0e5049c21 Require exact credential match; this way even if we su to the original user
that created the session, we won't match his credentials.
2016-10-01 04:42:54 +00:00
christos
4b39133eee Weaken the test a bit to still allow non-root to use TIOCSTI; we need to have
the same creds as the session leader process for the tty session.
2016-10-01 03:46:00 +00:00
roy
b5123ad110 Remove the alias keyword from ifconfig output as it serves no purpose. 2016-09-30 16:52:17 +00:00
roy
d55c25711c ifaddrs has more data than just the address.
Use it instead of making pointless ioctl calls.
2016-09-30 16:47:56 +00:00
skrll
07838e6706 Increment resident_count if we're remapping onto new PA as
pmap_remove -> pmap_pte_remote will decrement it
2016-09-30 12:10:40 +00:00
dholland
8536f06c47 Be more careful about preserving errno. Might conceivably be related
to PR 51432.
2016-09-30 06:22:21 +00:00
dholland
48faaeec69 Be consistent about returning -1 on error. Don't return random errnos
instead.
2016-09-30 06:16:47 +00:00
christos
f08a5ec0bf Only allow root to use TIOCSTI. Don't eat the kauth error number.
It is unexpected for an unprivileged process to gain privs by
typing to root's tty:

$ cat installer
#!/bin/sh
whoami
/usr/sbin/sti /dev/tty whoami\\n

$ su unprivileged -c ./installer
unprivileged
$ whoami
root
2016-09-29 21:46:32 +00:00
kre
f6bb854fd7 Added /usr/share/zoneinfo/Asia/Yangon for tzdata2016g 2016-09-29 20:47:18 +00:00
kre
5591d9b51d Note tzdata update to 2016g 2016-09-29 20:44:06 +00:00
kre
8744da7208 Merge tzdata2016g 2016-09-29 20:41:33 +00:00
kre
87963c4046 Import tzdata2016g from ftp://ftp.iana.org/tz/releases/tzdata2016g.tar.gz
Summary of changes in tzdata2016g (2016-09-13 08:56:38 -0700):
	Timezone switch in Turkey (summer time becomes standard time)
	Transition time corrections for historic timestamps in
		America/Los_Angeles
		zones using USSR rules in early 20th century
	Some (more) time zone abbreviations converted to numeric form
	Asia/Rangoon becomes Asia/Yangon (with backward compat link)
2016-09-29 20:40:55 +00:00
christos
e771ba939e Introduce and use PROC_PTRSZ() to handle differing pointer size 64->32
emulation.
2016-09-29 20:40:53 +00:00
kre
36f0250a07 Import tzdata2016g from ftp://ftp.iana.org/tz/releases/tzdata2016g.tar.gz
Summary of changes in tzdata2016g (2016-09-13 08:56:38 -0700):
	Timezone switch in Turkey (summer time becomes standard time)
	Transition time corrections for historic timestamps in
		America/Los_Angeles
		zones using USSR rules in early 20th century
	Some (more) time zone abbreviations converted to numeric form
	Asia/Rangoon becomes Asia/Yangon (with backward compat link)
2016-09-29 20:40:49 +00:00
uwe
c3674760a3 Run configure with MAKE=${TOOL_GMAKE:Q} - otherwise "checking
dependency style" test fails on non-netbsd hosts where nbmake can't
find share/mk.

Ok phone@
2016-09-29 20:08:25 +00:00
christos
600f58d691 don't change the loop counts; noted by mrg@ 2016-09-29 19:08:48 +00:00
christos
99a48913f4 fix more driver lossage 2016-09-29 18:58:27 +00:00
christos
d18e278dd0 Allow sparc kernels to build with SSP by using a constant PAGE_SIZE... 2016-09-29 18:47:35 +00:00
maxv
60a76fef67 Remove outdated comments, typos, rename and reorder a few things. 2016-09-29 17:01:43 +00:00
roy
06a737b41a Sprinkle some RCSID loving. 2016-09-29 15:25:28 +00:00
roy
18cd17b80a Now that sppp announces address additions and removals with state
flags, we no longer need the custom sppp code to detect if we are
connected or not.

Add commentary on if we really need to handle RTM_DELADDR only when
detached.
2016-09-29 15:21:09 +00:00
roy
aac6678f54 in_ifscrub is no longer needed. 2016-09-29 15:18:18 +00:00
sevan
a7479d150a Add NetBSD 7.0.1
heads up by wiz@
2016-09-29 15:10:37 +00:00
roy
9288933cf3 Set dstaddr in in_ifinit so that sppp consumers announce the correct
dstaddr in routing messages.
2016-09-29 15:04:17 +00:00
sevan
aa2a5a68b7 Sync with FreeBSD r305215
Add NetBSD rcs tag which was lost with r1.13.
2016-09-29 14:32:51 +00:00
roy
39d33d5a25 When changing an address via in_ifinit, ensure that the old address
is correctly scrubbed.
This allows sppp consumers to announce removal of the old address.
2016-09-29 14:18:38 +00:00
roy
fb8ac61d3a Ensure we only call pfil_run_hooks if if_init succeeded.
While here, improve improve some logging.
2016-09-29 14:08:40 +00:00
roy
547a909ccc Don't invoke scripts for INADDR_ANY or INADDR_BROADCAST addresses. 2016-09-29 13:36:30 +00:00
roy
0dbee937df Now that we disallow sending or receiving from invalid addresses,
allow binding to tentative addresses.
2016-09-29 12:19:47 +00:00
wiz
f0ca89e331 Explain dty/tty a bit and point to tty(4). Bump date.
Ok gdt@
2016-09-29 11:38:43 +00:00
mrg
afbc10d797 enable xorg-server 1.18 for sparc64. minor consistency 2016-09-29 03:53:13 +00:00
macallan
47bb9e27e1 put igs driver back. 2016-09-28 18:23:00 +00:00
macallan
1032c95374 makr pnozz, ag10e, sunleo as 1.10 only 2016-09-28 18:17:10 +00:00
macallan
5f9a2b7b6b enable igs driver on shark, build pnozz and ag10e drivers only for old xorg
for now
2016-09-28 18:12:06 +00:00
skrll
45fdccf388 Whitespace 2016-09-28 11:44:16 +00:00
wiz
84771e7b84 Fix typo. 2016-09-28 06:47:55 +00:00
pgoyette
a28b2246b9 Missed the mlx_pci module in previous commit (to disable) 2016-09-27 23:25:10 +00:00
christos
dd3883cd61 Minor edit. 2016-09-27 22:54:57 +00:00
pgoyette
3bed3657af Add some additional comments resulting from my recent efforts to provide
ld(4) modularization.
2016-09-27 22:27:50 +00:00
pgoyette
01b31fcf1e For now, disable all the newly-created ld(4) related modules. We need
to come up with a better way to handle attachment-specific modules, and
possibly a better directory structure for modules in general, as the
current mechanism doesn't scale.
2016-09-27 20:52:43 +00:00
christos
efc6033743 remove stray debugging, fix debugging message. 2016-09-27 20:37:05 +00:00
christos
c2ec58382b - use ether_snprintf() so that we don't overwrite our buffer for printing
ethernet-like addresses
- make this compile againw without IEEE80211_DEBUG.
2016-09-27 20:20:06 +00:00
christos
c6c0aa6669 works, tested without privacy, wep and wpa. Soft crypto only for now. 2016-09-27 20:16:35 +00:00
joerg
e2e07da7d3 Split -mv8plus into the appropiate flags for GCC and clang. 2016-09-27 19:26:06 +00:00
joerg
3d96c42069 Don't bail out on the const lose for the driver name for clang. Also
accepts differences in pointer signs.
2016-09-27 19:24:19 +00:00
joerg
f713f3f1c9 Allow clang to generate SPARCv8+ assembly for now. 2016-09-27 19:18:42 +00:00
joerg
87e9b90cbb Disable pointer sign warnings for clang. 2016-09-27 19:15:09 +00:00
mrg
715ec0646c set X11SRCDIR.xf86-video-modesetting correctly for xorg-server 1.18.4.
should fix build errors for x86.
2016-09-27 16:47:01 +00:00
mrg
cf3fd92536 apply the previous typo in another place as well. 2016-09-27 16:44:04 +00:00
maya
858387416c Clean up some commented out x86-specific things. 2016-09-27 13:01:18 +00:00