apparmor.d/apparmor.d/profiles-s-z/speedtest
2024-09-09 19:57:49 +01:00

37 lines
776 B
Text

# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2020-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}/speedtest{,-cli}
profile speedtest @{exec_path} {
include <abstractions/base>
include <abstractions/nameservice-strict>
include <abstractions/ssl_certs>
include <abstractions/python>
network inet dgram,
network inet6 dgram,
network inet stream,
network inet6 stream,
network netlink raw,
@{exec_path} r,
@{bin}/python3.@{int} r,
@{bin}/ r,
@{bin}/file rix,
@{bin}/uname rix,
/etc/magic r,
owner @{PROC}/@{pid}/fd/ r,
include if exists <local/speedtest>
}
# vim:syntax=apparmor