modemmanager: sandbox with bwrap instead of landlock

This commit is contained in:
Colin 2024-05-30 18:47:09 +00:00
parent 820fdecfd5
commit 6570c5ed84

View File

@ -7,8 +7,10 @@ in
# mmcli needs /run/current-system/sw/share/dbus-1 files to function
enableFor.system = lib.mkIf (builtins.any (en: en) (builtins.attrValues cfg.enableFor.user)) true;
sandbox.method = "landlock";
sandbox.method = "bwrap";
sandbox.wrapperType = "inplace"; #< .pc files, GIR files with absolute paths,
sandbox.net = "all";
sandbox.isolatePids = false;
sandbox.capabilities = [
"net_admin"
"net_raw"