| 1 |
.TH semanage_iface 3 "16 March 2006" "[email protected]" "Libsemanage API documentation" |
| 2 |
|
| 3 |
.SH "NAME" |
| 4 |
semanage_iface \- SELinux Network Interfaces Management API |
| 5 |
|
| 6 |
.SH "SYNOPSIS" |
| 7 |
.B #include <semanage/iface_record.h> |
| 8 |
.br |
| 9 |
.B #include <semanage/interfaces_policy.h> |
| 10 |
.br |
| 11 |
.B #include <semanage/interfaces_local.h> |
| 12 |
|
| 13 |
.PP |
| 14 |
This object contains properties associated with a network interface. |
| 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_iface_create "(3)" \- |
| 23 |
.br |
| 24 |
create an interface |
| 25 |
|
| 26 |
.HP |
| 27 |
.BR semanage_iface_free "(3)" \- |
| 28 |
.br |
| 29 |
release resources for this interface |
| 30 |
|
| 31 |
.HP |
| 32 |
.BR semanage_iface_key_create "(3)" \- |
| 33 |
.br |
| 34 |
create a key, which can be used to identify an interface |
| 35 |
|
| 36 |
.HP |
| 37 |
.BR semanage_iface_key_free "(3)" \- |
| 38 |
.br |
| 39 |
release resources for this interface key |
| 40 |
|
| 41 |
.HP |
| 42 |
.BR semanage_iface_key_extract "(3)" \- |
| 43 |
.br |
| 44 |
create a key matching this interface |
| 45 |
|
| 46 |
.HP |
| 47 |
.BR semanage_iface_clone "(3)" \- |
| 48 |
.br |
| 49 |
create an identical interface (deep-copy clone) |
| 50 |
|
| 51 |
.HP |
| 52 |
.BR semanage_iface_compare "(3)" \- |
| 53 |
.br |
| 54 |
compare this interface to the provided key |
| 55 |
|
| 56 |
.HP |
| 57 |
.BR semanage_iface_compare2 "(3)" \- |
| 58 |
.br |
| 59 |
compare this interface to another |
| 60 |
|
| 61 |
.SH "Properties API Overview" |
| 62 |
|
| 63 |
.HP |
| 64 |
.BR semanage_iface_get_name "(3)" \- |
| 65 |
.br |
| 66 |
return the name of this interface |
| 67 |
|
| 68 |
.HP |
| 69 |
.BR semanage_iface_set_name "(3)" \- |
| 70 |
.br |
| 71 |
set the name of this interface |
| 72 |
|
| 73 |
.HP |
| 74 |
.BR semanage_iface_get_ifcon "(3)" \- |
| 75 |
.br |
| 76 |
return the SELinux context associated with this interface |
| 77 |
|
| 78 |
.HP |
| 79 |
.BR semanage_iface_set_ifcon "(3)" \- |
| 80 |
.br |
| 81 |
set the SELinux context associated with this interface |
| 82 |
|
| 83 |
.HP |
| 84 |
.BR semanage_iface_get_msgcon "(3)" \- |
| 85 |
.br |
| 86 |
return the SELinux context associated with packets sent over this interface |
| 87 |
|
| 88 |
.HP |
| 89 |
.BR semanage_iface_set_msgcon "(3)" \- |
| 90 |
.br |
| 91 |
set the SELinux context associated with packets sent over this interface |
| 92 |
|
| 93 |
.SH "Record Store API Overview" |
| 94 |
|
| 95 |
.HP |
| 96 |
.BR semanage_iface_modify_local "(3)" \- |
| 97 |
.br |
| 98 |
add or update an interface in the local store |
| 99 |
|
| 100 |
.HP |
| 101 |
.BR semanage_iface_del_local "(3)" \- |
| 102 |
.br |
| 103 |
delete an interface from the local store |
| 104 |
|
| 105 |
.HP |
| 106 |
.BR semanage_iface_exists "(3)" \- |
| 107 |
.br |
| 108 |
check if an interface is defined in the persistent policy |
| 109 |
|
| 110 |
.HP |
| 111 |
.BR semanage_iface_exists_local "(3)" \- |
| 112 |
.br |
| 113 |
check if an interface is defined in the local store |
| 114 |
|
| 115 |
.HP |
| 116 |
.BR semanage_iface_query "(3)" \- |
| 117 |
.br |
| 118 |
query an interface in the persistent policy |
| 119 |
|
| 120 |
.HP |
| 121 |
.BR semanage_iface_query_local "(3)" \- |
| 122 |
.br |
| 123 |
query an interface in the local store |
| 124 |
|
| 125 |
.HP |
| 126 |
.BR semanage_iface_count "(3)" \- |
| 127 |
.br |
| 128 |
count the number of interfaces defined in the persistent policy |
| 129 |
|
| 130 |
.HP |
| 131 |
.BR semanage_iface_count_local "(3)" \- |
| 132 |
.br |
| 133 |
count the number of interfaces defined in the local store |
| 134 |
|
| 135 |
.HP |
| 136 |
.BR semanage_iface_iterate "(3)" \- |
| 137 |
.br |
| 138 |
execute a callback for each interface in the persistent policy |
| 139 |
|
| 140 |
.HP |
| 141 |
.BR semanage_iface_iterate_local "(3)" \- |
| 142 |
.br |
| 143 |
execute a callback for each interface in the local store |
| 144 |
|
| 145 |
.HP |
| 146 |
.BR semanage_iface_list "(3)" \- |
| 147 |
.br |
| 148 |
return an array containing all interfaces in the persistent policy |
| 149 |
|
| 150 |
.HP |
| 151 |
.BR semanage_iface_list_local "(3)" \- |
| 152 |
.br |
| 153 |
return an array containing all interfaces in the local store |