ladybird/Libraries/LibSandbox/CMakeLists.txt
Andreas Kling ba87a32626 LibSandbox: Add reusable sandbox building blocks
Move the Linux no_new_privs, Landlock, and seccomp policy plumbing
into LibSandbox so individual services can describe the privileges they
need without copying the BPF and kernel feature detection machinery.

Keep ImageDecoder's sandbox policy service-local by composing the new
building blocks in SandboxLinux.cpp. This preserves the existing syscall
allowlist while making the policy easier to audit and reuse.
2026-06-09 19:35:09 +02:00

11 lines
134 B
CMake

set(SOURCES
Sandbox.cpp
)
if (LINUX)
list(APPEND SOURCES
Seccomp.cpp
)
endif()
ladybird_lib(LibSandbox sandbox)