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

NAME

6       findcon - SELinux file context search tool
7

SYNOPSIS

9       findcon [OPTIONS] -c CONTEXT FILENAMES
10

DESCRIPTION

12       findcon  allows  the user to search for files with a specified context.
13       Results can be filtered by object class as described below.
14

OPTIONS

16       -c, --context=CONTEXT
17              Search for files with context CONTEXT.  A context  is  specified
18              as  a  colon  separated list of user, role, and type as follows:
19              user_u:object_r:type_t.  If the system supports MLS,  additional
20              MLS    range   can   be   added   to   the   end   as   follows:
21              user_u:object_r:type_t:s0.  If a field  is  not  specified,  the
22              query  will always match that field.  If the system supports MLS
23              and the translation library is enabled, matching is  done  using
24              translated  contexts.   To  match  raw  contexts,  use the --raw
25              option.  The special string "unlabeled" can also be specified to
26              match files with no label.
27
28       --raw  Match raw contexts, ignoring the translation library if present.
29
30       -o, --object=OBJECT
31              Restrict search to files of object class OBJECT.
32
33       -r, --recursive
34              Recurse through directories.
35
36       -s, --stdin
37              Read FILENAMES from standard input.
38
39       -q, --quiet
40              Suppress progress output.
41
42       -v, --verbose
43              Display context info.
44
45       -h, --help
46              Print help information and exit.
47
48       -V, --version
49              Print version information and exit.
50

INFORMATION

52       Valid object classes are
53
54       file, dir, lnk_file, chr_file, blk_file, sock_file, fifo_file
55

EXAMPLES

57       findcon -c : .
58              Find every context in the current directory.
59
60       findcon -c user_u: .
61              Find  every  context  in  the  current  directory  whose user is
62              user_u.
63
64       findcon -r -c ::type_t:s0 .
65              Find every context with type type_t and MLS range s0,  searching
66              in the current directory and all subdirectories.
67

AUTHOR

69       This manual page was written by Jeremy A. Mowery <jmowery@tresys.com>.
70
72       Copyright(C) 2003-2007 Tresys Technology, LLC
73

BUGS

75       Please report bugs via an email to setools-bugs@tresys.com.
76

SEE ALSO

78       replcon(1), indexcon(1), searchcon(1)
79
80
81
82                                                                    findcon(1)
Impressum