| Server IP : 178.105.222.151 / Your IP : 216.73.216.38 Web Server : nginx/1.28.3 System : Linux MNK 7.0.0-15-generic #15-Ubuntu SMP PREEMPT_DYNAMIC Wed Apr 22 16:06:43 UTC 2026 x86_64 User : www-data ( 33) PHP Version : 8.5.4 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /etc/apparmor.d/ |
Upload File : |
# vim: ft=apparmor
#------------------------------------------------------------------
# Copyright (C) 2024 Canonical Ltd.
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of version 2 of the GNU General Public
# License published by the Free Software Foundation.
#------------------------------------------------------------------
abi <abi/5.0>,
include <tunables/global>
profile wg-quick /usr/bin/wg-quick flags=(attach_disconnected) {
include <abstractions/base>
include <abstractions/consoles>
capability dac_read_search,
capability net_admin,
# Network access rules
network netlink raw,
network unix stream,
# use wg aa profile
file mrpx /usr/bin/wg -> wg,
# binaries called from within wg-quick
file mrix @{coreutil_dirs}readlink,
file mrix @{coreutil_dirs}stat,
file mrix @{coreutil_dirs}cat,
file mrix @{coreutil_dirs}rm,
file mrix @{coreutil_dirs}mv,
file mrix @{coreutil_dirs}sync,
file mrix @{coreutil_dirs}sort,
file mrix /usr/sbin/xtables-nft-multi,
file mrix /usr/bin/resolvectl,
file mrix /usr/sbin/resolvconf,
file PUx /usr/bin/systemd-creds,
# dbus access
file rw @{run}/dbus/system_bus_socket,
dbus (send)
bus=system
path=/org/freedesktop/resolve1
interface=org.freedesktop.resolve1.Manager
member="SetLink{DNSEx,Domains}"
peer=(name=org.freedesktop.resolve1, label=unconfined),
dbus (send)
bus=system
path=/org/freedesktop/DBus
interface=org.freedesktop.DBus
member="Hello"
peer=(name=org.freedesktop.DBus, label=unconfined),
# Sub-profile for nft tool restrictions
file mrCx /usr/sbin/nft,
profile nft /usr/sbin/nft {
include <abstractions/base>
capability net_admin,
# Allow executable mapping and read for the binary
file mr /usr/sbin/nft,
# Network access rules
network netlink raw,
file r /usr/share/iproute2/rt_realms,
file r /usr/share/iproute2/group,
}
# Sub-profile for IP tool restrictions
file mrCx /usr/bin/ip,
profile ip /usr/bin/ip {
include <abstractions/base>
capability net_admin,
capability sys_module,
# Allow executable mapping and read for the binary
file mr /usr/bin/ip,
# Network access rules
network netlink raw,
file r /usr/share/iproute2/group,
file r /usr/share/iproute2/rt_tables,
file r @{run}/netns/{,**},
}
# Sub-profile for sysctl tool restrictions
file mrCx /usr/sbin/sysctl,
profile sysctl /usr/sbin/sysctl {
include <abstractions/base>
# Allow executable mapping and read for the binary
file mr /usr/sbin/sysctl,
file w @{PROC}/sys/net/ipv4/conf/all/src_valid_mark,
}
# wireguard configuration and key files
file rw @{etc_rw}/wireguard/{,**},
# Allow executable mapping and read for the binary
file mr @{exec_path},
# Process-specific access
file r @{PROC}/@{pid}/net/ip_tables_names,
# Site-specific additions and overrides. See local/README for details.
include if exists <local/wg-quick>
}