Config-kernel.in 37 KB

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