From a02e67d980ae829a4440224029c3b675603e3a66 Mon Sep 17 00:00:00 2001 From: Alexandre Pujol Date: Sat, 24 Sep 2022 18:08:00 +0100 Subject: [PATCH] feat(profiles): askpass -> code-askpass. --- .../profiles-a-f/{askpass => code-askpass} | 4 ++-- apparmor.d/profiles-a-f/code-git-editor | 19 +++++++++++++++++++ 2 files changed, 21 insertions(+), 2 deletions(-) rename apparmor.d/profiles-a-f/{askpass => code-askpass} (89%) create mode 100644 apparmor.d/profiles-a-f/code-git-editor 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