diff --git a/apparmor.d/profiles-a-f/askpass b/apparmor.d/profiles-a-f/code-askpass similarity index 89% rename from apparmor.d/profiles-a-f/askpass rename to apparmor.d/profiles-a-f/code-askpass index 67938a92..cbcfd7b6 100644 --- a/apparmor.d/profiles-a-f/askpass +++ b/apparmor.d/profiles-a-f/code-askpass @@ -7,7 +7,7 @@ abi , include @{exec_path} = /{usr/,}lib/code/extensions/git/dist/askpass.sh -profile askpass @{exec_path} { +profile code-askpass @{exec_path} { include network inet dgram, @@ -27,5 +27,5 @@ profile askpass @{exec_path} { /dev/tty rw, - include if exists + include if exists } \ No newline at end of file diff --git a/apparmor.d/profiles-a-f/code-git-editor b/apparmor.d/profiles-a-f/code-git-editor new file mode 100644 index 00000000..c278becb --- /dev/null +++ b/apparmor.d/profiles-a-f/code-git-editor @@ -0,0 +1,19 @@ +# apparmor.d - Full set of apparmor profiles +# Copyright (C) 2022 Alexandre Pujol +# SPDX-License-Identifier: GPL-2.0-only + +abi , + +include + +@{exec_path} = /{usr/,}lib/code/extensions/git/dist/git-editor.sh +profile code-git-editor @{exec_path} { + include + + @{exec_path} mr, + + /{usr/,}bin/{,ba,da}sh rix, + /{usr/,}lib/electron[0-9]*/electron rUx, + + include if exists +} \ No newline at end of file