Config-kernel.in 38 KB

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