diff --git a/apparmor.d/abstractions/common/gnome b/apparmor.d/abstractions/common/gnome new file mode 100644 index 00000000..275853d5 --- /dev/null +++ b/apparmor.d/abstractions/common/gnome @@ -0,0 +1,27 @@ +# apparmor.d - Full set of apparmor profiles +# Copyright (C) 2024 Alexandre Pujol +# SPDX-License-Identifier: GPL-2.0-only + +# Minimal set of rules for all gnome based UI application. + + include + include + include + include + + @{open_path} rPx -> child-open-help, + + /usr/share/@{profile_name}/{,**} r, + + owner @{user_cache_dirs}/@{profile_name}/ rw, + owner @{user_cache_dirs}/@{profile_name}/** rwlk, + + owner @{user_config_dirs}/@{profile_name}/ rw, + owner @{user_config_dirs}/@{profile_name}/** rwlk, + + owner @{user_share_dirs}/@{profile_name}/ rw, + owner @{user_share_dirs}/@{profile_name}/** rwlk, + + owner @{PROC}/@{pid}/cmdline r, + + include if exists \ No newline at end of file