freebsd-skq/sys/sys
pjd cb36b2a5c4 Add missing privilege check when setting the dump device. Before that change it
was possible for a regular user to setup the dump device if he had write access
to the given device. In theory it is a security issue as user might get access
to kernel's memory after provoking kernel crash, but in practise it is not
recommended to give regular users direct access to storage devices.

Rework the code so that we do privileges check within the set_dumper() function
to avoid similar problems in the future.

Discussed with:	secteam
2014-11-11 04:48:09 +00:00
..
_bitset.h
_bus_dma.h
_callout.h
_cpuset.h Bump the default size of cpuset_t masks in userland from 128 bits to 256. 2014-08-20 16:05:15 +00:00
_ffcounter.h
_iovec.h
_kstack_cache.h
_lock.h
_lockmgr.h
_mutex.h
_null.h
_pctrie.h
_pthreadtypes.h
_rmlock.h
_rwlock.h
_semaphore.h
_sigset.h
_sockaddr_storage.h
_stack.h
_stdint.h
_sx.h
_task.h
_termios.h
_timespec.h
_timeval.h
_types.h
_umtx.h The current POSIX semaphore implementation stores the _has_waiters flag 2014-10-24 20:02:44 +00:00
_unrhdr.h
aac_ioctl.h
acct.h
acl.h
agpio.h
aio.h
alq.h
apm.h
assym.h
ata.h Add defines for various FIRST PARTY DMA SEND subcommands. 2014-10-22 01:35:30 +00:00
bio.h
bitset.h Merge from projects/bhyve_svm all the changes outside vmm.ko or bhyve utilities: 2014-10-20 18:09:33 +00:00
bitstring.h
blist.h
boot.h howto_names: unify declaration 2014-03-11 10:13:06 +00:00
buf_ring.h Plug memory ordering holes in buf_ring_enqueue. For at least some 2014-10-30 16:26:17 +00:00
buf.h Fix typo in flag name. 2014-07-07 23:21:15 +00:00
bufobj.h
bus_dma.h Update NetBSD Foundation copyrights to 2-clause BSD 2014-03-18 01:40:25 +00:00
bus.h Shuffle things. 2014-10-09 16:48:42 +00:00
busdma_bufalloc.h
callout.h Add a missing brace to callout_init_rm() to fix syntax. 2014-08-21 07:52:51 +00:00
capability.h Fix a comment in capability.h: it got renamed to capsicum.h, not 2014-03-16 21:05:00 +00:00
caprights.h
capsicum.h Prepare fget_unlocked for reading fd table only once. 2014-07-23 19:33:49 +00:00
cdefs.h For gcc 4.6 and newer, _Static_assert is a keyword, so don't try to 2014-10-10 00:35:13 +00:00
cdio.h
cdrio.h
cfictl.h
chio.h
clock.h
condvar.h
conf.h Add missing privilege check when setting the dump device. Before that change it 2014-11-11 04:48:09 +00:00
cons.h Prefer vt(4) for UEFI boot 2014-07-02 13:24:21 +00:00
consio.h vt(4): Add PIO_VFONT_DEFAULT ioctl to restore the default builtin font 2014-10-23 12:38:05 +00:00
copyright.h
counter.h
cpu.h
cpuctl.h Restore the ABI of the cpuctl(4) ioctl request CPUCTL_CPUID, use 2014-06-20 13:13:38 +00:00
cpuset.h Merge from projects/bhyve_svm all the changes outside vmm.ko or bhyve utilities: 2014-10-20 18:09:33 +00:00
ctype.h
dataacq.h
devicestat.h
digiio.h
dir.h
dirent.h
disk.h Add include missed in r274154, breaking the buildworld. 2014-11-06 04:13:28 +00:00
disklabel.h Remove ia64. 2014-07-07 00:27:09 +00:00
diskmbr.h
diskpc98.h
dkstat.h
domain.h Finish r274118: remove useless fields from struct domain. 2014-11-06 14:39:04 +00:00
dtrace_bsd.h Invoke the DTrace trap handler before calling trap() on amd64. This matches 2014-07-14 04:38:17 +00:00
dvdio.h
efi.h Remove ia64. 2014-07-07 00:27:09 +00:00
elf32.h
elf64.h
elf_common.h Allow libkvm to get the kernel va to pa delta without the need for 2014-10-19 20:23:31 +00:00
elf_generic.h
elf.h
endian.h
errno.h
eui64.h
event.h Make kevent(2) periodic timer events more reliably periodic. The event 2014-10-04 15:59:15 +00:00
eventhandler.h Whitespace fix. 2014-02-28 19:21:07 +00:00
eventvar.h
exec.h Update the comments in exec.h with help from jilles. 2014-08-08 22:30:41 +00:00
extattr.h
fail.h
fbio.h Retire various intertwined bits of fbd(4) and vt_fb, in particular the 2014-08-06 00:35:48 +00:00
fcntl.h fcntl.h: Make visible various POSIX.1-2008 features. 2014-04-17 21:29:22 +00:00
fdcio.h - Cleanups pc98 code. 2014-09-28 11:32:46 +00:00
file.h Add a new fo_fill_kinfo fileops method to add type-specific information to 2014-09-22 16:20:47 +00:00
filedesc.h filedesc: get rid of atomic_load_acq_int from fget_unlocked 2014-10-30 05:10:33 +00:00
filio.h
firmware.h
fnv_hash.h Remove ia64. 2014-07-07 00:27:09 +00:00
gmon.h
gpio.h
gpt.h After EFI support was added to the installer, it needed to allow boot 2014-07-04 15:55:32 +00:00
hash.h Add a complete implementation of MurmurHash3. Tweak both implementations 2014-10-18 22:15:11 +00:00
hhook.h For vendors like Juniper, extensibility for sockets is important. A 2014-08-18 23:45:40 +00:00
iconv.h
imgact_aout.h
imgact_binmisc.h sys/kern/imgact_binmisc.c -- free the right pointer mask vs magic 2014-04-08 22:12:01 +00:00
imgact_elf.h Expand the elf brandelf infrastructure to give access to the whole ELF 2014-08-18 02:44:56 +00:00
imgact.h Allow multiple image activators to run on the same execution by changing 2014-09-04 21:31:25 +00:00
inflate.h
interrupt.h Migrate ie->ie_assign_cpu and associated code to use an int for CPU rather 2014-09-17 17:33:22 +00:00
ioccom.h
ioctl_compat.h
ioctl.h
ipc.h
ipmi.h
jail.h
joystick.h
kbio.h
kdb.h
kenv.h
kernel.h Spell raccdt in a more conventional way in a comment. 2014-05-06 10:53:51 +00:00
kerneldump.h Remove ia64. 2014-07-07 00:27:09 +00:00
khelp.h For vendors like Juniper, extensibility for sockets is important. A 2014-08-18 23:45:40 +00:00
kobj.h
ksem.h Add a new fo_fill_kinfo fileops method to add type-specific information to 2014-09-22 16:20:47 +00:00
ksyms.h
kthread.h
ktr_class.h
ktr.h
ktrace.h
libkern.h Add support for gdb's memory searching capabilities to our in-kernel gdb 2014-09-05 16:40:47 +00:00
limits.h
link_aout.h
link_elf.h Add dl_unwind_find_exidx() for ARM EABI, required for C++ exception 2014-07-19 22:13:27 +00:00
linker_set.h Add support for empty data sets. Data set begin and end pointers 2014-07-02 08:49:06 +00:00
linker.h Fully support constructors for the purpose of code coverage analysis. 2014-10-20 17:04:03 +00:00
lock_profile.h
lock.h
lockf.h
lockmgr.h Fix two issues with lockmgr(9) LK_CAN_SHARE() test, which determines 2014-11-02 13:10:31 +00:00
lockstat.h
loginclass.h
mac.h
malloc.h Pull in r267961 and r267973 again. Fix for issues reported will follow. 2014-06-28 03:56:17 +00:00
mbpool.h All mbuf external free functions never fail, so let them be void. 2014-07-11 13:58:48 +00:00
mbuf.h Tiny comment fixup. 2014-10-27 16:13:51 +00:00
mchain.h
md4.h
md5.h
mdioctl.h
memdesc.h
memrange.h
mman.h Retire the unimplemented MAP_RENAME and MAP_NORESERVE flags to mmap(2). 2014-10-18 12:28:51 +00:00
module_khelp.h
module.h
mount.h Provide vfs suspension support only for filesystems which need it, take 2014-10-20 18:00:50 +00:00
mouse.h
mpt_ioctl.h
mqueue.h
msg.h
msgbuf.h
mtio.h
mutex.h Garbage collect mtxpool_lockbuilder, the mutex pool historically used 2014-05-02 07:57:40 +00:00
namei.h
nlist_aout.h
osd.h
param.h Bump __FreeBSD_version after SA-14:23, SA-14:24, 2014-11-06 02:41:38 +00:00
pciio.h
pcpu.h
pctrie.h
pioctl.h
pipe.h Ignore the error from pipespace_new when creating a pipe. 2014-05-02 00:52:13 +00:00
pmc.h For Xeon 7500 and 48XX (Nehalem EX and Westmere EX) variants of the 2014-06-04 16:06:38 +00:00
pmckern.h
pmclog.h
poll.h
posix4.h
power.h
priority.h
priv.h Add vxlan interface 2014-10-20 14:42:42 +00:00
proc.h Update the ULE scheduler + thread and kinfo structs to use int for cpuid 2014-10-18 19:36:11 +00:00
procctl.h
procdesc.h Correct typo in comment 2014-07-30 00:28:29 +00:00
procfs.h
protosw.h Remove kernel handling of ICMP_SOURCEQUENCH. 2014-11-10 23:10:01 +00:00
ptio.h
ptrace.h
queue.h
racct.h Convert racct stubs to inline functions. 2014-10-06 02:31:33 +00:00
random.h This is the much-discussed major upgrade to the random(4) device, known to you all as /dev/random. 2014-10-30 21:21:53 +00:00
rangelock.h
rctl.h
reboot.h
refcount.h
regression.h
resource.h
resourcevar.h
rman.h Nuke the never-used RF_TIMESHARE feature, reducing the complexity of the 2014-07-16 22:18:19 +00:00
rmlock.h
rtprio.h
runq.h
rwlock.h
sbuf.h Unbreak the ABI by reverting r268494 until the compat shims are provided 2014-07-28 07:20:22 +00:00
sched.h
sdt.h Define _DTRACE_VERSION in sdt.h rather than setting it manually. This is 2014-09-02 23:43:06 +00:00
select.h Drop explicit unsigned from FD_SETSIZE constant 2014-04-28 13:42:41 +00:00
selinfo.h
sem.h
sema.h
seq.h Fix misplaced read memory barrier in seq. 2014-11-03 13:14:34 +00:00
serial.h
sf_base.h
sf_buf.h Add arch-specific macro SFBUF_PHYS_DMAP(), which should translate the 2014-08-20 08:02:38 +00:00
sf_sync.h
sglist.h
shm.h
sigio.h
signal.h
signalvar.h Manage struct sigacts refcnt with atomics instead of a mutex. 2014-07-14 21:12:59 +00:00
sleepqueue.h Reflect the chanages in sleepqueue.h and subr_sleepqueue.c 2014-09-22 19:14:27 +00:00
slicer.h
smp.h Retire smp_active. It was racey and caused demonstrated problems with 2014-04-26 20:27:54 +00:00
snoop.h
sockbuf.h Improve transmit sending offload, TSO, algorithm in general. 2014-09-22 08:27:27 +00:00
socket.h
socketvar.h Move the SCTP syscalls to netinet with the rest of the SCTP code. The 2014-10-09 15:16:52 +00:00
sockio.h * Add SIOCGI2C driver ioctl used to retrieve i2c info. 2014-08-29 18:02:58 +00:00
sockopt.h
sockstate.h
soundcard.h
stack.h
stat.h include: Remove checks for __BSD_VISIBLE where redundant with __XSI_VISIBLE 2014-05-11 13:48:21 +00:00
statvfs.h
stdatomic.h Rename __wchar_t so it no longer conflicts with __wchar_t from clang 3.4 2014-04-01 14:46:11 +00:00
stddef.h
stdint.h
sun_disklabel.h
sx.h
syscall.h Regenerate after r272823: 2014-10-09 15:19:35 +00:00
syscall.mk Regenerate after r272823: 2014-10-09 15:19:35 +00:00
syscallsubr.h Eliminate unnecessary memory allocation in sys_getgroups and its ibcs2 counterpart. 2014-10-21 23:08:46 +00:00
sysctl.h Add sysctl kern.proc.cwd 2014-11-06 08:12:34 +00:00
sysent.h Fix up module unload for syscall_module_handler consumers. 2014-11-01 22:36:40 +00:00
syslimits.h
syslog.h
sysproto.h Regenerate after r272823: 2014-10-09 15:19:35 +00:00
systm.h Add type qualifier volatile to the base (userspace) address argument 2014-10-31 17:43:21 +00:00
taskqueue.h Add a new taskqueue setup method that takes a cpuid to pin the 2014-05-24 20:37:15 +00:00
terminal.h vt(4): Adjust the cursor position after changing the window size 2014-11-01 17:05:15 +00:00
termios.h
thr.h
tiio.h
time.h Revert r270227. GCC doesn't like the lack of LL suffix, 2014-08-21 09:01:42 +00:00
timeb.h
timeet.h Add support for event timers whose clock frequency can change while running. 2014-04-02 15:56:11 +00:00
timeffc.h
timepps.h
timers.h
times.h
timespec.h
timetc.h
timex.h This is a white-space/comment cleanup commit as a precursor for 2014-09-19 07:44:49 +00:00
tree.h
tty.h
ttycom.h
ttydefaults.h
ttydevsw.h
ttydisc.h
ttyhook.h
ttyqueue.h
turnstile.h
types.h
ucontext.h
ucred.h Extend struct ucred with group table. 2014-11-05 02:08:37 +00:00
uio.h
umtx.h The current POSIX semaphore implementation stores the _has_waiters flag 2014-10-24 20:02:44 +00:00
un.h
unistd.h
unpcb.h Replace 4.4BSD Lite's unix domain socket backpressure hack with a cleaner 2014-03-13 18:42:12 +00:00
user.h Add sysctl kern.proc.cwd 2014-11-06 08:12:34 +00:00
utsname.h
uuid.h
vdso.h
vmem.h
vmmeter.h Rename global cnt to vm_cnt to avoid shadowing. 2014-03-22 10:26:09 +00:00
vnode.h When vnode bypass cannot be performed on the cdev file descriptor for 2014-10-15 13:16:51 +00:00
vtoc.h
wait.h
watchdog.h