Commit de6bff8
authored
Enabled hardening configs default to build. (#1223)
This PR introduces support for merging `hardening.config` into the
kernel configuration for linux-qcom-next.
The goal is to ensure that security hardening options are applied
consistently across all builds.
What’s Changed
Added logic to include `hardening.config` during kernel configuration
using merge_config.sh.
Override `CONFIG_KSTACK_ERASE=n`
Why This Change
Kernel builds previously lacked default hardening options, which could
lead to reduced security.
This update ensures that compiler-based mitigations and other hardening
features are applied by default.
Override `CONFIG_KSTACK_ERASE=n` because enabling it introduces absolute
workspace paths into out‑of‑tree (OOT) kernel module builds, which cause
Yocto's package QA to flag this as build error.
Verification
verified build on QCS9100-ride-sx. Kernel configuration includes
hardening options as expected.
Ref:
[1201#issuecomment-3543906617](#1201 (comment))
#1628 (comment)4 files changed
Lines changed: 6 additions & 2 deletions
File tree
- recipes-kernel/linux
- linux-qcom-6.18/configs
- linux-qcom-next/configs
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
314 | 314 | | |
315 | 315 | | |
316 | 316 | | |
| 317 | + | |
| 318 | + | |
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
314 | 314 | | |
315 | 315 | | |
316 | 316 | | |
| 317 | + | |
| 318 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| |||
0 commit comments