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

46 lines
1.0 KiB
Plaintext
Raw Normal View History

# 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
2020-12-10 22:33:39 +01:00
abi <abi/3.0>,
2020-12-10 22:33:39 +01:00
include <tunables/global>
@{exec_path} = @{bin}/syncthing
profile syncthing @{exec_path} {
2020-12-10 22:33:39 +01:00
include <abstractions/base>
include <abstractions/nameservice-strict>
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,
2024-04-10 00:48:33 +02:00
/usr/share/mime/{,**} r,
/etc/mime.types r,
2022-02-08 19:16:45 +01:00
owner @{HOME}/ r,
owner @{HOME}/@{XDG_DATA_DIR}/syncthing/{,**} rwk,
2022-02-08 19:16:45 +01:00
owner @{user_config_dirs}/syncthing/{,**} rwk,
owner @{user_state_dirs}/syncthing/{,**} rwk,
2022-02-08 19:16:45 +01:00
/home/ r,
2021-10-07 15:50:46 +02:00
@{user_sync_dirs}/{,**} rw,
2021-10-07 15:50:46 +02:00
@{sys}/kernel/mm/transparent_hugepage/hpage_pmd_size r,
2021-10-07 15:50:46 +02:00
@{PROC}/sys/net/core/somaxconn r,
@{PROC}/@{pids}/net/route r,
2020-12-10 22:33:39 +01:00
include if exists <local/syncthing>
}