add profiles for wget and curl
This commit is contained in:
parent
e490a11c1a
commit
6feac19484
2 changed files with 63 additions and 0 deletions
31
apparmor.d/profiles-s-z/curl
Normal file
31
apparmor.d/profiles-s-z/curl
Normal file
|
|
@ -0,0 +1,31 @@
|
||||||
|
# apparmor.d - Full set of apparmor profiles
|
||||||
|
# Copyright (C) 2025 valoq <valoq@mailbox.org>
|
||||||
|
# SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
|
||||||
|
abi <abi/4.0>,
|
||||||
|
|
||||||
|
include <tunables/global>
|
||||||
|
|
||||||
|
@{exec_path} = @{bin}/curl
|
||||||
|
profile curl @{exec_path} {
|
||||||
|
include <abstractions/base>
|
||||||
|
include <abstractions/ssl_certs>
|
||||||
|
include <abstractions/p11-kit>
|
||||||
|
include <abstractions/nameservice-strict>
|
||||||
|
include <abstractions/user-download-strict>
|
||||||
|
|
||||||
|
network inet dgram,
|
||||||
|
network inet6 dgram,
|
||||||
|
network inet stream,
|
||||||
|
network inet6 stream,
|
||||||
|
network netlink raw,
|
||||||
|
|
||||||
|
@{exec_path} mr,
|
||||||
|
|
||||||
|
owner @{HOME}/.curlrc r,
|
||||||
|
owner @{user_config_dirs}/curlrc r,
|
||||||
|
|
||||||
|
include if exists <local/curl>
|
||||||
|
}
|
||||||
|
|
||||||
|
# vim:syntax=apparmor
|
||||||
32
apparmor.d/profiles-s-z/wget
Normal file
32
apparmor.d/profiles-s-z/wget
Normal file
|
|
@ -0,0 +1,32 @@
|
||||||
|
# apparmor.d - Full set of apparmor profiles
|
||||||
|
# Copyright (C) 2025 valoq <valoq@mailbox.org>
|
||||||
|
# SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
|
||||||
|
abi <abi/4.0>,
|
||||||
|
|
||||||
|
include <tunables/global>
|
||||||
|
|
||||||
|
@{exec_path} = @{bin}/wget
|
||||||
|
profile wget @{exec_path} {
|
||||||
|
include <abstractions/base>
|
||||||
|
include <abstractions/ssl_certs>
|
||||||
|
include <abstractions/p11-kit>
|
||||||
|
include <abstractions/nameservice-strict>
|
||||||
|
include <abstractions/user-download-strict>
|
||||||
|
|
||||||
|
network inet dgram,
|
||||||
|
network inet6 dgram,
|
||||||
|
network inet stream,
|
||||||
|
network inet6 stream,
|
||||||
|
network netlink raw,
|
||||||
|
|
||||||
|
@{exec_path} mr,
|
||||||
|
|
||||||
|
/etc/wgetrc r,
|
||||||
|
|
||||||
|
owner @{HOME}/.wget-hsts rwk,
|
||||||
|
|
||||||
|
include if exists <local/wget>
|
||||||
|
}
|
||||||
|
|
||||||
|
# vim:syntax=apparmor
|
||||||
Loading…
Add table
Add a link
Reference in a new issue