Add s3fs profile.

This commit is contained in:
Alexandre Pujol 2022-02-05 20:57:49 +00:00
parent 10fd4ed8dd
commit 7274f98fa6
No known key found for this signature in database
GPG Key ID: C5469996F0DF68EC
2 changed files with 40 additions and 0 deletions

View File

@ -0,0 +1,39 @@
# 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>
}

View File

@ -104,6 +104,7 @@ pinentry-gtk-2 complain
podman attach_disconnected,complain
run-parts complain
runuser complain
s3fs complain
seahorse complain
slirp4netns attach_disconnected,complain
spice-client-glib-usb-acl-helper complain