Enable Landlock LSM support (CONFIG_SECURITY_LANDLOCK) in default kernel configs
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 45/100
- Issue-Typ
- Feature
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- c, linux
- Bereich
- operating-systems, security
Rechercherichtung
Start by comparing the Raspberry Pi kernel defconfigs named in the issue, such as bcm2711_defconfig and bcm2712_defconfig, with upstream Debian’s Landlock configuration. The issue asks whether to enable CONFIG_SECURITY_LANDLOCK by default or compile it in for opt-in through lsm=landlock; review the footprint and LSM ordering implications across the supported configurations. Done when the maintainers choose a policy and the relevant default configurations reflect it.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Describe the bug
Summary
Please consider enabling Landlock (CONFIG_SECURITY_LANDLOCK=y) in the default Raspberry Pi OS kernel configurations, so software relying on Landlock can run without requiring users to build and maintain a custom kernel.
Forum discussion: https://forums.raspberrypi.com/viewtopic.php?t=401959
Motivation
Landlock is a mainline Linux Security Module (since Linux 5.13) that lets unprivileged processes sandbox themselves (restricting filesystem and network access) without needing root privileges, namespaces, or system-wide AppArmor/SELinux policies.
It is enabled by default in upstream Debian (since kernel 5.18), Ubuntu, Fedora, and Arch Linux, and is increasingly used across the Linux ecosystem:
- Sandboxing & agent runtimes: tools like NVIDIA OpenShell, Firejail,
landrun, and CLI coding agents (e.g., Codex CLI / Gemini CLI) use Landlock to isolate untrusted or autonomous workloads at the kernel level. - Everyday tools & services: projects such as
xz, GNOME LocalSearch, Suricata, Cloud Hypervisor,zathura, and emergingsystemdintegrations use Landlock for lightweight defense-in-depth.
Current vs. Requested Configuration
Currently, the default defconfigs (e.g., bcm2712_defconfig, bcm2711_defconfig) include:
CONFIG_SECURITY=y
CONFIG_SECURITY_APPARMOR=y
CONFIG_LSM=""
Depending on what trade-offs make the most sense for Raspberry Pi OS, there are two options:
-
Enabled out of the box (matches upstream Debian):
CONFIG_SECURITY_LANDLOCK=y CONFIG_LSM="landlock"(Keeps AppArmor opt-in as today, while allowing Landlock-aware applications to work immediately.)
-
Compiled in, opt-in via
cmdline.txt(matching how AppArmor is currently configured):CONFIG_SECURITY_LANDLOCK=yKeeping
CONFIG_LSM=""so users who need it can enable it withlsm=landlockincmdline.txtwithout compiling a custom kernel.
Footprint & Trade-offs
- Since LSMs must be built in (
=y) rather than as loadable modules, there are trade-offs to weigh regarding kernel image size, boot/startup impact, and runtime memory usage. - If the small per-object LSM memory overhead is a concern on memory-constrained 32-bit models, one option would be to only enable it on the 64-bit / newer defconfigs (
bcm2711_defconfig,bcm2712_defconfig), or keep it opt-in vialsm=landlock.
Steps to reproduce the behaviour
Device (s)
Raspberry Pi 5, Raspberry Pi 4 Mod. B
System
Logs
No response
Additional context
No response
- Vorherrschende Sprache
- C
- Sterne
- 13.4k
- Forks
- 5.5k
- Ø Merge
- 1 T. 8 Std.
- Gemergte PRs (30 T.)
- 37
Entwicklungsumgebung
Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus raspberrypi/linux
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
raspberrypi/linux#7822 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
raspberrypi/linux#7415 · 2 Kommentare · 1 Reaktion ·
Maintainer antworten meist innerhalb von 1 Tag
-
rp1-cfe doesn't forward V4L2_EVENT_SOURCE_CHANGE event from csi-2 sensor driver to userspace appOffen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
raspberrypi/linux#7399 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 82/100
raspberrypi/linux#7357 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
raspberrypi/linux#7054 · 2 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in raspberrypi/linux
Ähnliche Issues
-
CF_CFDP_S_SendFileData computes the file checksum from the SB buffer after CFE_SB_TransmitBufferOffen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
-
needs triage
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
389ds/389-ds-base#8251 ·
Maintainer antworten meist innerhalb von 1 Tag
-
ColumnDecimal::Append(Int128) stores a value outside the Decimal(P, S) range with no error: cut to 32/64 bits, or with too many digitsEvtl. vergeben @RUSHIT305 hat das heute übernommen. Offenbug data-types
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
ClickHouse/clickhouse-cpp#645 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 85/100
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
ROCm/hrx-system#3628 ·
Maintainer antworten meist innerhalb von 1 Tag