Debian Codegraph @

libsemanage/man/man3/semanage_fcontext.3

raw
1 .TH semanage_fcontext 3 "16 March 2006" "[email protected]" "Libsemanage API documentation"
2
3 .SH "NAME"
4 semanage_fcontext \- SELinux File Context Management API
5
6 .SH "SYNOPSIS"
7 .B #include <semanage/fcontext_record.h>
8 .br
9 .B #include <semanage/fcontexts_policy.h>
10 .br
11 .B #include <semanage/fcontexts_local.h>
12
13 .PP
14 This object contains properties associated with a SELinux file context specification
15
16 .PP
17 For details on a specific function, see its manual page.
18
19 .SH "Record API Overview"
20
21 .HP
22 .BR semanage_fcontext_create "(3)" \-
23 .br
24 create a file context spec
25
26 .HP
27 .BR semanage_fcontext_free "(3)" \-
28 .br
29 release resources for this file context spec
30
31 .HP
32 .BR semanage_fcontext_key_create "(3)" \-
33 .br
34 create a key, which can be used to identify a file context spec
35
36 .HP
37 .BR semanage_fcontext_key_free "(3)" \-
38 .br
39 release resources for this file context spec key
40
41 .HP
42 .BR semanage_fcontext_key_extract "(3)" \-
43 .br
44 create a key matching this file context spec
45
46 .HP
47 .BR semanage_fcontext_clone "(3)" \-
48 .br
49 create an identical file context spec (deep-copy clone)
50
51 .HP
52 .BR semanage_fcontext_compare "(3)" \-
53 .br
54 compare this file context spec to the provided key
55
56 .HP
57 .BR semanage_fcontext_compare2 "(3)" \-
58 .br
59 compare this file context spec to another
60
61
62 .SH "Properties API Overview"
63
64 .HP
65 .BR semanage_fcontext_get_expr "(3)" \-
66 .br
67 return the regular expression for this file context spec
68
69 .HP
70 .BR semanage_fcontext_set_expr "(3)" \-
71 .br
72 set the regular expression for this file context spec
73
74 .HP
75 .BR semanage_fcontext_get_type "(3)" \-
76 .br
77 return the file type for this file context spec
78
79 .HP
80 .BR semanage_fcontext_get_type_str "(3)" \-
81 .br
82 return a string representation for this file context spec type
83
84 .HP
85 .BR semanage_fcontext_set_type "(3)" \-
86 .br
87 set the file type for this file context spec
88
89 .HP
90 .BR semanage_fcontext_get_con "(3)" \-
91 .br
92 return the SELinux context for this file context spec
93
94 .HP
95 .BR semanage_fcontext_set_expr "(3)" \-
96 .br
97 set the SELinux context for this file context spec
98
99
100 .SH "Record Store API Overview"
101
102 .HP
103 .BR semanage_fcontext_modify_local "(3)" \-
104 .br
105 add or update a file context spec in the local store
106
107 .HP
108 .BR semanage_fcontext_del_local "(3)" \-
109 .br
110 delete a file context spec from the local store
111
112 .HP
113 .BR semanage_fcontext_exists "(3)" \-
114 .br
115 check if a file context spec is defined in the persistent policy
116
117 .HP
118 .BR semanage_fcontext_exists_local "(3)" \-
119 .br
120 check if a file context spec is defined in the local store
121
122 .HP
123 .BR semanage_fcontext_query "(3)" \-
124 .br
125 query a file context spec in the persistent policy
126
127 .HP
128 .BR semanage_fcontext_query_local "(3)" \-
129 .br
130 query a file context spec in the local store
131
132 .HP
133 .BR semanage_fcontext_count "(3)" \-
134 .br
135 count the number of file context specs defined in the persistent policy
136
137 .HP
138 .BR semanage_fcontext_count_local "(3)" \-
139 .br
140 count the number of file context specs defined in the local store
141
142 .HP
143 .BR semanage_fcontext_iterate "(3)" \-
144 .br
145 execute a callback for each file context spec in the persistent policy
146
147 .HP
148 .BR semanage_fcontext_iterate_local "(3)" \-
149 .br
150 execute a callback for each file context spec in the local store
151
152 .HP
153 .BR semanage_fcontext_list "(3)" \-
154 .br
155 return an array containing all file context specs in the persistent policy
156
157 .HP
158 .BR semanage_fcontext_list_local "(3)" \-
159 .br
160 return an array containing all file context specs in the local store