fix pkexec

This commit is contained in:
Grimmauld 2024-10-16 19:39:53 +02:00
parent befdc89ae2
commit ff7e5e76c5
Signed by: Grimmauld
GPG key ID: C2946668769F91FB
2 changed files with 9 additions and 2 deletions

View file

@ -32,6 +32,9 @@ buildGoModule {
DISTRIBUTION=arch $out/bin/prebuild --abi 4 # fixme: replace with nixos support once available
mv .build/apparmor.d $out/etc
rm $out/etc/apparmor.d/abstractions/authentication.d/complete
rm $out/bin/prebuild
'';

View file

@ -6,7 +6,7 @@
}:
let
inherit (config.grimmShared) enable tooling;
inherit (lib) mkIf optionalString getExe' getExe;
inherit (lib) mkIf getExe' getExe;
in
{
imports = [ ./apparmor-d-module.nix ];
@ -33,7 +33,7 @@ in
child-open = "enforce";
firefox-glxtest = "enforce";
gamemoded = "disable";
pkexec = "disable";
pkexec = "complain";
xdg-mime = "complain";
mimetype = "complain";
};
@ -82,6 +82,10 @@ in
"abstractions/common/electron.d/libexec" = ''
/nix/store/*/libexec/electron/** rix,
'';
"local/pkexec" = ''
capability sys_ptrace,
'';
};
security.apparmor.policies = {