apparmor.d/apparmor.d/profiles-a-f/code-askpass
2022-09-24 18:08:00 +01:00

31 lines
No EOL
729 B
Text

# 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 code-askpass @{exec_path} {
include <abstractions/base>
network inet dgram,
network inet6 dgram,
@{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,
/usr/share/terminfo/x/xterm-256color r,
owner /tmp/tmp.* rw,
/dev/tty rw,
include if exists <local/code-askpass>
}