34 lines
769 B
Text
34 lines
769 B
Text
# apparmor.d - Full set of apparmor profiles
|
|
# Copyright (C) 2019-2021 Mikhail Morfikov
|
|
# Copyright (C) 2022-2024 Alexandre Pujol <alexandre@pujol.io>
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
abi <abi/4.0>,
|
|
|
|
include <tunables/global>
|
|
|
|
@{exec_path} = @{bin}/lsblk
|
|
profile lsblk @{exec_path} flags=(attach_disconnected) {
|
|
include <abstractions/base>
|
|
include <abstractions/consoles>
|
|
include <abstractions/disks-read>
|
|
include <abstractions/nameservice-strict>
|
|
|
|
capability dac_read_search,
|
|
audit capability dac_override,
|
|
|
|
@{exec_path} mr,
|
|
|
|
@{PROC}/swaps r,
|
|
owner @{PROC}/@{pid}/mountinfo r,
|
|
|
|
@{run}/mount/utab r,
|
|
|
|
# File Inherit
|
|
deny network inet stream,
|
|
deny network inet6 stream,
|
|
|
|
include if exists <local/lsblk>
|
|
}
|
|
|
|
# vim:syntax=apparmor
|