feat(profile): add initial version of dpkg-maintscript-helper

This commit is contained in:
Alexandre Pujol 2025-04-13 21:09:10 +02:00 committed by Alex
parent b765d8174b
commit 1aa8b42982
2 changed files with 42 additions and 0 deletions

View file

@ -0,0 +1,41 @@
# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2025 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-2.0-only
abi <abi/4.0>,
include <tunables/global>
@{exec_path} = @{bin}/dpkg-maintscript-helper
profile dpkg-maintscript-helper @{exec_path} {
include <abstractions/base>
include <abstractions/consoles>
@{exec_path} mr,
@{sh_path} rix,
@{bin}/basename rix,
@{bin}/dpkg rCx -> dpkg,
/usr/share/dpkg/sh/* r,
profile dpkg {
include <abstractions/base>
include <abstractions/consoles>
include <abstractions/common/apt>
capability dac_read_search,
@{bin}/dpkg mr,
@{bin}/dpkg-query rpx,
/etc/dpkg/dpkg.cfg r,
/etc/dpkg/dpkg.cfg.d/{,*} r,
include if exists <local/dpkg-maintscript-helper_dpkg>
}
include if exists <local/dpkg-maintscript-helper>
}
# vim:syntax=apparmor

View file

@ -86,6 +86,7 @@ dmsetup complain
dockerd attach_disconnected,complain
dolphin complain
downloadhelper complain
dpkg-maintscript-helper complain
dpkg-script-apparmor complain
dpkg-script-man complain
dpkg-script-udev complain