mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-01-29 22:35:15 +01:00
50 lines
1.2 KiB
Text
50 lines
1.2 KiB
Text
# apparmor.d - Full set of apparmor profiles
|
|
# Copyright (C) 2023-2024 Alexandre Pujol <alexandre@pujol.io>
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
abi <abi/4.0>,
|
|
|
|
include <tunables/global>
|
|
|
|
@{exec_path} = @{bin}/kgx
|
|
profile kgx @{exec_path} {
|
|
include <abstractions/base>
|
|
include <abstractions/consoles>
|
|
include <abstractions/dconf-write>
|
|
include <abstractions/gnome-strict>
|
|
include <abstractions/graphics>
|
|
include <abstractions/nameservice-strict>
|
|
|
|
capability sys_ptrace,
|
|
|
|
ptrace (read),
|
|
|
|
@{exec_path} mr,
|
|
|
|
# The shell is not confined on purpose.
|
|
@{bin}/@{shells} rUx,
|
|
|
|
# Some CLI program can be launched directly from Gnome Shell
|
|
@{bin}/btop rPUx,
|
|
@{bin}/htop rPx,
|
|
@{bin}/micro rPUx,
|
|
@{bin}/nvtop rPx,
|
|
@{bin}/nvtop rPx,
|
|
@{bin}/vim rUx,
|
|
|
|
@{open_path} rPx -> child-open-help,
|
|
|
|
owner @{tmp}/#@{int} rw,
|
|
|
|
@{PROC}/ r,
|
|
@{PROC}/@{pids}/cmdline r,
|
|
@{PROC}/@{pids}/stat r,
|
|
@{PROC}/1/cgroup r,
|
|
owner @{PROC}/@{pid}/cgroup r,
|
|
|
|
/dev/ptmx rw,
|
|
|
|
include if exists <local/kgx>
|
|
}
|
|
|
|
# vim:syntax=apparmor
|