1CHCAT(8)                         User Commands                        CHCAT(8)
2
3
4

NAME

6       chcat - change SELinux security categories of files/users
7

SYNOPSIS

9       chcat category file...
10       chcat -l category user...
11       chcat [[+|-]category...]  file...
12       chcat -l [[+|-]category...]  user...
13       chcat [-d] file...
14       chcat -l [-d] user...
15       chcat -L [ -l ] [ user ... ]
16

DESCRIPTION

18       Use  +/-  to  add/remove  categories from a file or user (only a single
19       category can be specified at a time). Or specify the desired list/range
20       of categories to be applied (replacing the existing categories).
21
22       Note:  When  removing  a  category you must specify '--' on the command
23       line before using the -Category syntax. This tells the command that you
24       have  finished  entering options and are now specifying a category name
25       instead.
26
27
28       -d     delete all categories from given FILE/USER.
29
30       -L     list available categories.
31
32       -l     Tells chcat to operate on users instead of files.
33
34

EXAMPLE

36       Replace categories of user "test" with c0.c6
37       # chcat -l c0.c6 test
38       Add category c1023 to user "test"
39       # chcat -l +c1023 test
40       Remove category c5 from file "file"
41       # chcat -- -c5 file
42       Remove all categories from file "file"
43       # chcat -d file
44
45

SEE ALSO

47       chcon(1), selinux(8), semanage(8)
48
49       When operating on files this script wraps the chcon command.
50

FILES

52       /etc/selinux/{SELINUXTYPE}/setrans.conf
53       /etc/selinux/{SELINUXTYPE}/seusers
54
55
56
57chcat                           September 2005                        CHCAT(8)
Impressum