chcat
Change SELinux security category for files. Categories provide an additional level of access control based on MCS (Multi-Category Security). See also:
chcon,semanage. More information: https://manned.org/chcat.
- List all available categories:
sudo chcat
- Add a category to a file:
sudo chcat +
- Remove a category from a file:
sudo chcat -- -
- Set specific categories for a file (replacing existing ones):
sudo chcat
- Display the categories of a file:
ls
- Remove all categories from a file:
sudo chcat
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
