Commit Graph

53 Commits

Author SHA1 Message Date
Tianling Shen
3d901b8924
config/Config-kernel.in: enable namespaces by default
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2022-05-17 16:34:48 +08:00
Josh Soref
6bf810b1e1 build: fix various typos
Fix typos in comment and user-facing help text.

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
[split out config changes, adjust commit message]
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
2021-11-02 23:57:22 +08:00
Paul Spooren
430f572960 build: use SPDX license tags
The license folder is a core part of OpenWrt and all GPL-2.0 licensed.
Use SPDX license tags to allow machines to check licenses.

Signed-off-by: Paul Spooren <mail@aparcar.org>
[rebase, keep some Copyright lines, sharpen commit message]
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
2021-02-06 12:07:10 +08:00
Daniel Golle
cf26e2a6a2 kernel: add defaults for new SELinux options
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2021-02-06 12:05:05 +08:00
Tony Ambardar
86bedd0ae0 config: drop CONFIG_KPROBE_EVENT unused since kernel 4.9
The config setting was renamed to CONFIG_KPROBE_EVENTS.

Fixes: 97d3f800a8 ("config: kernel: Add KPROBE_EVENTS config option)
Signed-off-by: Tony Ambardar <itugrok@yahoo.com>
2021-01-26 12:02:54 +08:00
Daniel Golle
9b6b43e71f kernel: enable kernel keyring by default on !SMALL_FLASH
Enable CONFIG_KEYS by default on systems which are not marked as
flash-space constraint by the 'small_flash' feature.
CONFIG_KEYS is required by Docker, enabling it in our kernel allows
users to run Docker on stock OpenWrt.
It is also used of by some network file systems (such as NFSv4) to
store credentials as well as UID/GID mappings.

Adds about 50kB to vmlinux on ath79/generic (~18kB compressed)

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2020-12-15 11:37:51 +08:00
Daniel Golle
afa29f85f0 kernel: update and clean kernel keyring options
Add KERNEL_KEYS_REQUEST_CACHE option.
'tristate' (ie. module builds) are not valid in Config-kernel.in, hence
remove tristate KERNEL_ENCRYPTED_KEYS. It will be readded as a kernel
module in a follow-up commit.

Fixes: 39d817cf38 ("Add config symbols for kernel keyring support")
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2020-12-15 11:36:39 +08:00
Daniel Golle
fa77e887a0 config: clean up SELinux options
In order to make it easier for users to build with SELinux, have a
single option in 'Global build settings' to enable all necessary
kernel features, userland packages and build-system hooks.
Also add better descriptions and help messages while at it.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2020-10-17 11:50:46 +08:00
Paul Spooren
5f626eedad
config: add KERNEL_LSM symbol
The LSM (Linux security mechanism) list is the successor of the now
legacy *major LSM*. Instead of defining a single security mechanism the
LSM symbol is a comma separated list of mechanisms to load.

Until recently OpenWrt would only support DAC (Unix discretionary access
controls) which don't require an additional entry in the LSM list. With
the newly introduced SELinux support the LSM needs to be extended else
only a manual modified Kernel cmdline (`security=selinux`) would
activate SELinux.

As the default OpenWrt Kernel config sets DAC as default security
mechanism, SELinux is stripped from the LSM list, even if
`KERNEL_DEFAULT_SECURITY_SELINUX` is activated. To allow SELinux without
a modified cmdline this commit sets a specific LSM list if
`KERNEL_SECURITY_SELINUX` is enabled.

The upstream Kconfig adds even more mechanisms
(smack,selinux,tomoyo,apparmor), but until they're ported to OpenWrt,
these can be ignored.

To compile SELinux Kernel support but disable it from loading, the
already present options `KERNEL_SECURITY_SELINUX_DISABLE` or
`KERNEL_SECURITY_SELINUX_BOOTPARAM` (with custom cmdline `selinux=0`)
can be used. Further it's possible to edit `/etc/selinux/config`.

Signed-off-by: Paul Spooren <mail@aparcar.org>
2020-09-04 16:11:44 +08:00
Thomas Petazzoni
28212bbd55 kernel: add options needed for SELinux
This adds a number of options to config/Config-kernel.in so that
packages related to SELinux support can enable the appropriate Linux
kernel support.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
[rebase; add ext4, F2FS, UBIFS, and JFFS2 support; add commit message]
Signed-off-by: W. Michael Petullo <mike@flyn.org>
2020-08-31 11:33:32 +08:00
Yuan Tao
b0ab79f1b6 config: kernel: fix missed CGROUP_HUGETLB symbol
The symbol KERNEL_CGROUP_HUGETLB is always used whenever KERNEL_CGROUPS is enabled.
The absence of this notation will cause the user to be asked to enter this parameter the first time it is compiled.

Signed-off-by: Yuan Tao <ty@wevs.org>
2020-08-24 11:36:40 +08:00
AmadeusGhost
7f210212d9 ipq40xx: sync upstream crypto patches 2020-08-21 22:46:23 +08:00
CN_SZTL
fce99c706d
target/generic: add missing symbol in kernel 4.9 2020-08-03 01:53:13 +08:00
Stijn Tintel
5a62b7af32
kernel: fix missing TRANSPARENT_HUGEPAGE symbols
Enabling KERNEL_TRANSPARENT_HUGEPAGE exposes 2 missing symbols:
* CONFIG_READ_ONLY_THP_FOR_FS
* TRANSPARENT_HUGEPAGE_ALWAYS
* TRANSPARENT_HUGEPAGE_MADVISE

The first one was added in 5.4, and is marked experimental there so just
disable it in the generic config.

For the latter two, we should not force the user to use either of them,
so add them as build-configurable kernel options.

Fixes: d1a8217d87 ("kernel: clean-up build-configurable kernel config symbols")
Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
2020-08-03 00:28:36 +08:00
Daniel Golle
b076023aed
kernel: add menuconfig entry for kernel CONFIG_CGROUP_NET_CLASSID
It was removed from target defaults though it didn't exist in the
build-systems kernel configuration options. Add it there.

Fixes: d1a8217d87 ("kernel: clean-up build-configurable kernel config symbols")
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2020-08-03 00:25:48 +08:00
Daniel Golle
34e28b29a0
kernel: clean-up build-configurable kernel config symbols
Don't explicitely disable options in target/linux/generic/config-* if
they are already controlled in config/Config-kernel.in.
Add a bunch of new symbols  and prepare defaults for using only unified
hierarchy (ie. cgroup2). Update symbol dependencies while at it

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2020-08-03 00:25:11 +08:00
Javier Marcet
7e9a5bc399 kernel: rename CONFIG_NETPRIO_CGROUP to CONFIG_CGROUP_NET_PRIO
This has been changed in kernel 3.14.

Signed-off-by: Javier Marcet <javier@marcet.info>
2020-06-27 12:38:01 +08:00
AmadeusGhost
61341499df
brcm2708: rename target to bcm27xx (#3098)
Signed-off-by: AmadeusGhost <42570690+AmadeusGhost@users.noreply.github.com>
2020-02-17 10:36:14 +08:00
coolsnowwolf
ecea39f109 Revert "files: sync from openwrt v19.07 (#2690)"
This reverts commit 2289184a62.
2020-02-03 12:33:25 +08:00
AmadeusGhost
2289184a62
files: sync from openwrt v19.07 (#2690) 2020-02-01 16:50:37 +08:00
LEAN-ESX
4d696d393e ipq40xx: Qualcomm HW Crypto Engine fixes 2019-10-28 21:23:00 -07:00
LEAN-ESX
b6c3b13659 kernel: default disable KERNEL_NAMESPACES to reduce kernel size 2019-10-28 19:47:55 -07:00
coolsnowwolf
586ff91baa
Update Config-kernel.in 2019-10-26 17:49:48 +08:00
coolsnowwolf
a27bc59099
Update Config-kernel.in 2019-10-26 01:15:00 +08:00
LEAN-ESX
426b3643cc kernel:seccomp disable by default 2019-10-16 08:25:40 -07:00
LEAN-ESX
c78939e05c mips: enable KERNEL_MIPS_FPU_EMULATOR by default 2019-10-12 02:41:29 -07:00
LEAN-ESX
6ade5c53f0 kernel: update config 2019-10-10 04:09:54 -07:00
LEAN-ESX
adea03cdd8 Config.in: add Global Build options to enable cgroups 2019-10-09 22:27:12 -07:00
coolsnowwolf
b84866056e reduce Dommy DW33D kernel size by 10KB again and again and again and again 2019-04-15 15:49:08 +08:00
coolsnowwolf
d4e88aba32 Revert "fix SWAP support in ar71xx"
This reverts commit ee5d923e9e.
2019-02-26 22:26:31 +08:00
coolsnowwolf
ee5d923e9e fix SWAP support in ar71xx 2019-02-21 15:45:48 +08:00
coolsnowwolf
8a7c3566ea kernel: CC OPTIMIZE FOR PERFORMANCE 2019-02-13 22:20:29 +08:00
coolsnowwolf
bd78fe2226
enable KERNEL_MIPS_FPU_EMULATOR 2019-01-05 22:23:37 +08:00
coolsnowwolf
347daa04b2 Merge branch master of https://github.com/coolsnowwolf/lede 2019-01-03 19:29:28 +08:00
coolsnowwolf
76b6c8c1e6 kernel: config no debug symbol 2018-10-22 14:54:04 +08:00
coolsnowwolf
ed2b457b47 change SMALL_FLASH swap settings 2018-10-18 15:09:17 +08:00
coolsnowwolf
46e06f4fe3 enable KERNEL_SWAP by default 2018-10-18 02:32:49 +08:00
coolsnowwolf
18ea208bfd reduce Dommy DW33D kernel size by 10KB again and again and again 2018-10-18 02:29:47 +08:00
coolsnowwolf
09aac84c09 enable KERNEL_MIPS_FPU_EMULATOR bydefault 2018-10-15 19:59:20 +08:00
coolsnowwolf
1132008d09 reduce Dommy DW33D kernel size by 10KB again and again 2018-10-14 18:42:19 +08:00
coolsnowwolf
99afeac94b adjust small kernel to support Domywifi dw33d 2018-09-29 14:26:27 +08:00
coolsnowwolf
bc69ec6429 add Dommy DW33D small kernel size support 2018-09-18 13:33:35 +08:00
coolsnowwolf
806f5db174 sync with OpenWrt trunk 2018-09-07 13:43:55 +08:00
coolsnowwolf
0750947938 add Dommy DW33D support in 18.06.1 2018-08-24 13:45:43 +08:00
coolsnowwolf
9ba04fd0d7 sync with OpenWrt v18.06.1 stable new R8.1 version 2018-08-23 17:40:23 +08:00
coolsnowwolf
0a63cf4be6 add Dommy DW33D support 2018-05-21 12:04:51 +08:00
coolsnowwolf
8fe0636b8a Merge branch 'master' of github.com:lede-project/source 2018-04-23 18:50:49 +08:00
coolsnowwolf
20f7e75789 update to R7.5.4 2018-01-15 18:26:41 +08:00
coolsnowwolf
66dbc4d0d7 add support for tiny kernel for ar71xx (Tplink 4M or DW33D etc) 2018-01-14 22:22:06 +08:00
coolsnowwolf
229cde62a4 Merge branch 'master' of https://github.com/lede-project/source 2018-01-09 14:38:15 +08:00