apparmor.d/apparmor.d/profiles-s-z/s3fs
2022-02-05 20:57:49 +00:00

39 lines
No EOL
810 B
Text

# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2022 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-2.0-only
abi <abi/3.0>,
include <tunables/global>
@{exec_path} = /{usr/,}bin/s3fs
profile s3fs @{exec_path} {
include <abstractions/base>
include <abstractions/nameservice-strict>
include <abstractions/openssl>
include <abstractions/ssl_certs>
network inet dgram,
network inet6 dgram,
network inet stream,
network inet6 stream,
network netlink raw,
mount fstype=fuse.s3fs -> @{MOUNTS}/*/,
mount fstype=fuse.s3fs -> @{MOUNTS}/*/*/,
@{exec_path} mr,
/{usr/,}bin/fusermount rPx,
/etc/passwd-s3fs r,
owner @{HOME}/.passwd-s3fs r,
owner /tmp/* rw,
@{PROC}/sys/kernel/random/boot_id r,
/dev/fuse rw,
include if exists <local/s3fs>
}