apparmor.d/apparmor.d/groups/whonix/sdwdate-start
2024-05-06 23:51:46 +01:00

33 lines
No EOL
696 B
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/3.0>,
include <tunables/global>
@{exec_path} = @{lib}/sdwdate/sdwdate-start-anondate-set-file-watcher
profile sdwdate-start @{exec_path} {
include <abstractions/base>
include <abstractions/nameservice-strict>
@{exec_path} mr,
@{bin}/mkdir rix,
@{bin}/chown rix,
@{bin}/mktemp rix,
@{bin}/rm rix,
@{bin}/mkfifo rix,
@{bin}/inotifywait rix,
@{bin}/anondate-set rPx,
owner @{tmp}/tmp.@{rand10} rw,
owner @{run}/sdwdate/ rw,
owner @{run}/sdwdate/* rw,
/dev/tty rw,
include if exists <local/sdwdate-start>
}