mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-02-12 05:05:11 +01:00
37 lines
No EOL
799 B
Text
37 lines
No EOL
799 B
Text
# 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} = @{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>
|
|
} |