a60b99094c
1 - ptrace(2) syscall for native emulation 2 - common ptrace(2) syscall code (shared with compat_netbsd32) 3 - support routines that are shared with PROCFS and/or KTRACE * Add module glue for #1 and #2. Both modules will be built-in to the kernel if "options PTRACE" is included in the config file (this is the default, defined in sys/conf/std). * Mark the ptrace(2) syscall as modular in syscalls.master (generated files will be committed shortly). * Conditionalize all remaining portions of PTRACE code on a new kernel option PTRACE_HOOKS. XXX Instead of PROCFS depending on 'options PTRACE', we should probably just add a procfs attribute to the sys/kern/sys_process.c file's entry in files.kern, and add PROCFS to the "#if defineds" for process_domem(). It's really confusing to have two different ways of requiring this file.
55 lines
1.6 KiB
Plaintext
55 lines
1.6 KiB
Plaintext
# $NetBSD: std,v 1.22 2016/11/02 00:11:59 pgoyette Exp $
|
|
#
|
|
# standard MI 'options'
|
|
#
|
|
# this file is for options which can't be off-by-default for some reasons.
|
|
# "it's commonly used" is NOT a good reason to enable options here.
|
|
|
|
#
|
|
# Always include "kern" attribute (module). Other attributes don't need to
|
|
# depend on "kern".
|
|
#
|
|
select kern
|
|
|
|
# Always include the "vfs" attribute (module). Although all of the
|
|
# ufs/xxx file systems depend on the vfs attribute, it is not required
|
|
# that any file system actually be built-in to the kernel. (At least
|
|
# on some architectures, file system modules can be loaded at boot
|
|
# time.)
|
|
|
|
select vfs
|
|
|
|
select net # XXX Clean up dependency
|
|
|
|
# the following options are on-by-default to keep
|
|
# kernel config file compatibility.
|
|
options VMSWAP # Swap device/file support
|
|
options BUFQ_FCFS # First-come First-serve strategy
|
|
options BUFQ_DISKSORT # Traditional min seek sort strategy
|
|
options RFC2292 # Previous version of Adv. Sockets API for IPv6
|
|
options PTRACE # Include ptrace(2) syscall
|
|
options PTRACE_HOOKS # Include ptrace hooks
|
|
options COREDUMP # allow processes to coredump.
|
|
options AIO # POSIX asynchronous I/O
|
|
options MQUEUE # POSIX message queues
|
|
|
|
#
|
|
# Security model.
|
|
#
|
|
options secmodel_bsd44 # Traditional 4.4BSD security model
|
|
|
|
#
|
|
# Scheduling algorithm
|
|
#
|
|
options SCHED_4BSD
|
|
|
|
pseudo-device cpuctl
|
|
|
|
#
|
|
# Kernel entropy pool and random-number generator pseudodevice.
|
|
# The pseudodevice might stop being "std" when the two are torn
|
|
# apart some day but the entropy pool itself never will (they are
|
|
# presently implemented in the same source file)
|
|
#
|
|
pseudo-device rnd
|