apparmor.d/apparmor.d/profiles-s-z/updatedb.plocate
Alexandre Pujol 557d905543
Merge branch 'tunables' of https://github.com/nobody43/apparmor.d into nobody43-tunables
* 'tunables' of https://github.com/nobody43/apparmor.d:
  dbus temp tails
  Update apparmor.d
  Update gdm-runtime-config
  more unrelated changes
  adjust date-time
  random tails
  rename to int, convert more profiles
  fixes
  tunables
2023-08-17 20:01:53 +01:00

39 lines
794 B
Text

# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2021 Mikhail Morfikov
# SPDX-License-Identifier: GPL-2.0-only
abi <abi/3.0>,
include <tunables/global>
@{exec_path} = @{bin}/updatedb.plocate
profile updatedb.plocate @{exec_path} {
include <abstractions/base>
include <abstractions/nameservice-strict>
capability dac_read_search,
capability chown,
capability fowner,
capability sys_ptrace,
ptrace (read),
@{exec_path} mr,
/etc/updatedb.conf r,
owner @{PROC}/@{pid}/mountinfo r,
owner @{PROC}/@{pid}/mounts r,
/var/lib/plocate/plocate.db rw,
/var/lib/plocate/#@{int} rw,
/var/lib/plocate/plocate.db rwl -> /var/lib/plocate/#@{int},
/ r,
/**/ r,
# file_inherit
@{run}/plocate.daily.lock r,
include if exists <local/updatedb.plocate>
}