apparmor.d/apparmor.d/profiles-a-f/code-git-editor

21 lines
No EOL
478 B
Text

# 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} = @{lib}/code/extensions/git/dist/git-editor.sh
profile code-git-editor @{exec_path} {
include <abstractions/base>
@{exec_path} mr,
@{bin}/{,ba,da}sh rix,
@{lib}/electron[0-9]*/electron rUx,
/dev/tty rw,
include if exists <local/code-git-editor>
}