apparmor.d/apparmor.d/profiles-g-l/install-catalog

29 lines
644 B
Text
Raw Normal View History

2022-06-03 21:22:07 +02:00
# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2022 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-2.0-only
abi <abi/3.0>,
include <tunables/global>
@{exec_path} = @{bin}/install-catalog
2022-06-03 21:22:07 +02:00
profile install-catalog @{exec_path} {
include <abstractions/base>
capability dac_read_search,
@{exec_path} mr,
@{bin}/{,ba}sh rix,
@{bin}/basename rix,
@{bin}/grep rix,
@{bin}/mv rix,
@{bin}/rm rix,
@{bin}/sed rix,
2022-06-03 21:22:07 +02:00
/etc/sgml/catalog{,.new} rw,
/etc/sgml/sgml-docbook.cat{,.new} rw,
/etc/sgml/sgml-ent.cat{,.new} rw,
include if exists <local/install-catalog>
}