2
0
mirror of https://gitlab.com/apparmor/apparmor synced 2025-08-31 22:35:35 +00:00

Add profile for rpcbind

This commit is contained in:
Daniel Richard G
2023-04-17 22:11:00 -04:00
parent 8d9985ac0b
commit 408e148109

View File

@@ -0,0 +1,32 @@
# vim:syntax=apparmor
# Author: Daniel Richard G. <skunk@iSKUNK.ORG>
abi <abi/3.0>,
include <tunables/global>
profile rpcbind /{usr/,}sbin/rpcbind {
include <abstractions/base>
include <abstractions/hosts_access>
include <abstractions/nameservice>
# needed to sanely drop privileges
capability setgid,
capability setuid,
network inet dgram,
network inet6 dgram,
/etc/default/rpcbind r,
/etc/netconfig r,
/etc/rpcbind.conf r,
/{usr/,}sbin/rpcbind mrix,
@{run}/rpcbind.lock rwk,
@{run}/rpcbind.sock rwk,
@{run}/rpcbind/portmap.xdr rw,
@{run}/rpcbind/rpcbind.xdr rw,
@{run}/systemd/notify w,
# Site-specific additions and overrides. See local/README for details.
include if exists <local/rpcbind>
}