I’m slowly improving my understanding of the SELinux setup, currently looking into controlling user access. As you know, there may be lots of different users created in your Linux system. For them to be controlled by the SELinux framework, we need to map all users to one of the users in SELinux policy.
Install SELinux Tools
The command we need is called seinfo, and it’s not installed by default. We have to install the setools-console package first:
List Available SELinux Users
Now that the package is installed, run the seinfo -u command to show list of SELinux users:
While we’re at it, let’s check the current user’s SELinux context: usually you’re mapped to the unconfined_u user: