# apparmor.d - Full set of apparmor profiles # Copyright (C) 2020-2021 Mikhail Morfikov # Copyright (C) 2021-2024 Alexandre Pujol # SPDX-License-Identifier: GPL-2.0-only abi , include @{exec_path} = @{bin}/syncthing profile syncthing @{exec_path} { include include include 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, /usr/share/mime/{,**} r, /etc/mime.types r, owner @{HOME}/ r, owner @{HOME}/@{XDG_DATA_DIR}/syncthing/{,**} rwk, owner @{user_config_dirs}/syncthing/{,**} rwk, owner @{user_state_dirs}/syncthing/{,**} rwk, /home/ r, @{user_sync_dirs}/{,**} rw, @{PROC}/@{pids}/net/route r, @{PROC}/sys/net/core/somaxconn r, owner @{PROC}/@{pid}/cgroup r, owner @{PROC}/@{pid}/mountinfo r, include if exists } # vim:syntax=apparmor