apparmor.d/apparmor.d/groups/systemd/systemd-timesyncd
2021-04-02 10:18:29 +01:00

31 lines
744 B
Text

# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2019-2021 Mikhail Morfikov
# 2021 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-2.0-only
abi <abi/3.0>,
include <tunables/global>
@{exec_path} = /{usr/,}lib/systemd/systemd-timesyncd
profile systemd-timesyncd @{exec_path} {
include <abstractions/base>
include <abstractions/systemd-common>
include <abstractions/nameservice-strict>
network inet dgram,
network inet6 dgram,
capability sys_time,
@{exec_path} mr,
/etc/systemd/timesyncd.conf r,
owner /var/lib/systemd/timesync/clock rw,
owner @{run}/systemd/timesync/synchronized rw,
@{run}/systemd/netif/state r,
include if exists <local/systemd-timesyncd>
}