mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-01-18 17:08:09 +01:00
feat(profile): add ghc-pkg.
This commit is contained in:
parent
fb841b46c4
commit
d8d15c8a35
2 changed files with 31 additions and 2 deletions
|
@ -64,7 +64,7 @@ profile pacman @{exec_path} {
|
|||
@{bin}/gdk-pixbuf-query-loaders rPx,
|
||||
@{bin}/getent rix,
|
||||
@{bin}/gettext rix,
|
||||
@{bin}/ghc-pkg-* rix,
|
||||
@{bin}/ghc-pkg{,-*} rPx,
|
||||
@{bin}/gio-querymodules rPx,
|
||||
@{bin}/glib-compile-schemas rPx,
|
||||
@{bin}/groupadd rPx,
|
||||
|
@ -98,7 +98,6 @@ profile pacman @{exec_path} {
|
|||
@{bin}/update-mime-database rPx,
|
||||
@{bin}/vercmp rix,
|
||||
@{bin}/xmlcatalog rix,
|
||||
@{lib}/ghc-*/bin/ghc-pkg rix,
|
||||
@{lib}/systemd/systemd-* rPx,
|
||||
@{lib}/vlc/vlc-cache-gen rPx,
|
||||
/usr/share/code-features/patch.py rPx,
|
||||
|
|
30
apparmor.d/profiles-g-l/ghc-pkg
Normal file
30
apparmor.d/profiles-g-l/ghc-pkg
Normal file
|
@ -0,0 +1,30 @@
|
|||
# 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} = @{bin}/ghc-pkg{,-*}
|
||||
profile ghc-pkg @{exec_path} {
|
||||
include <abstractions/base>
|
||||
include <abstractions/consoles>
|
||||
|
||||
capability dac_read_search,
|
||||
|
||||
@{exec_path} mr,
|
||||
|
||||
@{sh_path} rix,
|
||||
|
||||
@{lib}/ghc{,-*}/bin/ghc-pkg{,-*} rix,
|
||||
|
||||
@{lib}/ghc{,-*}/lib/package.conf.d/* rw,
|
||||
@{lib}/ghc{,-*}/lib/package.conf.d/package.cache.lock k,
|
||||
|
||||
/var/log/haskell-register.log rw,
|
||||
|
||||
@{sys}/devices/system/node/ r,
|
||||
|
||||
include if exists <local/ghc-pkg>
|
||||
}
|
Loading…
Reference in a new issue