add profiles for wget and curl

This commit is contained in:
valoq 2025-07-23 19:26:49 +02:00
parent e490a11c1a
commit 6feac19484
No known key found for this signature in database
GPG key ID: 19F09A0FB865CBD8
2 changed files with 63 additions and 0 deletions

View 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

View 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