File: findcon.1

package info (click to toggle)
setools 2.4-3
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 9,680 kB
  • ctags: 8,392
  • sloc: ansic: 96,778; tcl: 21,447; yacc: 4,341; makefile: 874; lex: 304; sh: 164
file content (61 lines) | stat: -rw-r--r-- 1,967 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
.TH findcon 1
.SH NAME
findcon \- SELinux file context search tool
.SH SYNOPSIS
.B findcon
[OPTIONS] -c CONTEXT FILENAMES
.SH DESCRIPTION
This manual page describes the
.BR findcon
command.
.PP
.B findcon
allows the user to search for files of a specified context.  Results can be filtered by object class as described below.
.PP 
A context may be specified as a colon separated list of user, role, and type as follows - user_u:object_r:type_t. If your system supports MLS you can also add an additional MLS range to the end as follows - user_u:object_r:type_t:s0. The tool will automatically match a user, role, type, or range that is not specified, with any other user, role, type, or range. If your system has MLS and the translation library is enabled matching is done using it. If you want the tool to match raw contexts please use --raw option.
.SH OPTIONS
.IP "--raw"
Specify context to search for, ignoring the translation library if present.
.IP "-c, --context=CONTEXT"
Specify context to search for.
.IP "-o, --object=OBJECT"
Restrict search to the specified object class.
.IP "-r, --recursive"
Recurse through directories.
.IP "-s, --stdin"
Read FILENAMES from standard input.
.IP "-q, --quiet"
Suppress progress output.
.IP "-V, --verbose"
Display context info.
.IP "-v, --version"
Display version information and exit.
.IP "-h, --help"
Display help information and exit.
.SH INFORMATION
Valid object classes are
.PP
file,
dir,
lnk_file,
chr_file,
blk_file,
sock_file,
fifo_file,
all_files
.SH EXAMPLES
.TP
.B findcon -c : .
Find every context in the current directory
.TP
.B findcon -c user_u: .
Find every context that contains user_u in the current directory 
.TP
.B findcon -c ::type_t:s0 .
Find every context with type type_t and MLS range s0 in the current directory
.SH AUTHOR
This manual page was written by Kevin Carr <kcarr@tresys.com>.  
.SH COPYRIGHT
Copyright(C) 2006 Tresys Technology, LLC
.SH SEE ALSO
replcon(1), searchcon(1), indexcon(1)