2
0
mirror of https://gitlab.com/apparmor/apparmor synced 2025-08-22 01:57:43 +00:00

profiles: mbsync: make use of nameservice-strict abstraction

Signed-off-by: Eduardo Barretto <eduardo.barretto@canonical.com>
This commit is contained in:
Eduardo Barretto 2024-11-07 19:03:30 +01:00
parent 74ad177d07
commit 5f0fcfcae9
No known key found for this signature in database
GPG Key ID: B92697DB02554590

View File

@ -15,6 +15,7 @@ include <tunables/global>
profile mbsync /usr/bin/mbsync {
include <abstractions/base>
include <abstractions/nameservice-strict>
include <abstractions/ssl_certs>
network inet dgram,
@ -23,12 +24,7 @@ profile mbsync /usr/bin/mbsync {
network inet6 stream,
network netlink raw,
@{etc_ro}/gai.conf r,
@{etc_ro}/host.conf r,
@{etc_ro}/hosts r,
@{etc_ro}/nsswitch.conf r,
@{etc_ro}/ssl/openssl.cnf r,
@{run}/systemd/resolve/stub-resolv.conf r,
/usr/bin/mbsync r,
owner @{HOME}/.mbsyncrc r,
owner @{HOME}/Mail/**/ r,