feat(profile): ufw: integrate ufw-init in ufw, use sysctl in subprofile.
This commit is contained in:
parent
3ffff07f3f
commit
bb6ca01718
2 changed files with 37 additions and 6 deletions
|
|
@ -30,13 +30,12 @@ profile ufw @{exec_path} flags=(attach_disconnected) {
|
|||
@{exec_path} mr,
|
||||
|
||||
@{python_path} rix,
|
||||
@{bin}/ r,
|
||||
@{sbin}/ r,
|
||||
@{bin}/cat rix,
|
||||
@{bin}/echo rix,
|
||||
@{bin}/env r,
|
||||
@{bin}/kmod rCx -> kmod,
|
||||
@{lib}/ufw/ufw-init rix,
|
||||
@{sbin}/sysctl rix,
|
||||
@{lib}/ufw/ufw-init rPx,
|
||||
@{sbin}/sysctl rCx -> sysctl,
|
||||
@{sbin}/xtables-legacy-multi rix,
|
||||
@{sbin}/xtables-nft-multi rix,
|
||||
|
||||
|
|
@ -70,6 +69,21 @@ profile ufw @{exec_path} flags=(attach_disconnected) {
|
|||
include if exists <local/ufw_kmod>
|
||||
}
|
||||
|
||||
profile sysctl {
|
||||
include <abstractions/base>
|
||||
include <abstractions/consoles>
|
||||
|
||||
capability net_admin,
|
||||
|
||||
@{sbin}/sysctl mr,
|
||||
|
||||
/etc/ufw/sysctl.conf r,
|
||||
|
||||
@{PROC}/sys/net/ipv{4,6}/** rw,
|
||||
|
||||
include if exists <local/ufw_sysctl>
|
||||
}
|
||||
|
||||
include if exists <local/ufw>
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -11,6 +11,7 @@ profile ufw-init @{exec_path} {
|
|||
include <abstractions/base>
|
||||
include <abstractions/nameservice-strict>
|
||||
|
||||
capability dac_read_search,
|
||||
capability net_admin,
|
||||
|
||||
network inet dgram,
|
||||
|
|
@ -22,7 +23,8 @@ profile ufw-init @{exec_path} {
|
|||
@{exec_path} mr,
|
||||
|
||||
@{sh_path} rix,
|
||||
@{sbin}/sysctl rix,
|
||||
@{bin}/echo rix,
|
||||
@{sbin}/sysctl rCx -> sysctl,
|
||||
@{sbin}/xtables-legacy-multi rix,
|
||||
@{sbin}/xtables-nft-multi rix,
|
||||
|
||||
|
|
@ -30,8 +32,23 @@ profile ufw-init @{exec_path} {
|
|||
/etc/ufw/* r,
|
||||
|
||||
@{PROC}/@{pid}/net/ip_tables_names r,
|
||||
# @{PROC}/sys/net/ipv{4,6}/** rw,
|
||||
|
||||
profile sysctl {
|
||||
include <abstractions/base>
|
||||
include <abstractions/consoles>
|
||||
|
||||
capability net_admin,
|
||||
|
||||
@{sbin}/sysctl mr,
|
||||
|
||||
/etc/ufw/sysctl.conf r,
|
||||
|
||||
@{PROC}/sys/net/ipv{4,6}/** rw,
|
||||
|
||||
include if exists <local/ufw-init_sysctl>
|
||||
}
|
||||
|
||||
include if exists <local/ufw-init>
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue