apparmor.d/apparmor.d/groups/apt/update-apt-xapian-index
2024-02-07 00:16:21 +01:00

45 lines
969 B
Text

# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2019-2021 Mikhail Morfikov
# Copyright (C) 2021-2024 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-2.0-only
abi <abi/3.0>,
include <tunables/global>
@{exec_path} = @{bin}/update-apt-xapian-index
profile update-apt-xapian-index @{exec_path} {
include <abstractions/base>
include <abstractions/apt-common>
include <abstractions/python>
@{exec_path} r,
@{bin}/python3.@{int} r,
@{bin}/ r,
@{bin}/dpkg rPx -> child-dpkg,
/usr/share/apt-xapian-index/{,**} r,
/var/cache/apt-xapian-index/ rw,
/var/cache/apt-xapian-index/** rwk,
/var/lib/apt-xapian-index/ rw,
/var/lib/apt-xapian-index/* rwk,
/var/cache/apt/ r,
/var/cache/apt/** rwk,
owner @{PROC}/@{pid}/fd/ r,
/var/lib/debtags/package-tags r,
/var/lib/dbus/machine-id r,
/etc/machine-id r,
# file_inherit
owner /dev/tty@{int} rw,
include if exists <local/update-apt-xapian-index>
}