getpidcon(3) on Linux
The text 3edd6fbb7944, as Debian 12 (Bookworm) shipped it.
get SELinux security context of a process freecon, freeconary - free memory associated with SELinux security contexts getpeercon - get security context of a peer socket setcon - set current security context of a process