-
-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add profile for iftop * iftop: clean up formatting
- Loading branch information
Showing
1 changed file
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, | ||
|
||
owner @{HOME}/.iftoprc r, | ||
|
||
# When running in promiscuous mode | ||
@{sys}/devices/**/net/*/statistics/* r, | ||
|
||
include if exists <local/iftop> | ||
} | ||
|
||
# vim:syntax=apparmor |