mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-01-18 00:48:10 +01:00
Merge branch 'master' of github.com:roddhjav/apparmor.d
* 'master' of github.com:roddhjav/apparmor.d: wireshark
This commit is contained in:
commit
372766f757
2 changed files with 14 additions and 6 deletions
|
@ -10,6 +10,8 @@ include <tunables/global>
|
|||
profile dumpcap @{exec_path} {
|
||||
include <abstractions/base>
|
||||
include <abstractions/nameservice-strict>
|
||||
include <abstractions/dbus>
|
||||
include <abstractions/dbus-session>
|
||||
|
||||
# To capture packekts
|
||||
capability net_raw,
|
||||
|
@ -24,13 +26,16 @@ profile dumpcap @{exec_path} {
|
|||
network packet raw,
|
||||
network bluetooth raw,
|
||||
|
||||
dbus (eavesdrop) bus=session,
|
||||
|
||||
@{exec_path} mr,
|
||||
|
||||
@{sys}/class/net/ r,
|
||||
@{sys}/bus/usb/devices/ r,
|
||||
@{sys}/devices/virtual/net/*/type r,
|
||||
@{sys}/devices/pci[0-9]*/**/net/*/type r,
|
||||
@{sys}/devices/virtual/net/*/statistics/* r,
|
||||
@{sys}/devices/pci[0-9]*/**/net/*/type r,
|
||||
@{sys}/devices/pci[0-9]*/**/net/*/statistics/* r,
|
||||
|
||||
@{PROC}/@{pid}/net/dev r,
|
||||
@{PROC}/@{pid}/net/psched r,
|
||||
|
|
|
@ -26,6 +26,9 @@ profile wireshark @{exec_path} {
|
|||
include <abstractions/mesa>
|
||||
include <abstractions/qt5-compose-cache-write>
|
||||
include <abstractions/qt5-settings-write>
|
||||
include <abstractions/dbus-accessibility-strict>
|
||||
include <abstractions/dbus-session-strict>
|
||||
include <abstractions/nvidia>
|
||||
|
||||
signal (send) peer=dumpcap,
|
||||
|
||||
|
@ -51,16 +54,18 @@ profile wireshark @{exec_path} {
|
|||
/etc/wireshark/init.lua r,
|
||||
|
||||
# Wireshark home files
|
||||
owner @{HOME}/.wireshark/{,*} rw,
|
||||
owner @{user_config_dirs}/wireshark/{,*} rw,
|
||||
owner @{HOME}/.wireshark/{,**} rw,
|
||||
owner @{user_config_dirs}/wireshark/{,**} rw,
|
||||
|
||||
# To configure Qt5 settings (theme, font, icons, etc.) under DE/WM without Qt integration
|
||||
owner @{user_config_dirs}/qt5ct/{,**} r,
|
||||
/usr/share/qt5ct/** r,
|
||||
/usr/share/qt5/translations/*.qm r,
|
||||
|
||||
deny @{PROC}/sys/kernel/random/boot_id r,
|
||||
deny owner @{PROC}/@{pid}/cmdline r,
|
||||
owner @{PROC}/@{pid}/fd/ r,
|
||||
owner @{PROC}/@{pid}/comm r,
|
||||
@{PROC}/@{pid}/net/dev r,
|
||||
@{PROC}/@{pid}/mountinfo r,
|
||||
@{PROC}/@{pid}/mounts r,
|
||||
|
@ -75,9 +80,6 @@ profile wireshark @{exec_path} {
|
|||
|
||||
/dev/shm/#[0-9]*[0-9] rw,
|
||||
|
||||
/var/lib/dbus/machine-id r,
|
||||
/etc/machine-id r,
|
||||
|
||||
owner /tmp/wireshark_extcap_ciscodump_[0-9]*_* rw,
|
||||
|
||||
# Allowed apps to open
|
||||
|
@ -108,6 +110,7 @@ profile wireshark @{exec_path} {
|
|||
# file_inherit
|
||||
owner @{HOME}/.xsession-errors w,
|
||||
|
||||
include if exists <local/wireshark_open>
|
||||
}
|
||||
|
||||
include if exists <local/wireshark>
|
||||
|
|
Loading…
Reference in a new issue