libselinux provides an interface to get and set process and file security contexts and to obtain security policy decisions.