semanage\_iface(3) Libsemanage API documentation semanage\_iface(3)

# [NAME](#NAME)

semanage\_iface - SELinux Network Interfaces Management API

# [SYNOPSIS](#SYNOPSIS)

**#include &lt;semanage/iface\_record.h&gt;**  
**#include &lt;semanage/interfaces\_policy.h&gt;**  
**#include &lt;semanage/interfaces\_local.h&gt;**

This object contains properties associated with a network interface.

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

# [Record API Overview](#Record_API_Overview)

[**semanage\_iface\_create**(3)](/man/os/libsemanage/semanage_iface_create.3)**-**  
create an interface

[**semanage\_iface\_free**(3)](/man/os/libsemanage/semanage_iface_free.3)**-**  
release resources for this interface

[**semanage\_iface\_key\_create**(3)](/man/os/libsemanage/semanage_iface_key_create.3)**-**  
create a key, which can be used to identify an interface

[**semanage\_iface\_key\_free**(3)](/man/os/libsemanage/semanage_iface_key_free.3)**-**  
release resources for this interface key

[**semanage\_iface\_key\_extract**(3)](/man/os/libsemanage/semanage_iface_key_extract.3)**-**  
create a key matching this interface

[**semanage\_iface\_clone**(3)](/man/os/libsemanage/semanage_iface_clone.3)**-**  
create an identical interface (deep-copy clone)

[**semanage\_iface\_compare**(3)](/man/os/libsemanage/semanage_iface_compare.3)**-**  
compare this interface to the provided key

[**semanage\_iface\_compare2**(3)](/man/os/libsemanage/semanage_iface_compare2.3)**-**  
compare this interface to another

# [Properties API Overview](#Properties_API_Overview)

[**semanage\_iface\_get\_name**(3)](/man/os/libsemanage/semanage_iface_get_name.3)**-**  
return the name of this interface

[**semanage\_iface\_set\_name**(3)](/man/os/libsemanage/semanage_iface_set_name.3)**-**  
set the name of this interface

[**semanage\_iface\_get\_ifcon**(3)](/man/os/libsemanage/semanage_iface_get_ifcon.3)**-**  
return the SELinux context associated with this interface

[**semanage\_iface\_set\_ifcon**(3)](/man/os/libsemanage/semanage_iface_set_ifcon.3)**-**  
set the SELinux context associated with this interface

[**semanage\_iface\_get\_msgcon**(3)](/man/os/libsemanage/semanage_iface_get_msgcon.3)**-**  
return the SELinux context associated with packets sent over this interface

[**semanage\_iface\_set\_msgcon**(3)](/man/os/libsemanage/semanage_iface_set_msgcon.3)**-**  
set the SELinux context associated with packets sent over this interface

# [Record Store API Overview](#Record_Store_API_Overview)

[**semanage\_iface\_modify\_local**(3)](/man/os/libsemanage/semanage_iface_modify_local.3)**-**  
add or update an interface in the local store

[**semanage\_iface\_del\_local**(3)](/man/os/libsemanage/semanage_iface_del_local.3)**-**  
delete an interface from the local store

[**semanage\_iface\_exists**(3)](/man/os/libsemanage/semanage_iface_exists.3)**-**  
check if an interface is defined in the persistent policy

[**semanage\_iface\_exists\_local**(3)](/man/os/libsemanage/semanage_iface_exists_local.3)**-**  
check if an interface is defined in the local store

[**semanage\_iface\_query**(3)](/man/os/libsemanage/semanage_iface_query.3)**-**  
query an interface in the persistent policy

[**semanage\_iface\_query\_local**(3)](/man/os/libsemanage/semanage_iface_query_local.3)**-**  
query an interface in the local store

[**semanage\_iface\_count**(3)](/man/os/libsemanage/semanage_iface_count.3)**-**  
count the number of interfaces defined in the persistent policy

[**semanage\_iface\_count\_local**(3)](/man/os/libsemanage/semanage_iface_count_local.3)**-**  
count the number of interfaces defined in the local store

[**semanage\_iface\_iterate**(3)](/man/os/libsemanage/semanage_iface_iterate.3)**-**  
execute a callback for each interface in the persistent policy

[**semanage\_iface\_iterate\_local**(3)](/man/os/libsemanage/semanage_iface_iterate_local.3)**-**  
execute a callback for each interface in the local store

[**semanage\_iface\_list**(3)](/man/os/libsemanage/semanage_iface_list.3)**-**  
return an array containing all interfaces in the persistent policy

[**semanage\_iface\_list\_local**(3)](/man/os/libsemanage/semanage_iface_list_local.3)**-**  
return an array containing all interfaces in the local store

16 March 2006 ivg2@cornell.edu

---

Document: semanage_iface(3) from libsemanage 3.11-r2 (Chainguard OS)
Source: https://github.com/SELinuxProject/selinux.git
