diff --git a/apparmor.d/groups/gnome/glib-compile-schemas b/apparmor.d/groups/gnome/glib-compile-schemas new file mode 100644 index 00000000..94511679 --- /dev/null +++ b/apparmor.d/groups/gnome/glib-compile-schemas @@ -0,0 +1,20 @@ +# apparmor.d - Full set of apparmor profiles +# Copyright (C) 2021 Alexandre Pujol +# SPDX-License-Identifier: GPL-3.0-or-later + +abi , + +include + +@{exec_path} = /{usr/,}bin/glib-compile-schemas +profile glib-compile-schemas @{exec_path} { + include + + @{exec_path} mr, + + /usr/share/glib-2.0/schemas/{,*} r, + /usr/share/glib-2.0/schemas/gschemas.compiled.[A-Z0-9]* rw, + /usr/share/glib-2.0/schemas/gschemas.compiled rw, + + include if exists +}