From 8c84d74fe6fed738332171ea8402eaf74e9a3254 Mon Sep 17 00:00:00 2001 From: Alexandre Pujol Date: Wed, 1 May 2024 12:29:48 +0100 Subject: [PATCH] feat(profile): add gnome-weather. --- apparmor.d/groups/gnome/gnome-weather | 37 +++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 apparmor.d/groups/gnome/gnome-weather diff --git a/apparmor.d/groups/gnome/gnome-weather b/apparmor.d/groups/gnome/gnome-weather new file mode 100644 index 00000000..1b59bcf3 --- /dev/null +++ b/apparmor.d/groups/gnome/gnome-weather @@ -0,0 +1,37 @@ +# apparmor.d - Full set of apparmor profiles +# Copyright (C) 2024 Alexandre Pujol +# SPDX-License-Identifier: GPL-2.0-only + +abi , + +include + +@{exec_path} = @{bin}/gnome-weather /usr/share/org.gnome.Weather/org.gnome.Weather +profile gnome-weather @{exec_path} { + include + include + include + include + include + + network inet dgram, + network inet stream, + network inet6 dgram, + network inet6 stream, + network netlink raw, + + @{exec_path} mr, + + @{bin}/gjs-console rix, + + /usr/share/org.gnome.Weather/{,**} r, + + owner @{user_cache_dirs}/libgweather/{,**} rw, + + @{PROC}/sys/net/ipv6/conf/all/disable_ipv6 r, + owner @{PROC}/@{pid}/mounts r, + owner @{PROC}/@{pid}/stat r, + owner @{PROC}/@{pid}/task/@{tid}/stat r, + + include if exists +} \ No newline at end of file