49 lines
1.1 KiB
Text
49 lines
1.1 KiB
Text
# apparmor.d - Full set of apparmor profiles
|
|
# Copyright (C) 2020-2021 Mikhail Morfikov
|
|
# Copyright (C) 2021-2024 Alexandre Pujol <alexandre@pujol.io>
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
abi <abi/4.0>,
|
|
|
|
include <tunables/global>
|
|
|
|
@{exec_path} = @{bin}/syncthing
|
|
profile syncthing @{exec_path} {
|
|
include <abstractions/base>
|
|
include <abstractions/consoles>
|
|
include <abstractions/mime>
|
|
include <abstractions/nameservice-strict>
|
|
include <abstractions/sqlite>
|
|
include <abstractions/ssl_certs>
|
|
|
|
network inet dgram,
|
|
network inet6 dgram,
|
|
network inet stream,
|
|
network inet6 stream,
|
|
network netlink raw,
|
|
|
|
@{exec_path} mrix,
|
|
|
|
@{open_path} rPx -> child-open,
|
|
@{bin}/ip rix,
|
|
|
|
@{HOME}/ r,
|
|
@{HOME}/** rwk,
|
|
|
|
/home/ r,
|
|
@{user_sync_dirs}/{,**} rw,
|
|
|
|
@{PROC}/@{pids}/net/route r,
|
|
@{PROC}/bus/pci/devices r,
|
|
@{PROC}/modules r,
|
|
@{PROC}/sys/kernel/osrelease r,
|
|
@{PROC}/sys/net/core/somaxconn r,
|
|
owner @{PROC}/@{pid}/cgroup r,
|
|
owner @{PROC}/@{pid}/mountinfo r,
|
|
owner @{PROC}/@{pid}/stat r,
|
|
owner @{PROC}/@{pid}/statm r,
|
|
|
|
include if exists <local/syncthing>
|
|
}
|
|
|
|
# vim:syntax=apparmor
|