Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add profile for iftop #604

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions apparmor.d/profiles-g-l/iftop
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2024 Zane Zakraisek <[email protected]>
# SPDX-License-Identifier: GPL-2.0-only

abi <abi/4.0>,

include <tunables/global>

@{exec_path} = @{bin}/iftop
profile iftop @{exec_path} {
include <abstractions/base>
include <abstractions/consoles>
include <abstractions/nameservice-strict>

capability net_raw,

network inet dgram,
network inet6 dgram,
network netlink raw,
network packet raw,

@{exec_path} mr,

/usr/share/terminfo/** r,

#When running in promiscuous mode
/sys/devices/**/net/*/statistics/* r,

owner @{HOME}/.iftoprc r,

include if exists <local/iftop>
}

# vim:syntax=apparmor