diff --git a/apparmor.d/profiles-g-l/install-catalog b/apparmor.d/profiles-g-l/install-catalog new file mode 100644 index 00000000..6c508b3c --- /dev/null +++ b/apparmor.d/profiles-g-l/install-catalog @@ -0,0 +1,29 @@ +# 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/install-catalog +profile install-catalog @{exec_path} { + include + + capability dac_read_search, + + @{exec_path} mr, + + /{usr/,}bin/{,ba}sh rix, + /{usr/,}bin/basename rix, + /{usr/,}bin/grep rix, + /{usr/,}bin/mv rix, + /{usr/,}bin/rm rix, + /{usr/,}bin/sed rix, + + /etc/sgml/catalog{,.new} rw, + /etc/sgml/sgml-docbook.cat{,.new} rw, + /etc/sgml/sgml-ent.cat{,.new} rw, + + include if exists +} \ No newline at end of file