mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-01-19 09:28:17 +01:00
33 lines
863 B
Text
33 lines
863 B
Text
# vim:syntax=apparmor
|
|
# ------------------------------------------------------------------
|
|
#
|
|
# Copyright (C) 2021 Mikhail Morfikov
|
|
#
|
|
# This program is free software; you can redistribute it and/or
|
|
# modify it under the terms of version 2 of the GNU General Public
|
|
# License published by the Free Software Foundation.
|
|
#
|
|
# ------------------------------------------------------------------
|
|
|
|
abi <abi/3.0>,
|
|
|
|
include <tunables/global>
|
|
|
|
@{exec_path} = /{usr/,}bin/sshfs
|
|
profile sshfs @{exec_path} flags=(complain) {
|
|
include <abstractions/base>
|
|
|
|
@{exec_path} mr,
|
|
|
|
/{usr/,}bin/ssh rPx,
|
|
/{usr/,}bin/fusermount{,3} rPx,
|
|
|
|
/dev/fuse rw,
|
|
|
|
mount fstype=fuse.sshfs -> @{HOME}/*/,
|
|
mount fstype=fuse.sshfs -> @{HOME}/*/*/,
|
|
mount fstype=fuse.sshfs -> /media/*/,
|
|
mount fstype=fuse.sshfs -> /media/*/*/,
|
|
|
|
include if exists <local/sshfs>
|
|
}
|