apparmor.d/apparmor.d/groups/whonix/sdwdate
2025-06-21 20:27:06 +02:00

58 lines
1.5 KiB
Text

# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2024 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-2.0-only
abi <abi/4.0>,
include <tunables/global>
@{exec_path} = @{lib}/sdwdate/sdwdate
profile sdwdate @{exec_path} flags=(attach_disconnected) {
include <abstractions/base>
include <abstractions/nameservice-strict>
include <abstractions/python>
include <abstractions/ssl_certs>
capability sys_time,
network inet stream,
network inet6 stream,
@{exec_path} mr,
@{bin}/cat rix,
@{bin}/date rix,
@{bin}/minimum-unixtime-show rix,
@{bin}/sleep rix,
@{bin}/timeout rix,
@{bin}/timesanitycheck rix,
@{bin}/tor-circuit-established-check rix,
@{bin}/touch rix,
@{lib}/helper-scripts/* rix,
@{bin}/url_to_unixtime rix,
@{bin}/{,e}grep rix,
@{lib}/helper-scripts/ r,
@{lib}/sdwdate/ r,
/usr/share/timesanitycheck/* r,
/usr/share/tor/tor-service-defaults-torrc r,
/usr/share/translations/sdwdate.yaml r,
/usr/local/etc/torrc.d/{,**} r,
/etc/sdwdate.d/{,**} r,
/etc/tor/torrc r,
@{etc_ro}/torrc.d/{,**} r,
owner /var/lib/sdwdate/ rw,
owner /var/lib/sdwdate/* rw,
@{run}/tor/control.authcookie r,
owner @{run}/sdwdate/* rw,
/dev/tty rw,
include if exists <local/sdwdate>
}
# vim:syntax=apparmor