Skip to content

Commit

Permalink
Create profile for secure-time-sync (#274)
Browse files Browse the repository at this point in the history
* Create profile for secure-time-sync

Related to https://gitlab.com/madaidan/secure-time-sync

* Update secure-time-sync

* Update secure-time-sync

* Update secure-time-sync
  • Loading branch information
npwc authored Jan 24, 2024
1 parent 8f82547 commit c3e92b3
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions apparmor.d/profiles-s-z/secure-time-sync
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# apparmor.d - Full set of apparmor profiles
# SPDX-License-Identifier: GPL-2.0-only

abi <abi/3.0>,

include <tunables/global>

@{exec_path} = @{bin}/secure-time-sync
profile secure-time-sync @{exec_path} flags=(attach_disconnected) {
include <abstractions/base>
include <abstractions/nameservice-strict>
include <abstractions/ssl_certs>

capability sys_time,

network raw,
network inet dgram,
network inet6 dgram,

owner /dev/tty rw,

/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,
}

0 comments on commit c3e92b3

Please sign in to comment.