feat(profiles): askpass -> code-askpass.

This commit is contained in:
Alexandre Pujol 2022-09-24 18:08:00 +01:00
parent f2989321eb
commit a02e67d980
Failed to generate hash of commit
2 changed files with 21 additions and 2 deletions

View file

@ -7,7 +7,7 @@ abi <abi/3.0>,
include <tunables/global>
@{exec_path} = /{usr/,}lib/code/extensions/git/dist/askpass.sh
profile askpass @{exec_path} {
profile code-askpass @{exec_path} {
include <abstractions/base>
network inet dgram,
@ -27,5 +27,5 @@ profile askpass @{exec_path} {
/dev/tty rw,
include if exists <local/askpass>
include if exists <local/code-askpass>
}

View file

@ -0,0 +1,19 @@
# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2022 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/git-editor.sh
profile code-git-editor @{exec_path} {
include <abstractions/base>
@{exec_path} mr,
/{usr/,}bin/{,ba,da}sh rix,
/{usr/,}lib/electron[0-9]*/electron rUx,
include if exists <local/code-git-editor>
}