Files
bpfire/config
Peter Müller 038539d646 sysctl: Disable bpf() calls from unprivileged users without toggle option
According to the Linux kernel documentation, enabling BPF_UNPRIV_DEFAULT_OFF
(which was done in 69dde418f1) will cause
the sysctl kernel.unprivileged_bpf_disabled to default to 2. This
prohibits calls to bpf() from unprivileged users by default, but allows
for such calls to be allowed again during runtime, by setting
kernel.unprivileged_bpf_disabled to 0.

There is no legitimate reason why this should be possible on IPFire,
which is why this patch sets kernel.unprivileged_bpf_disabled to 1
during startup, causing the same effect as 2, but without any option to
revert this setting during runtime. This fixes a Lynis warning.

Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-07-02 09:10:49 +00:00
..
2022-11-18 14:37:25 +00:00
2021-10-13 12:22:49 +00:00
2024-05-27 22:03:14 +02:00
2022-02-06 10:50:43 +00:00
2022-06-20 20:43:34 +00:00
2023-07-13 14:22:04 +00:00
2021-12-04 23:27:26 +01:00
2024-07-02 09:10:25 +00:00
2023-05-18 11:24:29 +00:00
2022-06-04 08:36:58 +00:00