mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-01-18 08:58:15 +01:00
feat(profiles): add chronyd.
This commit is contained in:
parent
b16d172e22
commit
d29bee2789
1 changed files with 37 additions and 0 deletions
37
apparmor.d/profiles-a-f/chronyd
Normal file
37
apparmor.d/profiles-a-f/chronyd
Normal 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>
|
||||||
|
}
|
Loading…
Reference in a new issue