chcat
Change SELinux security category for files. tldr-pages
On Linux
Linux
Change SELinux security category for files. Categories provide an additional level of access control based on MCS (Multi-Category Security).
List all available categories
sudo chcat --listIdentifyAdd a category to a file
sudo chcat +CategoryName path/to/fileIdentifyRemove a category from a file
sudo chcat -- -CategoryName path/to/fileIdentifySet specific categories for a file (replacing existing ones)
sudo chcat CategoryName1,CategoryName2,... path/to/fileIdentifyDisplay the categories of a file
ls --context path/to/fileIdentifyRemove all categories from a file
sudo chcat --delete path/to/fileIdentify