feat(profile): initial profile for pollinate.
This commit is contained in:
parent
d5a65ba831
commit
3984cf8acc
2 changed files with 49 additions and 0 deletions
48
apparmor.d/profiles-m-r/pollinate
Normal file
48
apparmor.d/profiles-m-r/pollinate
Normal file
|
|
@ -0,0 +1,48 @@
|
||||||
|
# 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}/pollinate
|
||||||
|
profile pollinate @{exec_path} {
|
||||||
|
include <abstractions/base>
|
||||||
|
include <abstractions/nameservice-strict>
|
||||||
|
|
||||||
|
network inet dgram,
|
||||||
|
network inet stream,
|
||||||
|
network inet6 dgram,
|
||||||
|
network inet6 stream,
|
||||||
|
network netlink raw,
|
||||||
|
|
||||||
|
@{exec_path} mr,
|
||||||
|
|
||||||
|
@{sh_path} rix,
|
||||||
|
@{coreutils_path} rix,
|
||||||
|
@{bin}/curl rix,
|
||||||
|
@{bin}/dpkg rPx -> child-dpkg,
|
||||||
|
@{bin}/dpkg-query rpx,
|
||||||
|
@{bin}/hostname rix,
|
||||||
|
@{bin}/logger rix,
|
||||||
|
@{bin}/systemd-detect-virt rPx,
|
||||||
|
@{bin}/xxd rix,
|
||||||
|
|
||||||
|
/etc/cloud/build.info r,
|
||||||
|
/etc/default/pollinate r,
|
||||||
|
/etc/lsb-release r,
|
||||||
|
/etc/pollinate/{,**} r,
|
||||||
|
|
||||||
|
owner /var/cache/pollinate/seeded w,
|
||||||
|
|
||||||
|
owner /tmp/pollinate.@{rand12}/{,**} rw,
|
||||||
|
|
||||||
|
@{PROC}/uptime r,
|
||||||
|
|
||||||
|
/dev/urandom w,
|
||||||
|
|
||||||
|
include if exists <local/pollinate>
|
||||||
|
}
|
||||||
|
|
||||||
|
# vim:syntax=apparmor
|
||||||
|
|
@ -266,6 +266,7 @@ plymouth complain
|
||||||
plymouth-set-default-theme attach_disconnected,complain
|
plymouth-set-default-theme attach_disconnected,complain
|
||||||
plymouthd complain
|
plymouthd complain
|
||||||
polkit-kde-authentication-agent attach_disconnected,complain,mediate_deleted
|
polkit-kde-authentication-agent attach_disconnected,complain,mediate_deleted
|
||||||
|
pollinate complain
|
||||||
ptyxis complain
|
ptyxis complain
|
||||||
ptyxis-agent complain
|
ptyxis-agent complain
|
||||||
pycompile complain
|
pycompile complain
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue