feat(profiles): add chronyd.

This commit is contained in:
Alexandre Pujol 2023-02-04 23:56:56 +00:00
parent b16d172e22
commit d29bee2789
Failed to generate hash of commit

View file

@ -0,0 +1,37 @@
# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2023 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-2.0-only
abi <abi/3.0>,
include <tunables/global>
@{exec_path} = /{usr/,}{s,}bin/chronyd
profile chronyd @{exec_path} flags=(attach_disconnected) {
include <abstractions/base>
include <abstractions/nameservice-strict>
capability dac_override,
capability dac_read_search,
capability net_bind_service,
capability setgid,
capability setuid,
capability sys_time,
network inet dgram,
network inet6 dgram,
network netlink raw,
@{exec_path} mr,
/etc/chrony.conf r,
/etc/chrony.d/{,*} r,
/var/lib/chrony/drift* rw,
@{run}/chrony-dhcp/ r,
@{run}/chrony/chronyd.pid rw,
@{run}/chrony/chronyd.sock rw,
include if exists <local/chronyd>
}