feat(profile): add profile for xdg-desktop-portal-validate-icon.

This commit is contained in:
Alexandre Pujol 2025-02-09 20:34:25 +01:00
parent ba5079d95c
commit ace9a12c95
Failed to generate hash of commit

View file

@ -0,0 +1,26 @@
# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2024 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-2.0-only
abi <abi/4.0>,
include <tunables/global>
@{exec_path} = @{lib}/xdg-desktop-portal-validate-icon
profile xdg-desktop-portal-validate-icon @{exec_path} flags=(attach_disconnected) {
include <abstractions/base>
include <abstractions/common/bwrap>
include <abstractions/freedesktop.org>
capability dac_override,
@{exec_path} mrix,
@{bin}/bwrap ix,
owner @{tmp}/icon@{rand6} r,
include if exists <local/xdg-desktop-portal-validate-icon>
}
# vim:syntax=apparmor