getpidcon(3) on Linux
The text 7a7e15efbeee, as Debian 11 (Bullseye), Debian 10 (Buster) 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