feat(profile): add profile for t-methods-sq.

This commit is contained in:
Alexandre Pujol 2025-05-18 23:06:21 +02:00
parent 41c38b7645
commit 010ccf43e3
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
2 changed files with 43 additions and 0 deletions

View file

@ -0,0 +1,42 @@
# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2019-2021 Mikhail Morfikov
# Copyright (C) 2021-2024 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-2.0-only
abi <abi/4.0>,
include <tunables/global>
@{exec_path} = @{lib}/apt/methods/sqv
profile apt-methods-sqv @{exec_path} {
include <abstractions/base>
include <abstractions/consoles>
include <abstractions/nameservice-strict>
# To handle the _apt user
capability setgid,
capability setuid,
signal receive set=int peer=apt,
@{exec_path} mr,
@{bin}/sqv ix,
/usr/share/apt/default-sequoia.config r,
/usr/share/keyrings/debian-archive-keyring.gpg r,
/usr/share/keyrings/debian-archive-keyring.pgp r,
owner /var/lib/apt/lists/{,**} r,
owner /tmp/apt.data.@{rand6} rw,
owner /tmp/apt.sig.@{rand6} rw,
owner /tmp/apt.sqverr.@{rand6} rw,
owner /tmp/apt.sqvout.@{rand6} rw,
@{PROC}/@{pid}/fd/ r,
include if exists <local/apt-methods-sqv>
}
# vim:syntax=apparmor

View file

@ -27,6 +27,7 @@ akonadi_notes_agent complain
akonadi_sendlater_agent complain akonadi_sendlater_agent complain
akonadi_unifiedmailbox_agent complain akonadi_unifiedmailbox_agent complain
anacron complain anacron complain
apt-methods-sqv complain
at complain at complain
atd complain atd complain
auditctl attach_disconnected,complain auditctl attach_disconnected,complain