1searchcon(1)                General Commands Manual               searchcon(1)
2
3
4

NAME

6       searchcon - SELinux file context index searching tool
7

SYNOPSIS

9       searchcon INDEX [OPTIONS] [EXPRESSION]
10

DESCRIPTION

12       searchcon  allows  the  user  to search a file context index created by
13       indexcon or apol.
14

EXPRESSIONS

16       The following options allow the user to specify which files  to  print.
17       A file must meet all specified criteria.  If no expression is provided,
18       all files in the index are printed.
19
20       -t TYPE, --type=TYPE
21              Search for files with a context containing the type TYPE.
22
23       -u USER, --user=USER
24              Search for files with a context containing the user USER.
25
26       -m RANGE, --mls-range=RANGE
27              Search for files with a context with the MLS range of RANGE.
28
29       -p PATH, --path=PATH
30              Search for files which include PATH.
31
32       -c CLASS, --class=CLASS
33              Search only files of object class CLASS.
34

OPTIONS

36       The following additional options are available.
37
38       -R, --regex
39              Search using regular expressions instead of exact string  match‐
40              ing.  This option does not affect the --object flag.
41
42       -l, --list
43              Print a list of types in the index and exit.
44
45       -h, --help
46              Print help information and exit.
47
48       -V, --version
49              Print version information and exit.
50

INFORMATION

52       If  the  index  file  does not contain any MLS ranges and -m was given,
53       then the search will return nothing.
54
55       Valid object classes are the following:
56
57       file, dir, lnk_file, chr_file, blk_file, sock_file, fifo_file
58

AUTHOR

60       This manual page was written by Jeremy A. Mowery <kcarr@tresys.com>.
61
63       Copyright(C) 2003-2007 Tresys Technology, LLC
64

BUGS

66       Please report bugs via an email to setools-bugs@tresys.com.
67

SEE ALSO

69       findcon(1), replcon(1), indexcon(1), apol(1)
70
71
72
73                                                                  searchcon(1)
Impressum