39 lines
No EOL
810 B
Text
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>
|
|
} |