mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2024-11-15 16:03:51 +01:00
feat(profile): whonix: add msgcollector profiles.
This commit is contained in:
parent
c482234b64
commit
14b779d29b
46
apparmor.d/groups/whonix/msgcollector
Normal file
46
apparmor.d/groups/whonix/msgcollector
Normal file
@ -0,0 +1,46 @@
|
|||||||
|
# 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}/msgcollector/msgcollector
|
||||||
|
profile msgcollector @{exec_path} {
|
||||||
|
include <abstractions/base>
|
||||||
|
include <abstractions/consoles>
|
||||||
|
include <abstractions/nameservice-strict>
|
||||||
|
|
||||||
|
@{exec_path} mr,
|
||||||
|
|
||||||
|
@{sh_path} rix,
|
||||||
|
@{bin}/basename rix,
|
||||||
|
@{bin}/cat rix,
|
||||||
|
@{bin}/touch rix,
|
||||||
|
@{bin}/tput rix,
|
||||||
|
@{bin}/whoami rix,
|
||||||
|
|
||||||
|
@{lib}/msgcollector/msgdispatcher_dispatch_x rPx,
|
||||||
|
@{lib}/msgcollector/striphtml rPx,
|
||||||
|
|
||||||
|
@{lib}/msgcollector/{,**} r,
|
||||||
|
|
||||||
|
@{bin}/sudo rCx -> sudo,
|
||||||
|
|
||||||
|
owner @{run}/msgcollector/user/{,**} rw,
|
||||||
|
|
||||||
|
profile sudo {
|
||||||
|
include <abstractions/base>
|
||||||
|
include <abstractions/app/sudo>
|
||||||
|
|
||||||
|
@{bin}/rm rix,
|
||||||
|
@{lib}/msgcollector/msgdispatcher_delete_wrapper rix,
|
||||||
|
|
||||||
|
@{run}/msgcollector/user/* rw,
|
||||||
|
|
||||||
|
include if exists <local/msgcollector_sudo>
|
||||||
|
}
|
||||||
|
|
||||||
|
include if exists <local/msgcollector>
|
||||||
|
}
|
17
apparmor.d/groups/whonix/msgcollector-br-add
Normal file
17
apparmor.d/groups/whonix/msgcollector-br-add
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
# 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}/msgcollector/br_add
|
||||||
|
profile msgcollector-br-add @{exec_path} {
|
||||||
|
include <abstractions/base>
|
||||||
|
include <abstractions/python>
|
||||||
|
|
||||||
|
@{exec_path} mr,
|
||||||
|
|
||||||
|
include if exists <local/msgcollector-br-add>
|
||||||
|
}
|
19
apparmor.d/groups/whonix/msgcollector-generic-gui-message
Normal file
19
apparmor.d/groups/whonix/msgcollector-generic-gui-message
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
# 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}/msgcollector/generic_gui_message
|
||||||
|
profile msgcollector-generic-gui-message @{exec_path} {
|
||||||
|
include <abstractions/base>
|
||||||
|
include <abstractions/nameservice-strict>
|
||||||
|
include <abstractions/python>
|
||||||
|
include <abstractions/xfce>
|
||||||
|
|
||||||
|
@{exec_path} mr,
|
||||||
|
|
||||||
|
include if exists <local/msgcollector-generic-gui-message>
|
||||||
|
}
|
17
apparmor.d/groups/whonix/msgcollector-striphtml
Normal file
17
apparmor.d/groups/whonix/msgcollector-striphtml
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
# 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}/msgcollector/striphtml
|
||||||
|
profile msgcollector-striphtml @{exec_path} {
|
||||||
|
include <abstractions/base>
|
||||||
|
include <abstractions/python>
|
||||||
|
|
||||||
|
@{exec_path} mr,
|
||||||
|
|
||||||
|
include if exists <local/msgcollector-striphtml>
|
||||||
|
}
|
24
apparmor.d/groups/whonix/msgdispatcher-autostart
Normal file
24
apparmor.d/groups/whonix/msgdispatcher-autostart
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
# 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}/msgcollector/msgdispatcher_xdg_autostart
|
||||||
|
profile msgdispatcher-autostart @{exec_path} {
|
||||||
|
include <abstractions/base>
|
||||||
|
|
||||||
|
@{exec_path} mr,
|
||||||
|
|
||||||
|
@{sh_path} r,
|
||||||
|
|
||||||
|
@{lib}/msgcollector/msgdispatcher rPx,
|
||||||
|
|
||||||
|
owner @{HOME}/.xsession-errors w,
|
||||||
|
|
||||||
|
/dev/tty rw,
|
||||||
|
|
||||||
|
include if exists <local/msgdispatcher-autostart>
|
||||||
|
}
|
19
apparmor.d/groups/whonix/msgdispatcher-dispatch
Normal file
19
apparmor.d/groups/whonix/msgdispatcher-dispatch
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
# 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}/msgcollector/msgdispatcher_dispatch_x
|
||||||
|
profile msgdispatcher-dispatch @{exec_path} {
|
||||||
|
include <abstractions/base>
|
||||||
|
include <abstractions/python>
|
||||||
|
include <abstractions/nameservice-strict>
|
||||||
|
include <abstractions/desktop>
|
||||||
|
|
||||||
|
@{exec_path} mr,
|
||||||
|
|
||||||
|
include if exists <local/msgdispatcher-dispatch>
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user