Add askpass profile.

This commit is contained in:
Alexandre Pujol 2021-12-08 17:39:21 +00:00
parent dc0347388b
commit 11e0066432
No known key found for this signature in database
GPG Key ID: C5469996F0DF68EC
2 changed files with 23 additions and 0 deletions

View File

@ -0,0 +1,22 @@
# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2021 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-2.0-only
abi <abi/3.0>,
include <tunables/global>
@{exec_path} = /{usr/,}lib/code/extensions/git/dist/askpass.sh
profile askpass @{exec_path} {
include <abstractions/base>
@{exec_path} mr,
/{usr/,}bin/{,ba,da}sh rix,
/{usr/,}bin/cat rix,
/{usr/,}bin/mktemp rix,
/{usr/,}bin/rm rix,
/{usr/,}lib/electron[0-9]*/electron rUx,
include if exists <local/askpass>
}

View File

@ -4,6 +4,7 @@
acpid attach_disconnected,complain
adb complain
agetty complain
askpass complain
at-spi-bus-launcher attach_disconnected
auditd complain
badblocks complain