diff --git a/apparmor.d/profiles-g-l/glib-compile-resources b/apparmor.d/profiles-g-l/glib-compile-resources new file mode 100644 index 000000000..e1dde8d64 --- /dev/null +++ b/apparmor.d/profiles-g-l/glib-compile-resources @@ -0,0 +1,22 @@ +# apparmor.d - Full set of apparmor profiles +# Copyright (C) 2022 Alexandre Pujol +# SPDX-License-Identifier: GPL-2.0-only + +abi , + +include + +@{exec_path} = /{usr/,}bin/glib-compile-resources +profile glib-compile-resources @{exec_path} { + include + + @{exec_path} mr, + + /{usr/,}bin/xmllint rix, + + /tmp/resource-* rw, + + owner @{PROC}/@{pid}/fd/ r, + + include if exists +}