Create profile for secure-time-sync
Related to https://gitlab.com/madaidan/secure-time-sync
This commit is contained in:
parent
7581eacdc6
commit
8153927d4c
1 changed files with 38 additions and 0 deletions
38
apparmor.d/profiles-s-z/secure-time-sync
Normal file
38
apparmor.d/profiles-s-z/secure-time-sync
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
# apparmor.d - Full set of apparmor profiles
|
||||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
|
||||
abi <abi/3.0>,
|
||||
|
||||
include <tunables/global>
|
||||
|
||||
@{exec_path} = /usr/{,local/}bin/secure-time-sync
|
||||
profile secure-time-sync @{exec_path} flags=(attach_disconnected) {
|
||||
include <abstractions/base>
|
||||
include <abstractions/bash>
|
||||
|
||||
capability sys_time,
|
||||
|
||||
network raw dgram,
|
||||
network inet dgram,
|
||||
network inet6 dgram,
|
||||
|
||||
owner /dev/tty rw,
|
||||
|
||||
owner /etc/ca-certificates/** r,
|
||||
owner /etc/ssl/** r,
|
||||
|
||||
owner /etc/host.conf r,
|
||||
owner /etc/hosts r,
|
||||
owner /etc/nsswitch.conf r,
|
||||
owner /etc/passwd r,
|
||||
owner /etc/resolv.conf r,
|
||||
owner /etc/gai.conf r,
|
||||
|
||||
/usr/bin/bash ix,
|
||||
/usr/bin/curl mrix,
|
||||
/usr/bin/date mrix,
|
||||
/usr/bin/grep mrix,
|
||||
/usr/bin/id mrix,
|
||||
/usr/bin/sed mrix,
|
||||
@{exec_path} r,
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue