File: semanage_iface.3

package info (click to toggle)
android-platform-external-libselinux 10.0.0%2Br36-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 34,176 kB
  • sloc: ansic: 147,112; python: 25,790; makefile: 1,930; yacc: 1,389; sh: 1,206; lex: 452; xml: 180
file content (153 lines) | stat: -rw-r--r-- 3,045 bytes parent folder | download | duplicates (11)
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
.TH semanage_iface 3 "16 March 2006" "ivg2@cornell.edu" "Libsemanage API documentation"

.SH "NAME" 
semanage_iface \- SELinux Network Interfaces Management API

.SH "SYNOPSIS"
.B #include <semanage/iface_record.h>
.br
.B #include <semanage/interfaces_policy.h>
.br
.B #include <semanage/interfaces_local.h>

.PP
This object contains properties associated with a network interface. 

.PP
For details on a specific function, see its manual page.

.SH "Record API Overview"

.HP 
.BR semanage_iface_create "(3)" \- 
.br
create an interface

.HP
.BR semanage_iface_free "(3)" \-
.br
release resources for this interface

.HP
.BR semanage_iface_key_create "(3)" \-
.br
create a key, which can be used to identify an interface

.HP
.BR semanage_iface_key_free "(3)" \-
.br
release resources for this interface key

.HP
.BR semanage_iface_key_extract "(3)" \- 
.br
create a key matching this interface

.HP
.BR semanage_iface_clone "(3)" \- 
.br
create an identical interface (deep-copy clone)

.HP
.BR semanage_iface_compare "(3)" \- 
.br
compare this interface to the provided key

.HP
.BR semanage_iface_compare2 "(3)" \-
.br
compare this interface to another

.SH "Properties API Overview"

.HP
.BR semanage_iface_get_name "(3)" \- 
.br
return the name of this interface 

.HP
.BR semanage_iface_set_name "(3)" \-
.br
set the name of this interface 

.HP
.BR semanage_iface_get_ifcon "(3)" \-
.br
return the SELinux context associated with this interface

.HP
.BR semanage_iface_set_ifcon "(3)" \-
.br
set the SELinux context associated with this interface

.HP
.BR semanage_iface_get_msgcon "(3)" \-
.br
return the SELinux context associated with packets sent over this interface

.HP
.BR semanage_iface_set_msgcon "(3)" \-
.br
set the SELinux context associated with packets sent over this interface

.SH "Record Store API Overview"

.HP
.BR semanage_iface_modify_local "(3)" \- 
.br
add or update an interface in the local store

.HP
.BR semanage_iface_del_local "(3)" \-
.br
delete an interface from the local store

.HP
.BR semanage_iface_exists "(3)" \-
.br
check if an interface is defined in the persistent policy

.HP
.BR semanage_iface_exists_local "(3)" \-
.br
check if an interface is defined in the local store

.HP
.BR semanage_iface_query "(3)" \-
.br
query an interface in the persistent policy

.HP
.BR semanage_iface_query_local "(3)" \- 
.br
query an interface in the local store

.HP
.BR semanage_iface_count "(3)" \-
.br
count the number of interfaces defined in the persistent policy

.HP
.BR semanage_iface_count_local "(3)" \-
.br
count the number of interfaces defined in the local store

.HP
.BR semanage_iface_iterate "(3)" \-
.br
execute a callback for each interface in the persistent policy

.HP
.BR semanage_iface_iterate_local "(3)" \-
.br
execute a callback for each interface in the local store

.HP
.BR semanage_iface_list "(3)" \-
.br
return an array containing all interfaces in the persistent policy

.HP
.BR semanage_iface_list_local "(3)" \-
.br
return an array containing all interfaces in the local store