38 lines
948 B
Text
38 lines
948 B
Text
# apparmor.d - Full set of apparmor profiles
|
|
# Copyright (C) 2019-2021 Mikhail Morfikov
|
|
# Copyright (C) 2021 Alexandre Pujol <alexandre@pujol.io>
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
abi <abi/3.0>,
|
|
|
|
include <tunables/global>
|
|
|
|
@{exec_path} = /usr/share/command-not-found/command-not-found
|
|
@{exec_path} += /{usr/,}bin/command-not-found
|
|
@{exec_path} += /{usr/,}lib/command-not-found
|
|
profile command-not-found @{exec_path} {
|
|
include <abstractions/base>
|
|
include <abstractions/apt-common>
|
|
include <abstractions/consoles>
|
|
include <abstractions/nameservice-strict>
|
|
include <abstractions/python>
|
|
|
|
@{exec_path} r,
|
|
/{usr/,}bin/python3.[0-9]* r,
|
|
|
|
/{usr/,}bin/lsb_release rPx -> lsb_release,
|
|
/{usr/,}bin/snap rPx,
|
|
|
|
/var/lib/command-not-found/commands.db rwk,
|
|
|
|
/usr/share/command-not-found/{,**} r,
|
|
|
|
owner @{PROC}/@{pid}/fd/ r,
|
|
|
|
/dev/tty[0-9]* rw,
|
|
|
|
# Silencer
|
|
deny /usr/lib/ r,
|
|
|
|
include if exists <local/command-not-found>
|
|
}
|