mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-01-29 22:35:15 +01:00
feat(profiles): askpass -> code-askpass.
This commit is contained in:
parent
f2989321eb
commit
a02e67d980
2 changed files with 21 additions and 2 deletions
|
@ -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>
|
||||
}
|
19
apparmor.d/profiles-a-f/code-git-editor
Normal file
19
apparmor.d/profiles-a-f/code-git-editor
Normal 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>
|
||||
}
|
Loading…
Reference in a new issue