apparmor.d/apparmor.d/profiles-s-z/s3fs

71 lines
1.4 KiB
Plaintext
Raw Normal View History

2022-02-05 21:57:49 +01:00
# 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}/,
2022-02-05 21:57:49 +01:00
mount fstype=fuse.s3fs -> @{MOUNTS}/*/,
@{exec_path} mr,
2022-03-02 19:15:33 +01:00
/{usr/,}bin/fusermount{,3} rCx -> fusermount,
2022-02-05 21:57:49 +01:00
2022-03-02 19:15:33 +01:00
/etc/mime.types r,
2022-02-05 21:57:49 +01:00
/etc/passwd-s3fs r,
owner @{HOME}/.passwd-s3fs r,
owner @{MOUNTS}/ r,
2022-03-02 19:15:33 +01:00
owner @{MOUNTS}/*/ r,
owner /tmp/* rw,
2022-02-05 21:57:49 +01:00
/dev/fuse rw,
2022-03-02 19:15:33 +01:00
profile fusermount {
include <abstractions/base>
include <abstractions/nameservice-strict>
2023-01-27 23:31:55 +01:00
capability dac_read_search,
2022-03-02 19:15:33 +01:00
capability sys_admin,
network inet stream,
network inet6 stream,
2023-01-27 23:31:55 +01:00
mount fstype=fuse.s3fs -> @{MOUNTS}/,
mount fstype=fuse.s3fs -> @{MOUNTS}/*/,
umount @{MOUNTS}/,
umount @{MOUNTS}/*/,
2022-03-02 19:15:33 +01:00
/{usr/,}bin/fusermount{,3} mr,
/etc/fuse.conf r,
@{MOUNTS}/ r,
2022-03-02 19:15:33 +01:00
@{MOUNTS}/*/ r,
2022-04-13 23:04:36 +02:00
owner /tmp/s3fstmp.* rw,
2022-03-02 19:15:33 +01:00
@{PROC}/@{pids}/mounts r,
/dev/fuse rw,
}
2022-02-05 21:57:49 +01:00
include if exists <local/s3fs>
}