2021-12-08 18:39:21 +01:00
|
|
|
# apparmor.d - Full set of apparmor profiles
|
2024-02-07 00:16:21 +01:00
|
|
|
# Copyright (C) 2021-2024 Alexandre Pujol <alexandre@pujol.io>
|
2021-12-08 18:39:21 +01:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
|
|
|
|
abi <abi/3.0>,
|
|
|
|
|
|
|
|
include <tunables/global>
|
|
|
|
|
2023-07-09 15:23:22 +02:00
|
|
|
@{exec_path} = @{lib}/code/extensions/git/dist/askpass.sh
|
2023-08-17 19:47:01 +02:00
|
|
|
profile code-extension-git-askpass @{exec_path} {
|
2021-12-08 18:39:21 +01:00
|
|
|
include <abstractions/base>
|
|
|
|
|
2022-02-22 21:51:28 +01:00
|
|
|
network inet dgram,
|
|
|
|
network inet6 dgram,
|
|
|
|
|
2021-12-08 18:39:21 +01:00
|
|
|
@{exec_path} mr,
|
|
|
|
|
2024-02-11 15:34:46 +01:00
|
|
|
@{sh_path} rix,
|
2023-07-09 15:23:22 +02:00
|
|
|
@{bin}/cat rix,
|
|
|
|
@{bin}/mktemp rix,
|
|
|
|
@{bin}/rm rix,
|
2023-08-18 18:09:53 +02:00
|
|
|
@{lib}/electron@{int}/electron rix,
|
2021-12-08 18:39:21 +01:00
|
|
|
|
2023-12-05 21:45:13 +01:00
|
|
|
/usr/share/terminfo/** r,
|
2022-02-22 21:51:28 +01:00
|
|
|
|
2024-05-02 23:12:02 +02:00
|
|
|
owner @{tmp}/tmp.* rw,
|
2022-02-22 21:51:28 +01:00
|
|
|
|
2022-08-19 20:05:15 +02:00
|
|
|
/dev/tty rw,
|
2022-02-22 21:51:28 +01:00
|
|
|
|
2023-08-17 19:47:01 +02:00
|
|
|
include if exists <local/code-extension-git-askpass>
|
|
|
|
}
|
2024-06-15 16:13:21 +02:00
|
|
|
|
|
|
|
# vim:syntax=apparmor
|