blob: d095a2558d3a105a591d334ca2d05e51c1e5a5ab [file] [log] [blame]
Joshua Brindle13cd4c82008-08-19 15:30:36 -04001.TH CHCAT "8" "September 2005" "chcat" "User Commands"
2.SH NAME
3chcat \- change file SELinux security category
4.SH SYNOPSIS
5.B chcat
6\fIcategory file\fR...
7.br
8.B chcat -l
9\fIcategory user\fR...
10.br
11.B chcat
12\fI[[+|-]category...] file\fR...
13.br
14.B chcat -l
15\fI[[+|-]category...] user\fR...
16.br
17.B chcat
18[\fI-d\fR] \fIfile\fR...
19.br
20.B chcat -l
21[\fI-d\fR] \fIuser\fR...
22.br
23.B chcat
Laurent Bigonville84e08582013-05-10 14:45:21 +020024\fI-L\fR [ \-l ] [ user ... ]
Joshua Brindle13cd4c82008-08-19 15:30:36 -040025.br
26.SH DESCRIPTION
27.PP
28Change/Remove the security \fIcategory\fR for each \fIfile\fR or \fIuser\fR.
29.PP
30Use +/- to add/remove categories from a \fIfile\fR or \fIuser\fR.
31.PP
32.B
33Note:
Laurent Bigonville84e08582013-05-10 14:45:21 +020034When removing a category you must specify '\-\-' on the command line before using the \-Category syntax. This tells the command that you have finished entering options and are now specifying a category name instead.
Joshua Brindle13cd4c82008-08-19 15:30:36 -040035
36.TP
37\fB\-d\fR
38delete the category from each FILE/USER.
39.TP
40\fB\-L\fR
41list available categories.
42.TP
43\fB\-l\fR
44Tells chcat to operate on users instead of files.
45.SH "SEE ALSO"
46.TP
47chcon(1), selinux(8), semanage(8)
48.PP
49.br
50When operating on files this script wraps the chcon command.
51.SH "FILES"
52/etc/selinux/{SELINUXTYPE}/setrans.conf
53.br
Eric Parisda484b82011-07-07 15:38:19 +020054/etc/selinux/{SELINUXTYPE}/seusers
Joshua Brindle13cd4c82008-08-19 15:30:36 -040055