Config-kernel.in 38 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324
  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. default y if !SMALL_FLASH
  396. config KERNEL_FHANDLE
  397. bool "Compile the kernel with support for fhandle syscalls"
  398. default y if !SMALL_FLASH
  399. config KERNEL_FANOTIFY
  400. bool "Compile the kernel with modern file notification support"
  401. default y if !SMALL_FLASH
  402. config KERNEL_BLK_DEV_BSG
  403. bool "Compile the kernel with SCSI generic v4 support for any block device"
  404. config KERNEL_TRANSPARENT_HUGEPAGE
  405. bool
  406. choice
  407. prompt "Transparent Hugepage Support sysfs defaults"
  408. depends on KERNEL_TRANSPARENT_HUGEPAGE
  409. default KERNEL_TRANSPARENT_HUGEPAGE_ALWAYS
  410. config KERNEL_TRANSPARENT_HUGEPAGE_ALWAYS
  411. bool "always"
  412. config KERNEL_TRANSPARENT_HUGEPAGE_MADVISE
  413. bool "madvise"
  414. endchoice
  415. config KERNEL_HUGETLBFS
  416. bool
  417. config KERNEL_HUGETLB_PAGE
  418. bool "Compile the kernel with HugeTLB support"
  419. select KERNEL_TRANSPARENT_HUGEPAGE
  420. select KERNEL_HUGETLBFS
  421. config KERNEL_MAGIC_SYSRQ
  422. bool "Compile the kernel with SysRq support"
  423. default y
  424. config KERNEL_DEBUG_PINCTRL
  425. bool "Compile the kernel with pinctrl debugging"
  426. select KERNEL_DEBUG_KERNEL
  427. config KERNEL_DEBUG_GPIO
  428. bool "Compile the kernel with gpio debugging"
  429. select KERNEL_DEBUG_KERNEL
  430. config KERNEL_COREDUMP
  431. bool
  432. config KERNEL_ELF_CORE
  433. bool "Enable process core dump support"
  434. select KERNEL_COREDUMP
  435. default y if !SMALL_FLASH
  436. config KERNEL_PROVE_LOCKING
  437. bool "Enable kernel lock checking"
  438. select KERNEL_DEBUG_KERNEL
  439. config KERNEL_SOFTLOCKUP_DETECTOR
  440. bool "Compile the kernel with detect Soft Lockups"
  441. depends on KERNEL_DEBUG_KERNEL
  442. help
  443. Say Y here to enable the kernel to act as a watchdog to detect
  444. soft lockups.
  445. Softlockups are bugs that cause the kernel to loop in kernel
  446. mode for more than 20 seconds, without giving other tasks a
  447. chance to run. The current stack trace is displayed upon
  448. detection and the system will stay locked up.
  449. config KERNEL_HARDLOCKUP_DETECTOR
  450. bool "Compile the kernel with detect Hard Lockups"
  451. depends on KERNEL_DEBUG_KERNEL
  452. help
  453. Say Y here to enable the kernel to act as a watchdog to detect
  454. hard lockups.
  455. Hardlockups are bugs that cause the CPU to loop in kernel mode
  456. for more than 10 seconds, without letting other interrupts have a
  457. chance to run. The current stack trace is displayed upon detection
  458. and the system will stay locked up.
  459. config KERNEL_DETECT_HUNG_TASK
  460. bool "Compile the kernel with detect Hung Tasks"
  461. depends on KERNEL_DEBUG_KERNEL
  462. default KERNEL_SOFTLOCKUP_DETECTOR
  463. help
  464. Say Y here to enable the kernel to detect "hung tasks",
  465. which are bugs that cause the task to be stuck in
  466. uninterruptible "D" state indefinitely.
  467. When a hung task is detected, the kernel will print the
  468. current stack trace (which you should report), but the
  469. task will stay in uninterruptible state. If lockdep is
  470. enabled then all held locks will also be reported. This
  471. feature has negligible overhead.
  472. config KERNEL_WQ_WATCHDOG
  473. bool "Compile the kernel with detect Workqueue Stalls"
  474. depends on KERNEL_DEBUG_KERNEL
  475. help
  476. Say Y here to enable stall detection on workqueues. If a
  477. worker pool doesn't make forward progress on a pending work
  478. item for over a given amount of time, 30s by default, a
  479. warning message is printed along with dump of workqueue
  480. state. This can be configured through kernel parameter
  481. "workqueue.watchdog_thresh" and its sysfs counterpart.
  482. config KERNEL_DEBUG_ATOMIC_SLEEP
  483. bool "Compile the kernel with sleep inside atomic section checking"
  484. depends on KERNEL_DEBUG_KERNEL
  485. help
  486. If you say Y here, various routines which may sleep will become very
  487. noisy if they are called inside atomic sections: when a spinlock is
  488. held, inside an rcu read side critical section, inside preempt disabled
  489. sections, inside an interrupt, etc...
  490. config KERNEL_DEBUG_VM
  491. bool "Compile the kernel with debug VM"
  492. depends on KERNEL_DEBUG_KERNEL
  493. help
  494. Enable this to turn on extended checks in the virtual-memory system
  495. that may impact performance.
  496. If unsure, say N.
  497. config KERNEL_PRINTK_TIME
  498. bool "Enable printk timestamps"
  499. default y
  500. config KERNEL_SLUB_DEBUG
  501. bool
  502. config KERNEL_SLUB_DEBUG_ON
  503. bool
  504. config KERNEL_SLABINFO
  505. select KERNEL_SLUB_DEBUG
  506. select KERNEL_SLUB_DEBUG_ON
  507. bool "Enable /proc slab debug info"
  508. config KERNEL_PROC_PAGE_MONITOR
  509. bool "Enable /proc page monitoring"
  510. config KERNEL_RELAY
  511. bool
  512. config KERNEL_KEXEC
  513. bool "Enable kexec support"
  514. config KERNEL_PROC_VMCORE
  515. bool
  516. config KERNEL_PROC_KCORE
  517. bool
  518. config KERNEL_CRASH_DUMP
  519. depends on i386 || x86_64 || arm || armeb
  520. select KERNEL_KEXEC
  521. select KERNEL_PROC_VMCORE
  522. select KERNEL_PROC_KCORE
  523. bool "Enable support for kexec crashdump"
  524. default y
  525. config USE_RFKILL
  526. bool "Enable rfkill support"
  527. default RFKILL_SUPPORT
  528. config USE_SPARSE
  529. bool "Enable sparse check during kernel build"
  530. config KERNEL_DEVTMPFS
  531. bool "Compile the kernel with device tmpfs enabled"
  532. help
  533. devtmpfs is a simple, kernel-managed /dev filesystem. The kernel creates
  534. devices nodes for all registered devices to simplify boot, but leaves more
  535. complex tasks to userspace (e.g. udev).
  536. if KERNEL_DEVTMPFS
  537. config KERNEL_DEVTMPFS_MOUNT
  538. bool "Automatically mount devtmpfs after root filesystem is mounted"
  539. endif
  540. config KERNEL_KEYS
  541. bool "Enable kernel access key retention support"
  542. default !SMALL_FLASH
  543. config KERNEL_PERSISTENT_KEYRINGS
  544. bool "Enable kernel persistent keyrings"
  545. depends on KERNEL_KEYS
  546. config KERNEL_KEYS_REQUEST_CACHE
  547. bool "Enable temporary caching of the last request_key() result"
  548. depends on KERNEL_KEYS
  549. config KERNEL_BIG_KEYS
  550. bool "Enable large payload keys on kernel keyrings"
  551. depends on KERNEL_KEYS
  552. #
  553. # CGROUP support symbols
  554. #
  555. config KERNEL_CGROUPS
  556. bool "Enable kernel cgroups"
  557. default y if !SMALL_FLASH
  558. if KERNEL_CGROUPS
  559. config KERNEL_CGROUP_DEBUG
  560. bool "Example debug cgroup subsystem"
  561. help
  562. This option enables a simple cgroup subsystem that
  563. exports useful debugging information about the cgroups
  564. framework.
  565. config KERNEL_FREEZER
  566. bool
  567. config KERNEL_CGROUP_FREEZER
  568. bool "legacy Freezer cgroup subsystem"
  569. select KERNEL_FREEZER
  570. help
  571. Provides a way to freeze and unfreeze all tasks in a
  572. cgroup.
  573. (legacy cgroup1-only controller, in cgroup2 freezer
  574. is integrated in the Memory controller)
  575. config KERNEL_CGROUP_DEVICE
  576. bool "legacy Device controller for cgroups"
  577. help
  578. Provides a cgroup implementing whitelists for devices which
  579. a process in the cgroup can mknod or open.
  580. (legacy cgroup1-only controller)
  581. config KERNEL_CGROUP_HUGETLB
  582. bool "HugeTLB controller"
  583. select KERNEL_HUGETLB_PAGE
  584. config KERNEL_CGROUP_PIDS
  585. bool "PIDs cgroup subsystem"
  586. default y
  587. help
  588. Provides enforcement of process number limits in the scope of a
  589. cgroup.
  590. config KERNEL_CGROUP_RDMA
  591. bool "RDMA controller for cgroups"
  592. default y
  593. config KERNEL_CGROUP_BPF
  594. bool "Support for eBPF programs attached to cgroups"
  595. default y
  596. config KERNEL_CPUSETS
  597. bool "Cpuset support"
  598. default y
  599. help
  600. This option will let you create and manage CPUSETs which
  601. allow dynamically partitioning a system into sets of CPUs and
  602. Memory Nodes and assigning tasks to run only within those sets.
  603. This is primarily useful on large SMP or NUMA systems.
  604. config KERNEL_PROC_PID_CPUSET
  605. bool "Include legacy /proc/<pid>/cpuset file"
  606. depends on KERNEL_CPUSETS
  607. config KERNEL_CGROUP_CPUACCT
  608. bool "Simple CPU accounting cgroup subsystem"
  609. default y
  610. help
  611. Provides a simple Resource Controller for monitoring the
  612. total CPU consumed by the tasks in a cgroup.
  613. config KERNEL_RESOURCE_COUNTERS
  614. bool "Resource counters"
  615. default y
  616. help
  617. This option enables controller independent resource accounting
  618. infrastructure that works with cgroups.
  619. config KERNEL_MM_OWNER
  620. bool
  621. default y if KERNEL_MEMCG
  622. config KERNEL_MEMCG
  623. bool "Memory Resource Controller for Control Groups"
  624. default y
  625. select KERNEL_FREEZER
  626. depends on KERNEL_RESOURCE_COUNTERS
  627. help
  628. Provides a memory resource controller that manages both anonymous
  629. memory and page cache. (See Documentation/cgroups/memory.txt)
  630. Note that setting this option increases fixed memory overhead
  631. associated with each page of memory in the system. By this,
  632. 20(40)bytes/PAGE_SIZE on 32(64)bit system will be occupied by memory
  633. usage tracking struct at boot. Total amount of this is printed out
  634. at boot.
  635. Only enable when you're ok with these tradeoffs and really
  636. sure you need the memory resource controller. Even when you enable
  637. this, you can set "cgroup_disable=memory" at your boot option to
  638. disable memory resource controller and you can avoid overheads
  639. (but lose benefits of memory resource controller).
  640. This config option also selects MM_OWNER config option, which
  641. could in turn add some fork/exit overhead.
  642. config KERNEL_MEMCG_SWAP
  643. bool "Memory Resource Controller Swap Extension"
  644. default y
  645. depends on KERNEL_MEMCG
  646. help
  647. Add swap management feature to memory resource controller. When you
  648. enable this, you can limit mem+swap usage per cgroup. In other words,
  649. when you disable this, memory resource controller has no cares to
  650. usage of swap...a process can exhaust all of the swap. This extension
  651. is useful when you want to avoid exhaustion swap but this itself
  652. adds more overheads and consumes memory for remembering information.
  653. Especially if you use 32bit system or small memory system, please
  654. be careful about enabling this. When memory resource controller
  655. is disabled by boot option, this will be automatically disabled and
  656. there will be no overhead from this. Even when you set this config=y,
  657. if boot option "swapaccount=0" is set, swap will not be accounted.
  658. Now, memory usage of swap_cgroup is 2 bytes per entry. If swap page
  659. size is 4096bytes, 512k per 1Gbytes of swap.
  660. config KERNEL_MEMCG_SWAP_ENABLED
  661. bool "Memory Resource Controller Swap Extension enabled by default"
  662. depends on KERNEL_MEMCG_SWAP
  663. help
  664. Memory Resource Controller Swap Extension comes with its price in
  665. a bigger memory consumption. General purpose distribution kernels
  666. which want to enable the feature but keep it disabled by default
  667. and let the user enable it by swapaccount boot command line
  668. parameter should have this option unselected.
  669. Those who want to have the feature enabled by default should
  670. select this option (if, for some reason, they need to disable it,
  671. then swapaccount=0 does the trick).
  672. config KERNEL_MEMCG_KMEM
  673. bool "Memory Resource Controller Kernel Memory accounting (EXPERIMENTAL)"
  674. default y
  675. depends on KERNEL_MEMCG
  676. help
  677. The Kernel Memory extension for Memory Resource Controller can limit
  678. the amount of memory used by kernel objects in the system. Those are
  679. fundamentally different from the entities handled by the standard
  680. Memory Controller, which are page-based, and can be swapped. Users of
  681. the kmem extension can use it to guarantee that no group of processes
  682. will ever exhaust kernel resources alone.
  683. config KERNEL_CGROUP_PERF
  684. bool "Enable perf_event per-cpu per-container group (cgroup) monitoring"
  685. select KERNEL_PERF_EVENTS
  686. help
  687. This option extends the per-cpu mode to restrict monitoring to
  688. threads which belong to the cgroup specified and run on the
  689. designated cpu.
  690. menuconfig KERNEL_CGROUP_SCHED
  691. bool "Group CPU scheduler"
  692. default y
  693. help
  694. This feature lets CPU scheduler recognize task groups and control CPU
  695. bandwidth allocation to such task groups. It uses cgroups to group
  696. tasks.
  697. if KERNEL_CGROUP_SCHED
  698. config KERNEL_FAIR_GROUP_SCHED
  699. bool "Group scheduling for SCHED_OTHER"
  700. default y
  701. config KERNEL_CFS_BANDWIDTH
  702. bool "CPU bandwidth provisioning for FAIR_GROUP_SCHED"
  703. default y
  704. depends on KERNEL_FAIR_GROUP_SCHED
  705. help
  706. This option allows users to define CPU bandwidth rates (limits) for
  707. tasks running within the fair group scheduler. Groups with no limit
  708. set are considered to be unconstrained and will run with no
  709. restriction.
  710. See tip/Documentation/scheduler/sched-bwc.txt for more information.
  711. config KERNEL_RT_GROUP_SCHED
  712. bool "Group scheduling for SCHED_RR/FIFO"
  713. default y
  714. help
  715. This feature lets you explicitly allocate real CPU bandwidth
  716. to task groups. If enabled, it will also make it impossible to
  717. schedule realtime tasks for non-root users until you allocate
  718. realtime bandwidth for them.
  719. endif
  720. config KERNEL_BLK_CGROUP
  721. bool "Block IO controller"
  722. default y
  723. help
  724. Generic block IO controller cgroup interface. This is the common
  725. cgroup interface which should be used by various IO controlling
  726. policies.
  727. Currently, CFQ IO scheduler uses it to recognize task groups and
  728. control disk bandwidth allocation (proportional time slice allocation)
  729. to such task groups. It is also used by bio throttling logic in
  730. block layer to implement upper limit in IO rates on a device.
  731. This option only enables generic Block IO controller infrastructure.
  732. One needs to also enable actual IO controlling logic/policy. For
  733. enabling proportional weight division of disk bandwidth in CFQ, set
  734. CONFIG_CFQ_GROUP_IOSCHED=y; for enabling throttling policy, set
  735. CONFIG_BLK_DEV_THROTTLING=y.
  736. if KERNEL_BLK_CGROUP
  737. config KERNEL_CFQ_GROUP_IOSCHED
  738. bool "Proportional weight of disk bandwidth in CFQ"
  739. config KERNEL_BLK_DEV_THROTTLING
  740. bool "Enable throttling policy"
  741. default y
  742. config KERNEL_BLK_DEV_THROTTLING_LOW
  743. bool "Block throttling .low limit interface support (EXPERIMENTAL)"
  744. depends on KERNEL_BLK_DEV_THROTTLING
  745. endif
  746. config KERNEL_DEBUG_BLK_CGROUP
  747. bool "Enable Block IO controller debugging"
  748. depends on KERNEL_BLK_CGROUP
  749. help
  750. Enable some debugging help. Currently it exports additional stat
  751. files in a cgroup which can be useful for debugging.
  752. config KERNEL_NET_CLS_CGROUP
  753. bool "legacy Control Group Classifier"
  754. config KERNEL_CGROUP_NET_CLASSID
  755. bool "legacy Network classid cgroup"
  756. config KERNEL_CGROUP_NET_PRIO
  757. bool "legacy Network priority cgroup"
  758. endif
  759. #
  760. # Namespace support symbols
  761. #
  762. config KERNEL_NAMESPACES
  763. bool "Enable kernel namespaces"
  764. default y if !SMALL_FLASH
  765. if KERNEL_NAMESPACES
  766. config KERNEL_UTS_NS
  767. bool "UTS namespace"
  768. default y
  769. help
  770. In this namespace, tasks see different info provided
  771. with the uname() system call.
  772. config KERNEL_IPC_NS
  773. bool "IPC namespace"
  774. default y
  775. help
  776. In this namespace, tasks work with IPC ids which correspond to
  777. different IPC objects in different namespaces.
  778. config KERNEL_USER_NS
  779. bool "User namespace (EXPERIMENTAL)"
  780. default y
  781. help
  782. This allows containers, i.e. vservers, to use user namespaces
  783. to provide different user info for different servers.
  784. config KERNEL_PID_NS
  785. bool "PID Namespaces"
  786. default y
  787. help
  788. Support process id namespaces. This allows having multiple
  789. processes with the same pid as long as they are in different
  790. pid namespaces. This is a building block of containers.
  791. config KERNEL_NET_NS
  792. bool "Network namespace"
  793. default y
  794. help
  795. Allow user space to create what appear to be multiple instances
  796. of the network stack.
  797. endif
  798. config KERNEL_DEVPTS_MULTIPLE_INSTANCES
  799. bool "Support multiple instances of devpts"
  800. default y if !SMALL_FLASH
  801. help
  802. Enable support for multiple instances of devpts filesystem.
  803. If you want to have isolated PTY namespaces (eg: in containers),
  804. say Y here. Otherwise, say N. If enabled, each mount of devpts
  805. filesystem with the '-o newinstance' option will create an
  806. independent PTY namespace.
  807. config KERNEL_POSIX_MQUEUE
  808. bool "POSIX Message Queues"
  809. default y if !SMALL_FLASH
  810. help
  811. POSIX variant of message queues is a part of IPC. In POSIX message
  812. queues every message has a priority which decides about succession
  813. of receiving it by a process. If you want to compile and run
  814. programs written e.g. for Solaris with use of its POSIX message
  815. queues (functions mq_*) say Y here.
  816. POSIX message queues are visible as a filesystem called 'mqueue'
  817. and can be mounted somewhere if you want to do filesystem
  818. operations on message queues.
  819. config KERNEL_SECCOMP_FILTER
  820. bool
  821. default y if !SMALL_FLASH
  822. config KERNEL_SECCOMP
  823. bool "Enable seccomp support"
  824. depends on !(TARGET_uml)
  825. select KERNEL_SECCOMP_FILTER
  826. default y if !SMALL_FLASH
  827. help
  828. Build kernel with support for seccomp.
  829. #
  830. # IPv4 configuration
  831. #
  832. config KERNEL_IP_MROUTE
  833. bool "Enable IPv4 multicast routing"
  834. default y
  835. help
  836. Multicast routing requires a multicast routing daemon in
  837. addition to kernel support.
  838. if KERNEL_IP_MROUTE
  839. config KERNEL_IP_MROUTE_MULTIPLE_TABLES
  840. def_bool y
  841. config KERNEL_IP_PIMSM_V1
  842. def_bool y
  843. config KERNEL_IP_PIMSM_V2
  844. def_bool y
  845. endif
  846. #
  847. # IPv6 configuration
  848. #
  849. config KERNEL_IPV6
  850. def_bool IPV6
  851. if KERNEL_IPV6
  852. config KERNEL_IPV6_MULTIPLE_TABLES
  853. def_bool y
  854. config KERNEL_IPV6_SUBTREES
  855. def_bool y
  856. config KERNEL_IPV6_MROUTE
  857. bool "Enable IPv6 multicast routing"
  858. default y
  859. help
  860. Multicast routing requires a multicast routing daemon in
  861. addition to kernel support.
  862. if KERNEL_IPV6_MROUTE
  863. config KERNEL_IPV6_MROUTE_MULTIPLE_TABLES
  864. def_bool y
  865. config KERNEL_IPV6_PIMSM_V2
  866. def_bool y
  867. endif
  868. config KERNEL_IPV6_SEG6_LWTUNNEL
  869. bool "Enable support for lightweight tunnels"
  870. default y if !SMALL_FLASH
  871. help
  872. Using lwtunnel (needed for IPv6 segment routing) requires ip-full package.
  873. config KERNEL_LWTUNNEL_BPF
  874. def_bool n
  875. endif
  876. #
  877. # Miscellaneous network configuration
  878. #
  879. config KERNEL_NET_L3_MASTER_DEV
  880. bool "L3 Master device support"
  881. help
  882. This module provides glue between core networking code and device
  883. drivers to support L3 master devices like VRF.
  884. config KERNEL_WIRELESS_EXT
  885. def_bool n
  886. config KERNEL_WEXT_CORE
  887. def_bool KERNEL_WIRELESS_EXT
  888. config KERNEL_WEXT_PRIV
  889. def_bool KERNEL_WIRELESS_EXT
  890. config KERNEL_WEXT_PROC
  891. def_bool KERNEL_WIRELESS_EXT
  892. config KERNEL_WEXT_SPY
  893. def_bool KERNEL_WIRELESS_EXT
  894. config KERNEL_PAGE_POOL
  895. def_bool n
  896. config KERNEL_PAGE_POOL_STATS
  897. bool "Page pool stats support"
  898. depends on KERNEL_PAGE_POOL
  899. depends on !LINUX_5_10
  900. #
  901. # NFS related symbols
  902. #
  903. config KERNEL_IP_PNP
  904. bool "Compile the kernel with rootfs on NFS"
  905. help
  906. If you want to make your kernel boot off a NFS server as root
  907. filesystem, select Y here.
  908. if KERNEL_IP_PNP
  909. config KERNEL_IP_PNP_DHCP
  910. def_bool y
  911. config KERNEL_IP_PNP_BOOTP
  912. def_bool n
  913. config KERNEL_IP_PNP_RARP
  914. def_bool n
  915. config KERNEL_NFS_FS
  916. def_bool y
  917. config KERNEL_NFS_V2
  918. def_bool y
  919. config KERNEL_NFS_V3
  920. def_bool y
  921. config KERNEL_ROOT_NFS
  922. def_bool y
  923. endif
  924. menu "Filesystem ACL and attr support options"
  925. config USE_FS_ACL_ATTR
  926. bool "Use filesystem ACL and attr support by default"
  927. help
  928. Make using ACLs (e.g. POSIX ACL, NFSv4 ACL) the default
  929. for kernel and packages, except tmpfs, flash filesystems,
  930. and old NFS. Also enable userspace extended attribute support
  931. by default. (OpenWrt already has an expection it will be
  932. present in the kernel).
  933. config KERNEL_FS_POSIX_ACL
  934. bool "Enable POSIX ACL support"
  935. default y if USE_FS_ACL_ATTR
  936. config KERNEL_BTRFS_FS_POSIX_ACL
  937. bool "Enable POSIX ACL for BtrFS Filesystems"
  938. select KERNEL_FS_POSIX_ACL
  939. default y if USE_FS_ACL_ATTR
  940. config KERNEL_EXT4_FS_POSIX_ACL
  941. bool "Enable POSIX ACL for Ext4 Filesystems"
  942. select KERNEL_FS_POSIX_ACL
  943. default y if USE_FS_ACL_ATTR
  944. config KERNEL_F2FS_FS_POSIX_ACL
  945. bool "Enable POSIX ACL for F2FS Filesystems"
  946. select KERNEL_FS_POSIX_ACL
  947. config KERNEL_JFFS2_FS_POSIX_ACL
  948. bool "Enable POSIX ACL for JFFS2 Filesystems"
  949. select KERNEL_FS_POSIX_ACL
  950. config KERNEL_TMPFS_POSIX_ACL
  951. bool "Enable POSIX ACL for TMPFS Filesystems"
  952. select KERNEL_FS_POSIX_ACL
  953. config KERNEL_CIFS_ACL
  954. bool "Enable CIFS ACLs"
  955. select KERNEL_FS_POSIX_ACL
  956. default y if USE_FS_ACL_ATTR
  957. config KERNEL_HFS_FS_POSIX_ACL
  958. bool "Enable POSIX ACL for HFS Filesystems"
  959. select KERNEL_FS_POSIX_ACL
  960. default y if USE_FS_ACL_ATTR
  961. config KERNEL_HFSPLUS_FS_POSIX_ACL
  962. bool "Enable POSIX ACL for HFS+ Filesystems"
  963. select KERNEL_FS_POSIX_ACL
  964. default y if USE_FS_ACL_ATTR
  965. config KERNEL_NFS_ACL_SUPPORT
  966. bool "Enable ACLs for NFS"
  967. default y if USE_FS_ACL_ATTR
  968. config KERNEL_NFS_V3_ACL_SUPPORT
  969. bool "Enable ACLs for NFSv3"
  970. config KERNEL_NFSD_V2_ACL_SUPPORT
  971. bool "Enable ACLs for NFSDv2"
  972. config KERNEL_NFSD_V3_ACL_SUPPORT
  973. bool "Enable ACLs for NFSDv3"
  974. config KERNEL_REISER_FS_POSIX_ACL
  975. bool "Enable POSIX ACLs for ReiserFS"
  976. select KERNEL_FS_POSIX_ACL
  977. default y if USE_FS_ACL_ATTR
  978. config KERNEL_XFS_POSIX_ACL
  979. bool "Enable POSIX ACLs for XFS"
  980. select KERNEL_FS_POSIX_ACL
  981. default y if USE_FS_ACL_ATTR
  982. config KERNEL_JFS_POSIX_ACL
  983. bool "Enable POSIX ACLs for JFS"
  984. select KERNEL_FS_POSIX_ACL
  985. default y if USE_FS_ACL_ATTR
  986. endmenu
  987. config KERNEL_DEVMEM
  988. bool "/dev/mem virtual device support"
  989. help
  990. Say Y here if you want to support the /dev/mem device.
  991. The /dev/mem device is used to access areas of physical
  992. memory.
  993. config KERNEL_DEVKMEM
  994. bool "/dev/kmem virtual device support"
  995. help
  996. Say Y here if you want to support the /dev/kmem device. The
  997. /dev/kmem device is rarely used, but can be used for certain
  998. kind of kernel debugging operations.
  999. config KERNEL_SQUASHFS_FRAGMENT_CACHE_SIZE
  1000. int "Number of squashfs fragments cached"
  1001. default 2 if (SMALL_FLASH && !LOW_MEMORY_FOOTPRINT)
  1002. default 3
  1003. config KERNEL_SQUASHFS_XATTR
  1004. bool "Squashfs XATTR support"
  1005. #
  1006. # compile optimization setting
  1007. #
  1008. choice
  1009. prompt "Compiler optimization level"
  1010. default KERNEL_CC_OPTIMIZE_FOR_SIZE if SMALL_FLASH
  1011. config KERNEL_CC_OPTIMIZE_FOR_PERFORMANCE
  1012. bool "Optimize for performance"
  1013. help
  1014. This is the default optimization level for the kernel, building
  1015. with the "-O2" compiler flag for best performance and most
  1016. helpful compile-time warnings.
  1017. config KERNEL_CC_OPTIMIZE_FOR_SIZE
  1018. bool "Optimize for size"
  1019. help
  1020. Enabling this option will pass "-Os" instead of "-O2" to
  1021. your compiler resulting in a smaller kernel.
  1022. endchoice
  1023. config KERNEL_AUDIT
  1024. bool "Auditing support"
  1025. config KERNEL_SECURITY
  1026. bool "Enable different security models"
  1027. config KERNEL_SECURITY_NETWORK
  1028. bool "Socket and Networking Security Hooks"
  1029. select KERNEL_SECURITY
  1030. config KERNEL_SECURITY_SELINUX
  1031. bool "NSA SELinux Support"
  1032. select KERNEL_SECURITY_NETWORK
  1033. select KERNEL_AUDIT
  1034. config KERNEL_SECURITY_SELINUX_BOOTPARAM
  1035. bool "NSA SELinux boot parameter"
  1036. depends on KERNEL_SECURITY_SELINUX
  1037. default y
  1038. config KERNEL_SECURITY_SELINUX_DISABLE
  1039. bool "NSA SELinux runtime disable"
  1040. depends on KERNEL_SECURITY_SELINUX
  1041. config KERNEL_SECURITY_SELINUX_DEVELOP
  1042. bool "NSA SELinux Development Support"
  1043. depends on KERNEL_SECURITY_SELINUX
  1044. default y
  1045. config KERNEL_SECURITY_SELINUX_SIDTAB_HASH_BITS
  1046. int
  1047. depends on KERNEL_SECURITY_SELINUX
  1048. default 9
  1049. config KERNEL_SECURITY_SELINUX_SID2STR_CACHE_SIZE
  1050. int
  1051. depends on KERNEL_SECURITY_SELINUX
  1052. default 256
  1053. config KERNEL_LSM
  1054. string
  1055. default "lockdown,yama,loadpin,safesetid,integrity,selinux"
  1056. depends on KERNEL_SECURITY_SELINUX
  1057. config KERNEL_EXT4_FS_SECURITY
  1058. bool "Ext4 Security Labels"
  1059. config KERNEL_F2FS_FS_SECURITY
  1060. bool "F2FS Security Labels"
  1061. config KERNEL_UBIFS_FS_SECURITY
  1062. bool "UBIFS Security Labels"
  1063. config KERNEL_JFFS2_FS_SECURITY
  1064. bool "JFFS2 Security Labels"