feat(profiles): add some whonix specific profiles.

Dev only, they may be moved into whonix repo later.
This commit is contained in:
Alexandre Pujol 2023-12-09 16:19:42 +00:00
parent bc0e0c79bc
commit ccf4b4df06
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
7 changed files with 198 additions and 0 deletions

View file

@ -0,0 +1,34 @@
# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2023 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-2.0-only
abi <abi/3.0>,
include <tunables/global>
@{exec_path} = @{lib}/msgcollector/msgdispatcher
profile msgdispatcher @{exec_path} {
include <abstractions/base>
include <abstractions/consoles>
include <abstractions/nameservice-strict>
@{exec_path} mr,
@{bin}/{,ba,da}sh rix,
@{bin}/basename rix,
@{bin}/flock rix,
@{bin}/inotifywait rix,
@{bin}/mkdir rix,
@{bin}/mkfifo rix,
@{bin}/rm rix,
@{bin}/sleep rix,
@{bin}/touch rix,
@{bin}/whoami rix,
@{lib}/msgcollector/* r,
@{run}/msgcollector/ r,
owner @{run}/msgcollector/user/{,**} rwk,
include if exists <local/msgdispatcher>
}