35 lines
851 B
Text
35 lines
851 B
Text
# apparmor.d - Full set of apparmor profiles
|
|
# Copyright (C) 2021 Alexandre Pujol <alexandre@pujol.io>
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
abi <abi/3.0>,
|
|
|
|
include <tunables/global>
|
|
|
|
@{exec_path} = @{libexec}/{,NetworkManager/}nm-openvpn-service
|
|
profile nm-openvpn-service @{exec_path} {
|
|
include <abstractions/base>
|
|
include <abstractions/nameservice-strict>
|
|
|
|
capability kill,
|
|
capability net_admin,
|
|
|
|
signal (send) set=(term) peer=openvpn,
|
|
|
|
@{exec_path} mr,
|
|
|
|
@{libexec}/{,NetworkManager/}nm-openvpn-auth-dialog rPx,
|
|
@{libexec}/{,NetworkManager/}nm-openvpn-service-openvpn-helper rPx,
|
|
/{usr/,}{s,}bin/openvpn rPx,
|
|
/{usr/,}bin/{,ba,da}sh rix,
|
|
/{usr/,}bin/kmod rPx,
|
|
|
|
@{run}/NetworkManager/nm-openvpn-@{uuid} rw,
|
|
|
|
/dev/net/tun rw,
|
|
/dev/tty rw,
|
|
|
|
owner @{PROC}/@{pid}/fd/ r,
|
|
|
|
include if exists <local/nm-openvpn-service>
|
|
}
|