Config-kernel.in 38 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325
  1. # SPDX-License-Identifier: GPL-2.0-only
  2. #
  3. # Copyright (C) 2006-2014 OpenWrt.org
  4. config KERNEL_BUILD_USER
  5. string "Custom Kernel Build User Name"
  6. default "builder" if BUILDBOT
  7. default ""
  8. help
  9. Sets the Kernel build user string, which for example will be returned
  10. by 'uname -a' on running systems.
  11. If not set, uses system user at build time.
  12. config KERNEL_BUILD_DOMAIN
  13. string "Custom Kernel Build Domain Name"
  14. default "buildhost" if BUILDBOT
  15. default ""
  16. help
  17. Sets the Kernel build domain string, which for example will be
  18. returned by 'uname -a' on running systems.
  19. If not set, uses system hostname at build time.
  20. config KERNEL_PRINTK
  21. bool "Enable support for printk"
  22. default y
  23. config KERNEL_SWAP
  24. bool "Support for paging of anonymous memory (swap)"
  25. default y if !SMALL_FLASH
  26. config KERNEL_PROC_STRIPPED
  27. bool "Strip non-essential /proc functionality to reduce code size"
  28. default y if SMALL_FLASH
  29. config KERNEL_DEBUG_FS
  30. bool "Compile the kernel with debug filesystem enabled"
  31. default y
  32. help
  33. debugfs is a virtual file system that kernel developers use to put
  34. debugging files into. Enable this option to be able to read and
  35. write to these files. Many common debugging facilities, such as
  36. ftrace, require the existence of debugfs.
  37. config KERNEL_MIPS_FP_SUPPORT
  38. bool
  39. default y if TARGET_pistachio
  40. config KERNEL_ARM_PMU
  41. bool
  42. depends on (arm || aarch64)
  43. config KERNEL_X86_VSYSCALL_EMULATION
  44. bool "Enable vsyscall emulation"
  45. depends on x86_64
  46. help
  47. This enables emulation of the legacy vsyscall page. Disabling
  48. it is roughly equivalent to booting with vsyscall=none, except
  49. that it will also disable the helpful warning if a program
  50. tries to use a vsyscall. With this option set to N, offending
  51. programs will just segfault, citing addresses of the form
  52. 0xffffffffff600?00.
  53. This option is required by many programs built before 2013, and
  54. care should be used even with newer programs if set to N.
  55. Disabling this option saves about 7K of kernel size and
  56. possibly 4K of additional runtime pagetable memory.
  57. config KERNEL_PERF_EVENTS
  58. bool "Compile the kernel with performance events and counters"
  59. select KERNEL_ARM_PMU if (arm || aarch64)
  60. config KERNEL_PROFILING
  61. bool "Compile the kernel with profiling enabled"
  62. select KERNEL_PERF_EVENTS
  63. help
  64. Enable the extended profiling support mechanisms used by profilers such
  65. as OProfile.
  66. config KERNEL_RPI_AXIPERF
  67. bool "Compile the kernel with RaspberryPi AXI Performance monitors"
  68. default y
  69. depends on KERNEL_PERF_EVENTS && TARGET_bcm27xx
  70. config KERNEL_UBSAN
  71. bool "Compile the kernel with undefined behaviour sanity checker"
  72. help
  73. This option enables undefined behaviour sanity checker
  74. Compile-time instrumentation is used to detect various undefined
  75. behaviours in runtime. Various types of checks may be enabled
  76. via boot parameter ubsan_handle
  77. (see: Documentation/dev-tools/ubsan.rst).
  78. config KERNEL_UBSAN_SANITIZE_ALL
  79. bool "Enable instrumentation for the entire kernel"
  80. depends on KERNEL_UBSAN
  81. default y
  82. help
  83. This option activates instrumentation for the entire kernel.
  84. If you don't enable this option, you have to explicitly specify
  85. UBSAN_SANITIZE := y for the files/directories you want to check for UB.
  86. Enabling this option will get kernel image size increased
  87. significantly.
  88. config KERNEL_UBSAN_ALIGNMENT
  89. bool "Enable checking of pointers alignment"
  90. depends on KERNEL_UBSAN
  91. help
  92. This option enables detection of unaligned memory accesses.
  93. Enabling this option on architectures that support unaligned
  94. accesses may produce a lot of false positives.
  95. config KERNEL_UBSAN_BOUNDS
  96. bool "Perform array index bounds checking"
  97. depends on KERNEL_UBSAN
  98. help
  99. This option enables detection of directly indexed out of bounds array
  100. accesses, where the array size is known at compile time. Note that
  101. this does not protect array overflows via bad calls to the
  102. {str,mem}*cpy() family of functions (that is addressed by
  103. FORTIFY_SOURCE).
  104. config KERNEL_UBSAN_NULL
  105. bool "Enable checking of null pointers"
  106. depends on KERNEL_UBSAN
  107. help
  108. This option enables detection of memory accesses via a
  109. null pointer.
  110. config KERNEL_UBSAN_TRAP
  111. bool "On Sanitizer warnings, abort the running kernel code"
  112. depends on KERNEL_UBSAN
  113. help
  114. Building kernels with Sanitizer features enabled tends to grow the
  115. kernel size by around 5%, due to adding all the debugging text on
  116. failure paths. To avoid this, Sanitizer instrumentation can just
  117. issue a trap. This reduces the kernel size overhead but turns all
  118. warnings (including potentially harmless conditions) into full
  119. exceptions that abort the running kernel code (regardless of context,
  120. locks held, etc), which may destabilize the system. For some system
  121. builders this is an acceptable trade-off.
  122. config KERNEL_KASAN
  123. bool "Compile the kernel with KASan: runtime memory debugger"
  124. select KERNEL_SLUB_DEBUG
  125. depends on (x86_64 || aarch64)
  126. help
  127. Enables kernel address sanitizer - runtime memory debugger,
  128. designed to find out-of-bounds accesses and use-after-free bugs.
  129. This is strictly a debugging feature and it requires a gcc version
  130. of 4.9.2 or later. Detection of out of bounds accesses to stack or
  131. global variables requires gcc 5.0 or later.
  132. This feature consumes about 1/8 of available memory and brings about
  133. ~x3 performance slowdown.
  134. For better error detection enable CONFIG_STACKTRACE.
  135. Currently CONFIG_KASAN doesn't work with CONFIG_DEBUG_SLAB
  136. (the resulting kernel does not boot).
  137. config KERNEL_KASAN_EXTRA
  138. bool "KAsan: extra checks"
  139. depends on KERNEL_KASAN && KERNEL_DEBUG_KERNEL
  140. help
  141. This enables further checks in the kernel address sanitizer, for now
  142. it only includes the address-use-after-scope check that can lead
  143. to excessive kernel stack usage, frame size warnings and longer
  144. compile time.
  145. https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81715 has more
  146. config KERNEL_KASAN_VMALLOC
  147. bool "Back mappings in vmalloc space with real shadow memory"
  148. depends on KERNEL_KASAN
  149. help
  150. By default, the shadow region for vmalloc space is the read-only
  151. zero page. This means that KASAN cannot detect errors involving
  152. vmalloc space.
  153. Enabling this option will hook in to vmap/vmalloc and back those
  154. mappings with real shadow memory allocated on demand. This allows
  155. for KASAN to detect more sorts of errors (and to support vmapped
  156. stacks), but at the cost of higher memory usage.
  157. This option depends on HAVE_ARCH_KASAN_VMALLOC, but we can't
  158. depend on that in here, so it is possible that enabling this
  159. will have no effect.
  160. if KERNEL_KASAN
  161. config KERNEL_KASAN_GENERIC
  162. def_bool y
  163. config KERNEL_KASAN_SW_TAGS
  164. def_bool n
  165. endif
  166. choice
  167. prompt "Instrumentation type"
  168. depends on KERNEL_KASAN
  169. default KERNEL_KASAN_OUTLINE
  170. config KERNEL_KASAN_OUTLINE
  171. bool "Outline instrumentation"
  172. help
  173. Before every memory access compiler insert function call
  174. __asan_load*/__asan_store*. These functions performs check
  175. of shadow memory. This is slower than inline instrumentation,
  176. however it doesn't bloat size of kernel's .text section so
  177. much as inline does.
  178. config KERNEL_KASAN_INLINE
  179. bool "Inline instrumentation"
  180. help
  181. Compiler directly inserts code checking shadow memory before
  182. memory accesses. This is faster than outline (in some workloads
  183. it gives about x2 boost over outline instrumentation), but
  184. make kernel's .text size much bigger.
  185. This requires a gcc version of 5.0 or later.
  186. endchoice
  187. config KERNEL_KCOV
  188. bool "Compile the kernel with code coverage for fuzzing"
  189. select KERNEL_DEBUG_FS
  190. help
  191. KCOV exposes kernel code coverage information in a form suitable
  192. for coverage-guided fuzzing (randomized testing).
  193. If RANDOMIZE_BASE is enabled, PC values will not be stable across
  194. different machines and across reboots. If you need stable PC values,
  195. disable RANDOMIZE_BASE.
  196. For more details, see Documentation/kcov.txt.
  197. config KERNEL_KCOV_ENABLE_COMPARISONS
  198. bool "Enable comparison operands collection by KCOV"
  199. depends on KERNEL_KCOV
  200. help
  201. KCOV also exposes operands of every comparison in the instrumented
  202. code along with operand sizes and PCs of the comparison instructions.
  203. These operands can be used by fuzzing engines to improve the quality
  204. of fuzzing coverage.
  205. config KERNEL_KCOV_INSTRUMENT_ALL
  206. bool "Instrument all code by default"
  207. depends on KERNEL_KCOV
  208. default y if KERNEL_KCOV
  209. help
  210. If you are doing generic system call fuzzing (like e.g. syzkaller),
  211. then you will want to instrument the whole kernel and you should
  212. say y here. If you are doing more targeted fuzzing (like e.g.
  213. filesystem fuzzing with AFL) then you will want to enable coverage
  214. for more specific subsets of files, and should say n here.
  215. config KERNEL_TASKSTATS
  216. bool "Compile the kernel with task resource/io statistics and accounting"
  217. help
  218. Enable the collection and publishing of task/io statistics and
  219. accounting. Enable this option to enable i/o monitoring in system
  220. monitors.
  221. if KERNEL_TASKSTATS
  222. config KERNEL_TASK_DELAY_ACCT
  223. def_bool y
  224. config KERNEL_TASK_IO_ACCOUNTING
  225. def_bool y
  226. config KERNEL_TASK_XACCT
  227. def_bool y
  228. endif
  229. config KERNEL_KALLSYMS
  230. bool "Compile the kernel with symbol table information"
  231. default y if !SMALL_FLASH
  232. help
  233. This will give you more information in stack traces from kernel oopses.
  234. config KERNEL_FTRACE
  235. bool "Compile the kernel with tracing support"
  236. depends on !TARGET_uml
  237. config KERNEL_FTRACE_SYSCALLS
  238. bool "Trace system calls"
  239. depends on KERNEL_FTRACE
  240. config KERNEL_ENABLE_DEFAULT_TRACERS
  241. bool "Trace process context switches and events"
  242. depends on KERNEL_FTRACE
  243. config KERNEL_FUNCTION_TRACER
  244. bool "Function tracer"
  245. depends on KERNEL_FTRACE
  246. config KERNEL_FUNCTION_GRAPH_TRACER
  247. bool "Function graph tracer"
  248. depends on KERNEL_FUNCTION_TRACER
  249. config KERNEL_DYNAMIC_FTRACE
  250. bool "Enable/disable function tracing dynamically"
  251. depends on KERNEL_FUNCTION_TRACER
  252. config KERNEL_FUNCTION_PROFILER
  253. bool "Function profiler"
  254. depends on KERNEL_FUNCTION_TRACER
  255. config KERNEL_IRQSOFF_TRACER
  256. bool "Interrupts-off Latency Tracer"
  257. depends on KERNEL_FTRACE
  258. help
  259. This option measures the time spent in irqs-off critical
  260. sections, with microsecond accuracy.
  261. The default measurement method is a maximum search, which is
  262. disabled by default and can be runtime (re-)started
  263. via:
  264. echo 0 > /sys/kernel/debug/tracing/tracing_max_latency
  265. (Note that kernel size and overhead increase with this option
  266. enabled. This option and the preempt-off timing option can be
  267. used together or separately.)
  268. config KERNEL_PREEMPT_TRACER
  269. bool "Preemption-off Latency Tracer"
  270. depends on KERNEL_FTRACE
  271. help
  272. This option measures the time spent in preemption-off critical
  273. sections, with microsecond accuracy.
  274. The default measurement method is a maximum search, which is
  275. disabled by default and can be runtime (re-)started
  276. via:
  277. echo 0 > /sys/kernel/debug/tracing/tracing_max_latency
  278. (Note that kernel size and overhead increase with this option
  279. enabled. This option and the irqs-off timing option can be
  280. used together or separately.)
  281. config KERNEL_HIST_TRIGGERS
  282. bool "Histogram triggers"
  283. depends on KERNEL_FTRACE
  284. help
  285. Hist triggers allow one or more arbitrary trace event fields to be
  286. aggregated into hash tables and dumped to stdout by reading a
  287. debugfs/tracefs file. They're useful for gathering quick and dirty
  288. (though precise) summaries of event activity as an initial guide for
  289. further investigation using more advanced tools.
  290. Inter-event tracing of quantities such as latencies is also
  291. supported using hist triggers under this option.
  292. config KERNEL_DEBUG_KERNEL
  293. bool
  294. config KERNEL_DEBUG_INFO
  295. bool "Compile the kernel with debug information"
  296. default y if !SMALL_FLASH
  297. select KERNEL_DEBUG_KERNEL
  298. help
  299. This will compile your kernel and modules with debug information.
  300. config KERNEL_DEBUG_INFO_BTF
  301. bool "Enable additional BTF type information"
  302. depends on !HOST_OS_MACOS
  303. depends on KERNEL_DEBUG_INFO && !KERNEL_DEBUG_INFO_REDUCED
  304. select DWARVES
  305. help
  306. Generate BPF Type Format (BTF) information from DWARF debug info.
  307. Turning this on expects presence of pahole tool, which will convert
  308. DWARF type info into equivalent deduplicated BTF type info.
  309. Required to run BPF CO-RE applications.
  310. config KERNEL_DEBUG_INFO_REDUCED
  311. bool "Reduce debugging information"
  312. default y
  313. depends on KERNEL_DEBUG_INFO
  314. help
  315. If you say Y here gcc is instructed to generate less debugging
  316. information for structure types. This means that tools that
  317. need full debugging information (like kgdb or systemtap) won't
  318. be happy. But if you merely need debugging information to
  319. resolve line numbers there is no loss. Advantage is that
  320. build directory object sizes shrink dramatically over a full
  321. DEBUG_INFO build and compile times are reduced too.
  322. Only works with newer gcc versions.
  323. # KERNEL_DEBUG_LL symbols must have the default value set as otherwise
  324. # KConfig wont evaluate them unless KERNEL_EARLY_PRINTK is selected
  325. # which means that buildroot wont override the DEBUG_LL symbols in target
  326. # kernel configurations and lead to devices that dont have working console
  327. config KERNEL_DEBUG_LL_UART_NONE
  328. bool
  329. default n
  330. depends on arm
  331. config KERNEL_DEBUG_LL
  332. bool
  333. default n
  334. depends on arm
  335. select KERNEL_DEBUG_LL_UART_NONE
  336. help
  337. ARM low level debugging.
  338. config KERNEL_DEBUG_VIRTUAL
  339. bool "Compile the kernel with VM translations debugging"
  340. select KERNEL_DEBUG_KERNEL
  341. help
  342. Enable checks sanity checks to catch invalid uses of
  343. virt_to_phys()/phys_to_virt() against the non-linear address space.
  344. config KERNEL_DYNAMIC_DEBUG
  345. bool "Compile the kernel with dynamic printk"
  346. select KERNEL_DEBUG_FS
  347. help
  348. Compiles debug level messages into the kernel, which would not
  349. otherwise be available at runtime. These messages can then be
  350. enabled/disabled based on various levels of scope - per source file,
  351. function, module, format string, and line number. This mechanism
  352. implicitly compiles in all pr_debug() and dev_dbg() calls, which
  353. enlarges the kernel text size by about 2%.
  354. config KERNEL_EARLY_PRINTK
  355. bool "Compile the kernel with early printk"
  356. default y if TARGET_bcm53xx
  357. depends on arm
  358. select KERNEL_DEBUG_KERNEL
  359. select KERNEL_DEBUG_LL if arm
  360. help
  361. Compile the kernel with early printk support. This is only useful for
  362. debugging purposes to send messages over the serial console in early boot.
  363. Enable this to debug early boot problems.
  364. config KERNEL_KPROBES
  365. bool "Compile the kernel with kprobes support"
  366. select KERNEL_FTRACE
  367. select KERNEL_PERF_EVENTS
  368. help
  369. Compiles the kernel with KPROBES support, which allows you to trap
  370. at almost any kernel address and execute a callback function.
  371. register_kprobe() establishes a probepoint and specifies the
  372. callback. Kprobes is useful for kernel debugging, non-intrusive
  373. instrumentation and testing.
  374. If in doubt, say "N".
  375. config KERNEL_KPROBE_EVENTS
  376. bool
  377. default y if KERNEL_KPROBES
  378. config KERNEL_BPF_EVENTS
  379. bool "Compile the kernel with BPF event support"
  380. select KERNEL_KPROBES
  381. help
  382. Allows to attach BPF programs to kprobe, uprobe and tracepoint events.
  383. This is required to use BPF maps of type BPF_MAP_TYPE_PERF_EVENT_ARRAY
  384. for sending data from BPF programs to user-space for post-processing
  385. or logging.
  386. config KERNEL_BPF_KPROBE_OVERRIDE
  387. bool
  388. depends on KERNEL_KPROBES
  389. default n
  390. config KERNEL_AIO
  391. bool "Compile the kernel with asynchronous IO support"
  392. default y if !SMALL_FLASH
  393. config KERNEL_IO_URING
  394. bool "Compile the kernel with io_uring support"
  395. depends on !SMALL_FLASH
  396. default y if (x86_64 || aarch64)
  397. config KERNEL_FHANDLE
  398. bool "Compile the kernel with support for fhandle syscalls"
  399. default y if !SMALL_FLASH
  400. config KERNEL_FANOTIFY
  401. bool "Compile the kernel with modern file notification support"
  402. default y if !SMALL_FLASH
  403. config KERNEL_BLK_DEV_BSG
  404. bool "Compile the kernel with SCSI generic v4 support for any block device"
  405. config KERNEL_TRANSPARENT_HUGEPAGE
  406. bool
  407. choice
  408. prompt "Transparent Hugepage Support sysfs defaults"
  409. depends on KERNEL_TRANSPARENT_HUGEPAGE
  410. default KERNEL_TRANSPARENT_HUGEPAGE_ALWAYS
  411. config KERNEL_TRANSPARENT_HUGEPAGE_ALWAYS
  412. bool "always"
  413. config KERNEL_TRANSPARENT_HUGEPAGE_MADVISE
  414. bool "madvise"
  415. endchoice
  416. config KERNEL_HUGETLBFS
  417. bool
  418. config KERNEL_HUGETLB_PAGE
  419. bool "Compile the kernel with HugeTLB support"
  420. select KERNEL_TRANSPARENT_HUGEPAGE
  421. select KERNEL_HUGETLBFS
  422. config KERNEL_MAGIC_SYSRQ
  423. bool "Compile the kernel with SysRq support"
  424. default y
  425. config KERNEL_DEBUG_PINCTRL
  426. bool "Compile the kernel with pinctrl debugging"
  427. select KERNEL_DEBUG_KERNEL
  428. config KERNEL_DEBUG_GPIO
  429. bool "Compile the kernel with gpio debugging"
  430. select KERNEL_DEBUG_KERNEL
  431. config KERNEL_COREDUMP
  432. bool
  433. config KERNEL_ELF_CORE
  434. bool "Enable process core dump support"
  435. select KERNEL_COREDUMP
  436. default y if !SMALL_FLASH
  437. config KERNEL_PROVE_LOCKING
  438. bool "Enable kernel lock checking"
  439. select KERNEL_DEBUG_KERNEL
  440. config KERNEL_SOFTLOCKUP_DETECTOR
  441. bool "Compile the kernel with detect Soft Lockups"
  442. depends on KERNEL_DEBUG_KERNEL
  443. help
  444. Say Y here to enable the kernel to act as a watchdog to detect
  445. soft lockups.
  446. Softlockups are bugs that cause the kernel to loop in kernel
  447. mode for more than 20 seconds, without giving other tasks a
  448. chance to run. The current stack trace is displayed upon
  449. detection and the system will stay locked up.
  450. config KERNEL_HARDLOCKUP_DETECTOR
  451. bool "Compile the kernel with detect Hard Lockups"
  452. depends on KERNEL_DEBUG_KERNEL
  453. help
  454. Say Y here to enable the kernel to act as a watchdog to detect
  455. hard lockups.
  456. Hardlockups are bugs that cause the CPU to loop in kernel mode
  457. for more than 10 seconds, without letting other interrupts have a
  458. chance to run. The current stack trace is displayed upon detection
  459. and the system will stay locked up.
  460. config KERNEL_DETECT_HUNG_TASK
  461. bool "Compile the kernel with detect Hung Tasks"
  462. depends on KERNEL_DEBUG_KERNEL
  463. default KERNEL_SOFTLOCKUP_DETECTOR
  464. help
  465. Say Y here to enable the kernel to detect "hung tasks",
  466. which are bugs that cause the task to be stuck in
  467. uninterruptible "D" state indefinitely.
  468. When a hung task is detected, the kernel will print the
  469. current stack trace (which you should report), but the
  470. task will stay in uninterruptible state. If lockdep is
  471. enabled then all held locks will also be reported. This
  472. feature has negligible overhead.
  473. config KERNEL_WQ_WATCHDOG
  474. bool "Compile the kernel with detect Workqueue Stalls"
  475. depends on KERNEL_DEBUG_KERNEL
  476. help
  477. Say Y here to enable stall detection on workqueues. If a
  478. worker pool doesn't make forward progress on a pending work
  479. item for over a given amount of time, 30s by default, a
  480. warning message is printed along with dump of workqueue
  481. state. This can be configured through kernel parameter
  482. "workqueue.watchdog_thresh" and its sysfs counterpart.
  483. config KERNEL_DEBUG_ATOMIC_SLEEP
  484. bool "Compile the kernel with sleep inside atomic section checking"
  485. depends on KERNEL_DEBUG_KERNEL
  486. help
  487. If you say Y here, various routines which may sleep will become very
  488. noisy if they are called inside atomic sections: when a spinlock is
  489. held, inside an rcu read side critical section, inside preempt disabled
  490. sections, inside an interrupt, etc...
  491. config KERNEL_DEBUG_VM
  492. bool "Compile the kernel with debug VM"
  493. depends on KERNEL_DEBUG_KERNEL
  494. help
  495. Enable this to turn on extended checks in the virtual-memory system
  496. that may impact performance.
  497. If unsure, say N.
  498. config KERNEL_PRINTK_TIME
  499. bool "Enable printk timestamps"
  500. default y
  501. config KERNEL_SLUB_DEBUG
  502. bool
  503. config KERNEL_SLUB_DEBUG_ON
  504. bool
  505. config KERNEL_SLABINFO
  506. select KERNEL_SLUB_DEBUG
  507. select KERNEL_SLUB_DEBUG_ON
  508. bool "Enable /proc slab debug info"
  509. config KERNEL_PROC_PAGE_MONITOR
  510. bool "Enable /proc page monitoring"
  511. config KERNEL_RELAY
  512. bool
  513. config KERNEL_KEXEC
  514. bool "Enable kexec support"
  515. config KERNEL_PROC_VMCORE
  516. bool
  517. config KERNEL_PROC_KCORE
  518. bool
  519. config KERNEL_CRASH_DUMP
  520. depends on i386 || x86_64 || arm || armeb
  521. select KERNEL_KEXEC
  522. select KERNEL_PROC_VMCORE
  523. select KERNEL_PROC_KCORE
  524. bool "Enable support for kexec crashdump"
  525. default y
  526. config USE_RFKILL
  527. bool "Enable rfkill support"
  528. default RFKILL_SUPPORT
  529. config USE_SPARSE
  530. bool "Enable sparse check during kernel build"
  531. config KERNEL_DEVTMPFS
  532. bool "Compile the kernel with device tmpfs enabled"
  533. help
  534. devtmpfs is a simple, kernel-managed /dev filesystem. The kernel creates
  535. devices nodes for all registered devices to simplify boot, but leaves more
  536. complex tasks to userspace (e.g. udev).
  537. if KERNEL_DEVTMPFS
  538. config KERNEL_DEVTMPFS_MOUNT
  539. bool "Automatically mount devtmpfs after root filesystem is mounted"
  540. endif
  541. config KERNEL_KEYS
  542. bool "Enable kernel access key retention support"
  543. default !SMALL_FLASH
  544. config KERNEL_PERSISTENT_KEYRINGS
  545. bool "Enable kernel persistent keyrings"
  546. depends on KERNEL_KEYS
  547. config KERNEL_KEYS_REQUEST_CACHE
  548. bool "Enable temporary caching of the last request_key() result"
  549. depends on KERNEL_KEYS
  550. config KERNEL_BIG_KEYS
  551. bool "Enable large payload keys on kernel keyrings"
  552. depends on KERNEL_KEYS
  553. #
  554. # CGROUP support symbols
  555. #
  556. config KERNEL_CGROUPS
  557. bool "Enable kernel cgroups"
  558. default y if !SMALL_FLASH
  559. if KERNEL_CGROUPS
  560. config KERNEL_CGROUP_DEBUG
  561. bool "Example debug cgroup subsystem"
  562. help
  563. This option enables a simple cgroup subsystem that
  564. exports useful debugging information about the cgroups
  565. framework.
  566. config KERNEL_FREEZER
  567. bool
  568. config KERNEL_CGROUP_FREEZER
  569. bool "legacy Freezer cgroup subsystem"
  570. select KERNEL_FREEZER
  571. help
  572. Provides a way to freeze and unfreeze all tasks in a
  573. cgroup.
  574. (legacy cgroup1-only controller, in cgroup2 freezer
  575. is integrated in the Memory controller)
  576. config KERNEL_CGROUP_DEVICE
  577. bool "legacy Device controller for cgroups"
  578. help
  579. Provides a cgroup implementing whitelists for devices which
  580. a process in the cgroup can mknod or open.
  581. (legacy cgroup1-only controller)
  582. config KERNEL_CGROUP_HUGETLB
  583. bool "HugeTLB controller"
  584. select KERNEL_HUGETLB_PAGE
  585. config KERNEL_CGROUP_PIDS
  586. bool "PIDs cgroup subsystem"
  587. default y
  588. help
  589. Provides enforcement of process number limits in the scope of a
  590. cgroup.
  591. config KERNEL_CGROUP_RDMA
  592. bool "RDMA controller for cgroups"
  593. default y
  594. config KERNEL_CGROUP_BPF
  595. bool "Support for eBPF programs attached to cgroups"
  596. default y
  597. config KERNEL_CPUSETS
  598. bool "Cpuset support"
  599. default y
  600. help
  601. This option will let you create and manage CPUSETs which
  602. allow dynamically partitioning a system into sets of CPUs and
  603. Memory Nodes and assigning tasks to run only within those sets.
  604. This is primarily useful on large SMP or NUMA systems.
  605. config KERNEL_PROC_PID_CPUSET
  606. bool "Include legacy /proc/<pid>/cpuset file"
  607. depends on KERNEL_CPUSETS
  608. config KERNEL_CGROUP_CPUACCT
  609. bool "Simple CPU accounting cgroup subsystem"
  610. default y
  611. help
  612. Provides a simple Resource Controller for monitoring the
  613. total CPU consumed by the tasks in a cgroup.
  614. config KERNEL_RESOURCE_COUNTERS
  615. bool "Resource counters"
  616. default y
  617. help
  618. This option enables controller independent resource accounting
  619. infrastructure that works with cgroups.
  620. config KERNEL_MM_OWNER
  621. bool
  622. default y if KERNEL_MEMCG
  623. config KERNEL_MEMCG
  624. bool "Memory Resource Controller for Control Groups"
  625. default y
  626. select KERNEL_FREEZER
  627. depends on KERNEL_RESOURCE_COUNTERS
  628. help
  629. Provides a memory resource controller that manages both anonymous
  630. memory and page cache. (See Documentation/cgroups/memory.txt)
  631. Note that setting this option increases fixed memory overhead
  632. associated with each page of memory in the system. By this,
  633. 20(40)bytes/PAGE_SIZE on 32(64)bit system will be occupied by memory
  634. usage tracking struct at boot. Total amount of this is printed out
  635. at boot.
  636. Only enable when you're ok with these tradeoffs and really
  637. sure you need the memory resource controller. Even when you enable
  638. this, you can set "cgroup_disable=memory" at your boot option to
  639. disable memory resource controller and you can avoid overheads
  640. (but lose benefits of memory resource controller).
  641. This config option also selects MM_OWNER config option, which
  642. could in turn add some fork/exit overhead.
  643. config KERNEL_MEMCG_SWAP
  644. bool "Memory Resource Controller Swap Extension"
  645. default y
  646. depends on KERNEL_MEMCG
  647. help
  648. Add swap management feature to memory resource controller. When you
  649. enable this, you can limit mem+swap usage per cgroup. In other words,
  650. when you disable this, memory resource controller has no cares to
  651. usage of swap...a process can exhaust all of the swap. This extension
  652. is useful when you want to avoid exhaustion swap but this itself
  653. adds more overheads and consumes memory for remembering information.
  654. Especially if you use 32bit system or small memory system, please
  655. be careful about enabling this. When memory resource controller
  656. is disabled by boot option, this will be automatically disabled and
  657. there will be no overhead from this. Even when you set this config=y,
  658. if boot option "swapaccount=0" is set, swap will not be accounted.
  659. Now, memory usage of swap_cgroup is 2 bytes per entry. If swap page
  660. size is 4096bytes, 512k per 1Gbytes of swap.
  661. config KERNEL_MEMCG_SWAP_ENABLED
  662. bool "Memory Resource Controller Swap Extension enabled by default"
  663. depends on KERNEL_MEMCG_SWAP
  664. help
  665. Memory Resource Controller Swap Extension comes with its price in
  666. a bigger memory consumption. General purpose distribution kernels
  667. which want to enable the feature but keep it disabled by default
  668. and let the user enable it by swapaccount boot command line
  669. parameter should have this option unselected.
  670. Those who want to have the feature enabled by default should
  671. select this option (if, for some reason, they need to disable it,
  672. then swapaccount=0 does the trick).
  673. config KERNEL_MEMCG_KMEM
  674. bool "Memory Resource Controller Kernel Memory accounting (EXPERIMENTAL)"
  675. default y
  676. depends on KERNEL_MEMCG
  677. help
  678. The Kernel Memory extension for Memory Resource Controller can limit
  679. the amount of memory used by kernel objects in the system. Those are
  680. fundamentally different from the entities handled by the standard
  681. Memory Controller, which are page-based, and can be swapped. Users of
  682. the kmem extension can use it to guarantee that no group of processes
  683. will ever exhaust kernel resources alone.
  684. config KERNEL_CGROUP_PERF
  685. bool "Enable perf_event per-cpu per-container group (cgroup) monitoring"
  686. select KERNEL_PERF_EVENTS
  687. help
  688. This option extends the per-cpu mode to restrict monitoring to
  689. threads which belong to the cgroup specified and run on the
  690. designated cpu.
  691. menuconfig KERNEL_CGROUP_SCHED
  692. bool "Group CPU scheduler"
  693. default y
  694. help
  695. This feature lets CPU scheduler recognize task groups and control CPU
  696. bandwidth allocation to such task groups. It uses cgroups to group
  697. tasks.
  698. if KERNEL_CGROUP_SCHED
  699. config KERNEL_FAIR_GROUP_SCHED
  700. bool "Group scheduling for SCHED_OTHER"
  701. default y
  702. config KERNEL_CFS_BANDWIDTH
  703. bool "CPU bandwidth provisioning for FAIR_GROUP_SCHED"
  704. default y
  705. depends on KERNEL_FAIR_GROUP_SCHED
  706. help
  707. This option allows users to define CPU bandwidth rates (limits) for
  708. tasks running within the fair group scheduler. Groups with no limit
  709. set are considered to be unconstrained and will run with no
  710. restriction.
  711. See tip/Documentation/scheduler/sched-bwc.txt for more information.
  712. config KERNEL_RT_GROUP_SCHED
  713. bool "Group scheduling for SCHED_RR/FIFO"
  714. default y
  715. help
  716. This feature lets you explicitly allocate real CPU bandwidth
  717. to task groups. If enabled, it will also make it impossible to
  718. schedule realtime tasks for non-root users until you allocate
  719. realtime bandwidth for them.
  720. endif
  721. config KERNEL_BLK_CGROUP
  722. bool "Block IO controller"
  723. default y
  724. help
  725. Generic block IO controller cgroup interface. This is the common
  726. cgroup interface which should be used by various IO controlling
  727. policies.
  728. Currently, CFQ IO scheduler uses it to recognize task groups and
  729. control disk bandwidth allocation (proportional time slice allocation)
  730. to such task groups. It is also used by bio throttling logic in
  731. block layer to implement upper limit in IO rates on a device.
  732. This option only enables generic Block IO controller infrastructure.
  733. One needs to also enable actual IO controlling logic/policy. For
  734. enabling proportional weight division of disk bandwidth in CFQ, set
  735. CONFIG_CFQ_GROUP_IOSCHED=y; for enabling throttling policy, set
  736. CONFIG_BLK_DEV_THROTTLING=y.
  737. if KERNEL_BLK_CGROUP
  738. config KERNEL_CFQ_GROUP_IOSCHED
  739. bool "Proportional weight of disk bandwidth in CFQ"
  740. config KERNEL_BLK_DEV_THROTTLING
  741. bool "Enable throttling policy"
  742. default y
  743. config KERNEL_BLK_DEV_THROTTLING_LOW
  744. bool "Block throttling .low limit interface support (EXPERIMENTAL)"
  745. depends on KERNEL_BLK_DEV_THROTTLING
  746. endif
  747. config KERNEL_DEBUG_BLK_CGROUP
  748. bool "Enable Block IO controller debugging"
  749. depends on KERNEL_BLK_CGROUP
  750. help
  751. Enable some debugging help. Currently it exports additional stat
  752. files in a cgroup which can be useful for debugging.
  753. config KERNEL_NET_CLS_CGROUP
  754. bool "legacy Control Group Classifier"
  755. config KERNEL_CGROUP_NET_CLASSID
  756. bool "legacy Network classid cgroup"
  757. config KERNEL_CGROUP_NET_PRIO
  758. bool "legacy Network priority cgroup"
  759. endif
  760. #
  761. # Namespace support symbols
  762. #
  763. config KERNEL_NAMESPACES
  764. bool "Enable kernel namespaces"
  765. default y if !SMALL_FLASH
  766. if KERNEL_NAMESPACES
  767. config KERNEL_UTS_NS
  768. bool "UTS namespace"
  769. default y
  770. help
  771. In this namespace, tasks see different info provided
  772. with the uname() system call.
  773. config KERNEL_IPC_NS
  774. bool "IPC namespace"
  775. default y
  776. help
  777. In this namespace, tasks work with IPC ids which correspond to
  778. different IPC objects in different namespaces.
  779. config KERNEL_USER_NS
  780. bool "User namespace (EXPERIMENTAL)"
  781. default y
  782. help
  783. This allows containers, i.e. vservers, to use user namespaces
  784. to provide different user info for different servers.
  785. config KERNEL_PID_NS
  786. bool "PID Namespaces"
  787. default y
  788. help
  789. Support process id namespaces. This allows having multiple
  790. processes with the same pid as long as they are in different
  791. pid namespaces. This is a building block of containers.
  792. config KERNEL_NET_NS
  793. bool "Network namespace"
  794. default y
  795. help
  796. Allow user space to create what appear to be multiple instances
  797. of the network stack.
  798. endif
  799. config KERNEL_DEVPTS_MULTIPLE_INSTANCES
  800. bool "Support multiple instances of devpts"
  801. default y if !SMALL_FLASH
  802. help
  803. Enable support for multiple instances of devpts filesystem.
  804. If you want to have isolated PTY namespaces (eg: in containers),
  805. say Y here. Otherwise, say N. If enabled, each mount of devpts
  806. filesystem with the '-o newinstance' option will create an
  807. independent PTY namespace.
  808. config KERNEL_POSIX_MQUEUE
  809. bool "POSIX Message Queues"
  810. default y if !SMALL_FLASH
  811. help
  812. POSIX variant of message queues is a part of IPC. In POSIX message
  813. queues every message has a priority which decides about succession
  814. of receiving it by a process. If you want to compile and run
  815. programs written e.g. for Solaris with use of its POSIX message
  816. queues (functions mq_*) say Y here.
  817. POSIX message queues are visible as a filesystem called 'mqueue'
  818. and can be mounted somewhere if you want to do filesystem
  819. operations on message queues.
  820. config KERNEL_SECCOMP_FILTER
  821. bool
  822. default y if !SMALL_FLASH
  823. config KERNEL_SECCOMP
  824. bool "Enable seccomp support"
  825. depends on !(TARGET_uml)
  826. select KERNEL_SECCOMP_FILTER
  827. default y if !SMALL_FLASH
  828. help
  829. Build kernel with support for seccomp.
  830. #
  831. # IPv4 configuration
  832. #
  833. config KERNEL_IP_MROUTE
  834. bool "Enable IPv4 multicast routing"
  835. default y
  836. help
  837. Multicast routing requires a multicast routing daemon in
  838. addition to kernel support.
  839. if KERNEL_IP_MROUTE
  840. config KERNEL_IP_MROUTE_MULTIPLE_TABLES
  841. def_bool y
  842. config KERNEL_IP_PIMSM_V1
  843. def_bool y
  844. config KERNEL_IP_PIMSM_V2
  845. def_bool y
  846. endif
  847. #
  848. # IPv6 configuration
  849. #
  850. config KERNEL_IPV6
  851. def_bool IPV6
  852. if KERNEL_IPV6
  853. config KERNEL_IPV6_MULTIPLE_TABLES
  854. def_bool y
  855. config KERNEL_IPV6_SUBTREES
  856. def_bool y
  857. config KERNEL_IPV6_MROUTE
  858. bool "Enable IPv6 multicast routing"
  859. default y
  860. help
  861. Multicast routing requires a multicast routing daemon in
  862. addition to kernel support.
  863. if KERNEL_IPV6_MROUTE
  864. config KERNEL_IPV6_MROUTE_MULTIPLE_TABLES
  865. def_bool y
  866. config KERNEL_IPV6_PIMSM_V2
  867. def_bool y
  868. endif
  869. config KERNEL_IPV6_SEG6_LWTUNNEL
  870. bool "Enable support for lightweight tunnels"
  871. default y if !SMALL_FLASH
  872. help
  873. Using lwtunnel (needed for IPv6 segment routing) requires ip-full package.
  874. config KERNEL_LWTUNNEL_BPF
  875. def_bool n
  876. endif
  877. #
  878. # Miscellaneous network configuration
  879. #
  880. config KERNEL_NET_L3_MASTER_DEV
  881. bool "L3 Master device support"
  882. help
  883. This module provides glue between core networking code and device
  884. drivers to support L3 master devices like VRF.
  885. config KERNEL_WIRELESS_EXT
  886. def_bool n
  887. config KERNEL_WEXT_CORE
  888. def_bool KERNEL_WIRELESS_EXT
  889. config KERNEL_WEXT_PRIV
  890. def_bool KERNEL_WIRELESS_EXT
  891. config KERNEL_WEXT_PROC
  892. def_bool KERNEL_WIRELESS_EXT
  893. config KERNEL_WEXT_SPY
  894. def_bool KERNEL_WIRELESS_EXT
  895. config KERNEL_PAGE_POOL
  896. def_bool n
  897. config KERNEL_PAGE_POOL_STATS
  898. bool "Page pool stats support"
  899. depends on KERNEL_PAGE_POOL
  900. depends on !LINUX_5_10
  901. #
  902. # NFS related symbols
  903. #
  904. config KERNEL_IP_PNP
  905. bool "Compile the kernel with rootfs on NFS"
  906. help
  907. If you want to make your kernel boot off a NFS server as root
  908. filesystem, select Y here.
  909. if KERNEL_IP_PNP
  910. config KERNEL_IP_PNP_DHCP
  911. def_bool y
  912. config KERNEL_IP_PNP_BOOTP
  913. def_bool n
  914. config KERNEL_IP_PNP_RARP
  915. def_bool n
  916. config KERNEL_NFS_FS
  917. def_bool y
  918. config KERNEL_NFS_V2
  919. def_bool y
  920. config KERNEL_NFS_V3
  921. def_bool y
  922. config KERNEL_ROOT_NFS
  923. def_bool y
  924. endif
  925. menu "Filesystem ACL and attr support options"
  926. config USE_FS_ACL_ATTR
  927. bool "Use filesystem ACL and attr support by default"
  928. help
  929. Make using ACLs (e.g. POSIX ACL, NFSv4 ACL) the default
  930. for kernel and packages, except tmpfs, flash filesystems,
  931. and old NFS. Also enable userspace extended attribute support
  932. by default. (OpenWrt already has an expection it will be
  933. present in the kernel).
  934. config KERNEL_FS_POSIX_ACL
  935. bool "Enable POSIX ACL support"
  936. default y if USE_FS_ACL_ATTR
  937. config KERNEL_BTRFS_FS_POSIX_ACL
  938. bool "Enable POSIX ACL for BtrFS Filesystems"
  939. select KERNEL_FS_POSIX_ACL
  940. default y if USE_FS_ACL_ATTR
  941. config KERNEL_EXT4_FS_POSIX_ACL
  942. bool "Enable POSIX ACL for Ext4 Filesystems"
  943. select KERNEL_FS_POSIX_ACL
  944. default y if USE_FS_ACL_ATTR
  945. config KERNEL_F2FS_FS_POSIX_ACL
  946. bool "Enable POSIX ACL for F2FS Filesystems"
  947. select KERNEL_FS_POSIX_ACL
  948. config KERNEL_JFFS2_FS_POSIX_ACL
  949. bool "Enable POSIX ACL for JFFS2 Filesystems"
  950. select KERNEL_FS_POSIX_ACL
  951. config KERNEL_TMPFS_POSIX_ACL
  952. bool "Enable POSIX ACL for TMPFS Filesystems"
  953. select KERNEL_FS_POSIX_ACL
  954. config KERNEL_CIFS_ACL
  955. bool "Enable CIFS ACLs"
  956. select KERNEL_FS_POSIX_ACL
  957. default y if USE_FS_ACL_ATTR
  958. config KERNEL_HFS_FS_POSIX_ACL
  959. bool "Enable POSIX ACL for HFS Filesystems"
  960. select KERNEL_FS_POSIX_ACL
  961. default y if USE_FS_ACL_ATTR
  962. config KERNEL_HFSPLUS_FS_POSIX_ACL
  963. bool "Enable POSIX ACL for HFS+ Filesystems"
  964. select KERNEL_FS_POSIX_ACL
  965. default y if USE_FS_ACL_ATTR
  966. config KERNEL_NFS_ACL_SUPPORT
  967. bool "Enable ACLs for NFS"
  968. default y if USE_FS_ACL_ATTR
  969. config KERNEL_NFS_V3_ACL_SUPPORT
  970. bool "Enable ACLs for NFSv3"
  971. config KERNEL_NFSD_V2_ACL_SUPPORT
  972. bool "Enable ACLs for NFSDv2"
  973. config KERNEL_NFSD_V3_ACL_SUPPORT
  974. bool "Enable ACLs for NFSDv3"
  975. config KERNEL_REISER_FS_POSIX_ACL
  976. bool "Enable POSIX ACLs for ReiserFS"
  977. select KERNEL_FS_POSIX_ACL
  978. default y if USE_FS_ACL_ATTR
  979. config KERNEL_XFS_POSIX_ACL
  980. bool "Enable POSIX ACLs for XFS"
  981. select KERNEL_FS_POSIX_ACL
  982. default y if USE_FS_ACL_ATTR
  983. config KERNEL_JFS_POSIX_ACL
  984. bool "Enable POSIX ACLs for JFS"
  985. select KERNEL_FS_POSIX_ACL
  986. default y if USE_FS_ACL_ATTR
  987. endmenu
  988. config KERNEL_DEVMEM
  989. bool "/dev/mem virtual device support"
  990. help
  991. Say Y here if you want to support the /dev/mem device.
  992. The /dev/mem device is used to access areas of physical
  993. memory.
  994. config KERNEL_DEVKMEM
  995. bool "/dev/kmem virtual device support"
  996. help
  997. Say Y here if you want to support the /dev/kmem device. The
  998. /dev/kmem device is rarely used, but can be used for certain
  999. kind of kernel debugging operations.
  1000. config KERNEL_SQUASHFS_FRAGMENT_CACHE_SIZE
  1001. int "Number of squashfs fragments cached"
  1002. default 2 if (SMALL_FLASH && !LOW_MEMORY_FOOTPRINT)
  1003. default 3
  1004. config KERNEL_SQUASHFS_XATTR
  1005. bool "Squashfs XATTR support"
  1006. #
  1007. # compile optimization setting
  1008. #
  1009. choice
  1010. prompt "Compiler optimization level"
  1011. default KERNEL_CC_OPTIMIZE_FOR_SIZE if SMALL_FLASH
  1012. config KERNEL_CC_OPTIMIZE_FOR_PERFORMANCE
  1013. bool "Optimize for performance"
  1014. help
  1015. This is the default optimization level for the kernel, building
  1016. with the "-O2" compiler flag for best performance and most
  1017. helpful compile-time warnings.
  1018. config KERNEL_CC_OPTIMIZE_FOR_SIZE
  1019. bool "Optimize for size"
  1020. help
  1021. Enabling this option will pass "-Os" instead of "-O2" to
  1022. your compiler resulting in a smaller kernel.
  1023. endchoice
  1024. config KERNEL_AUDIT
  1025. bool "Auditing support"
  1026. config KERNEL_SECURITY
  1027. bool "Enable different security models"
  1028. config KERNEL_SECURITY_NETWORK
  1029. bool "Socket and Networking Security Hooks"
  1030. select KERNEL_SECURITY
  1031. config KERNEL_SECURITY_SELINUX
  1032. bool "NSA SELinux Support"
  1033. select KERNEL_SECURITY_NETWORK
  1034. select KERNEL_AUDIT
  1035. config KERNEL_SECURITY_SELINUX_BOOTPARAM
  1036. bool "NSA SELinux boot parameter"
  1037. depends on KERNEL_SECURITY_SELINUX
  1038. default y
  1039. config KERNEL_SECURITY_SELINUX_DISABLE
  1040. bool "NSA SELinux runtime disable"
  1041. depends on KERNEL_SECURITY_SELINUX
  1042. config KERNEL_SECURITY_SELINUX_DEVELOP
  1043. bool "NSA SELinux Development Support"
  1044. depends on KERNEL_SECURITY_SELINUX
  1045. default y
  1046. config KERNEL_SECURITY_SELINUX_SIDTAB_HASH_BITS
  1047. int
  1048. depends on KERNEL_SECURITY_SELINUX
  1049. default 9
  1050. config KERNEL_SECURITY_SELINUX_SID2STR_CACHE_SIZE
  1051. int
  1052. depends on KERNEL_SECURITY_SELINUX
  1053. default 256
  1054. config KERNEL_LSM
  1055. string
  1056. default "lockdown,yama,loadpin,safesetid,integrity,selinux"
  1057. depends on KERNEL_SECURITY_SELINUX
  1058. config KERNEL_EXT4_FS_SECURITY
  1059. bool "Ext4 Security Labels"
  1060. config KERNEL_F2FS_FS_SECURITY
  1061. bool "F2FS Security Labels"
  1062. config KERNEL_UBIFS_FS_SECURITY
  1063. bool "UBIFS Security Labels"
  1064. config KERNEL_JFFS2_FS_SECURITY
  1065. bool "JFFS2 Security Labels"