mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2024-11-14 23:43:56 +01:00
Create vesktop
This commit is contained in:
parent
8cc986ab92
commit
67b1c301ed
46
apparmor.d/profiles-s-z/vesktop
Normal file
46
apparmor.d/profiles-s-z/vesktop
Normal file
@ -0,0 +1,46 @@
|
||||
# apparmor.d - Full set of apparmor profiles
|
||||
# Copyright (C) 2024 odomingao
|
||||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
|
||||
abi <abi/3.0>,
|
||||
include <tunables/global>
|
||||
|
||||
@{name} = vesktop
|
||||
@{lib_dirs} = @{lib}/@{name}
|
||||
@{config_dirs} = @{user_config_dirs}/@{name}
|
||||
@{cache_dirs} = @{user_cache_dirs}/@{name}
|
||||
|
||||
@{exec_path} = @{bin}/vesktop
|
||||
profile vesktop @{exec_path} flags=(attach_disconnected) {
|
||||
include <abstractions/base>
|
||||
include <abstractions/audio-client>
|
||||
include <abstractions/common/electron>
|
||||
include <abstractions/p11-kit>
|
||||
include <abstractions/user-download-strict>
|
||||
include <abstractions/video>
|
||||
|
||||
network inet dgram,
|
||||
network inet6 dgram,
|
||||
network inet stream,
|
||||
network inet6 stream,
|
||||
network netlink raw,
|
||||
|
||||
@{exec_path} mr,
|
||||
|
||||
owner /tmp/.org.chromium.Chromium.@{rand6} mr,
|
||||
owner @{run}/user/@{uid}/discord-ipc-@{int} rw,
|
||||
|
||||
@{sys}/devices/@{pci}/usb@{int}/**/interface r,
|
||||
|
||||
@{PROC}/@{pid}/cmdline r,
|
||||
owner @{PROC}/@{pid}/task/@{tid}/comm rw,
|
||||
|
||||
owner /dev/ r,
|
||||
|
||||
deny /dev/tty rw,
|
||||
deny owner /dev/tty@{int} rw,
|
||||
|
||||
include if exists <local/vesktop>
|
||||
}
|
||||
|
||||
# vim:syntax=apparmor
|
Loading…
Reference in New Issue
Block a user