mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2024-11-16 00:13:48 +01:00
3430e3df90
Signed-off-by: Alexandre Pujol <alexandre@pujol.io>
115 lines
2.7 KiB
Plaintext
115 lines
2.7 KiB
Plaintext
# apparmor.d - Full set of apparmor profiles
|
|
# Copyright (C) 2002-2005 Novell/SUSE
|
|
# 2018-2021 Mikhail Morfikov
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
abi <abi/3.0>,
|
|
|
|
include <tunables/global>
|
|
|
|
# pcap pcapng
|
|
@{wireshark_ext} = [pP][cC][aA][pP]{,[nN][gG]}
|
|
|
|
@{exec_path} = /{usr/,}bin/wireshark
|
|
profile wireshark @{exec_path} {
|
|
include <abstractions/base>
|
|
include <abstractions/consoles>
|
|
include <abstractions/nameservice>
|
|
include <abstractions/X>
|
|
include <abstractions/freedesktop.org>
|
|
include <abstractions/fonts>
|
|
include <abstractions/fontconfig-cache-read>
|
|
include <abstractions/gtk>
|
|
include <abstractions/user-download-strict>
|
|
include <abstractions/private-files-strict>
|
|
include <abstractions/dri-enumerate>
|
|
include <abstractions/mesa>
|
|
include <abstractions/qt5-compose-cache-write>
|
|
include <abstractions/qt5-settings-write>
|
|
|
|
signal (send) peer=dumpcap,
|
|
|
|
@{exec_path} mr,
|
|
|
|
/{usr/,}bin/dumpcap rPx,
|
|
/{usr/,}bin/xdg-open rCx -> open,
|
|
|
|
# For reading pcaps
|
|
/ r,
|
|
/tmp/ r,
|
|
/home/ r,
|
|
owner @{HOME}/ r,
|
|
owner @{HOME}/**/ r,
|
|
@{MOUNTS}/ r,
|
|
owner @{MOUNTS}/**/ r,
|
|
owner /{tmp,home,media}/**.@{wireshark_ext}{,.gz} rw,
|
|
|
|
# Wireshark files
|
|
/usr/share/wireshark/** r,
|
|
/{usr/,}lib/@{multiarch}/wireshark/extcap/* rix,
|
|
/{usr/,}lib/@{multiarch}/wireshark/plugins/*/{codecs,epan,wiretap}/*.so mr,
|
|
/etc/wireshark/init.lua r,
|
|
|
|
# Wireshark home files
|
|
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,
|
|
|
|
deny @{PROC}/sys/kernel/random/boot_id r,
|
|
deny owner @{PROC}/@{pid}/cmdline r,
|
|
owner @{PROC}/@{pid}/fd/ r,
|
|
@{PROC}/@{pid}/net/dev r,
|
|
@{PROC}/@{pid}/mountinfo r,
|
|
@{PROC}/@{pid}/mounts r,
|
|
|
|
/etc/fstab r,
|
|
|
|
/usr/share/glib-2.0/schemas/gschemas.compiled r,
|
|
|
|
/usr/share/hwdata/pnp.ids r,
|
|
|
|
/usr/share/GeoIP/{,**} r,
|
|
|
|
/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
|
|
/{usr/,}lib/firefox/firefox rPUx,
|
|
|
|
# file_inherit
|
|
owner /dev/tty[0-9]* rw,
|
|
|
|
|
|
profile open {
|
|
include <abstractions/base>
|
|
include <abstractions/xdg-open>
|
|
|
|
/{usr/,}bin/xdg-open mr,
|
|
|
|
/{usr/,}bin/{,ba,da}sh rix,
|
|
/{usr/,}bin/gawk rix,
|
|
/{usr/,}bin/readlink rix,
|
|
/{usr/,}bin/basename rix,
|
|
|
|
owner @{HOME}/ r,
|
|
|
|
owner @{run}/user/@{uid}/ r,
|
|
|
|
# Allowed apps to open
|
|
/{usr/,}lib/firefox/firefox rPUx,
|
|
|
|
# file_inherit
|
|
owner @{HOME}/.xsession-errors w,
|
|
|
|
}
|
|
|
|
include if exists <local/wireshark>
|
|
}
|