mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-02-07 02:35:06 +01:00
![REmerald](/assets/img/avatar_default.png)
Move vim syntax comment to the end of the file, separated by newline, as requested in #380.
44 lines
981 B
Text
44 lines
981 B
Text
# apparmor.d - Full set of apparmor profiles
|
|
# Copyright (C) 2022-2024 Alexandre Pujol <alexandre@pujol.io>
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
abi <abi/3.0>,
|
|
|
|
include <tunables/global>
|
|
|
|
@{exec_path} = @{bin}/fail2ban-server
|
|
profile fail2ban-server @{exec_path} flags=(attach_disconnected) {
|
|
include <abstractions/base>
|
|
include <abstractions/nameservice-strict>
|
|
include <abstractions/python>
|
|
|
|
capability dac_read_search,
|
|
capability net_admin,
|
|
|
|
network netlink raw,
|
|
|
|
@{exec_path} mr,
|
|
|
|
@{sh_path} rix,
|
|
@{bin}/xtables-nft-multi rix,
|
|
@{bin}/iptables rix,
|
|
|
|
@{bin}/ r,
|
|
@{bin}/python3.@{int} r,
|
|
|
|
/etc/fail2ban/{,**} r,
|
|
|
|
/var/lib/fail2ban/fail2ban.sqlite3 rwk,
|
|
/var/log/auth.log r,
|
|
/var/log/fail2ban.log w,
|
|
/var/log/journal/@{hex32}/system.journal r,
|
|
|
|
@{run}/fail2ban/fail2ban.pid rw,
|
|
@{run}/fail2ban/fail2ban.sock rw,
|
|
|
|
owner @{PROC}/@{pid}/fd/ r,
|
|
|
|
include if exists <local/fail2ban-server>
|
|
}
|
|
|
|
# vim:syntax=apparmor
|