From c3e92b340892075e976651fa2952c35334b6003d Mon Sep 17 00:00:00 2001 From: npwc <51269503+npwc@users.noreply.github.com> Date: Wed, 24 Jan 2024 21:00:08 +0000 Subject: [PATCH] Create profile for secure-time-sync (#274) * 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 --- apparmor.d/profiles-s-z/secure-time-sync | 29 ++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 apparmor.d/profiles-s-z/secure-time-sync diff --git a/apparmor.d/profiles-s-z/secure-time-sync b/apparmor.d/profiles-s-z/secure-time-sync new file mode 100644 index 000000000..f317b9474 --- /dev/null +++ b/apparmor.d/profiles-s-z/secure-time-sync @@ -0,0 +1,29 @@ +# apparmor.d - Full set of apparmor profiles +# SPDX-License-Identifier: GPL-2.0-only + +abi , + +include + +@{exec_path} = @{bin}/secure-time-sync +profile secure-time-sync @{exec_path} flags=(attach_disconnected) { + include + include + include + + 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, +}