semanage_iface(3)
β¨ semanage_iface β SELinux Network Interfaces Management API β¨
okay bestie, welcome to semanage_iface(3), the Libsemanage API docs page that's literally all about managing SELinux network interfaces π
this is the group chat index β the β¨ table of contents β¨ of every function in this little family, each with its own dedicated man page.
πΈ SYNOPSIS πΈ
#include <semanage/iface_record.h>
#include <semanage/interfaces_policy.h>
#include <semanage/interfaces_local.h>
so this object? it's carrying around all the properties that belong to a network interface. that's it, that's the vibe π¦
and for the tea on any specific function β like, the actual details β go read its own manual page. no cap.
π Record API Overview π
the whole "make it, clone it, compare it, yeet it" section. iconic behavior only.
semanage_iface_create(3)β creates an interface β¨semanage_iface_free(3)β releases the resources for this interface, bye girl πsemanage_iface_key_create(3)β makes a key, which you can use to identify an interface πsemanage_iface_key_free(3)β releases the resources for this interface key π«Άsemanage_iface_key_extract(3)β creates a key that matches this interfacesemanage_iface_clone(3)β creates an identical interface (a deep-copy clone, so likeβ¦ a real twin, not a copy-paste situation) π―semanage_iface_compare(3)β compares this interface to the key you providesemanage_iface_compare2(3)β compares this interface to another one
π Properties API Overview π
getters and setters, the original situationship. one to read, one to write, for each lil property.
semanage_iface_get_name(3)β returns the name of this interfacesemanage_iface_set_name(3)β sets the name of this interfacesemanage_iface_get_ifcon(3)β returns the SELinux context associated with this interface π₯semanage_iface_set_ifcon(3)β sets the SELinux context associated with this interfacesemanage_iface_get_msgcon(3)β returns the SELinux context associated with packets sent over this interface π¦semanage_iface_set_msgcon(3)β sets the SELinux context associated with packets sent over this interface
π Record Store API Overview π
now we're in the store. local store, persistent policy β two whole worlds, and yes, there are functions for both. main character energy fr fr π
semanage_iface_modify_local(3)β adds or updates an interface in the local storesemanage_iface_del_local(3)β deletes an interface from the local store πsemanage_iface_exists(3)β checks if an interface is defined in the persistent policysemanage_iface_exists_local(3)β checks if an interface is defined in the local storesemanage_iface_query(3)β queries an interface in the persistent policysemanage_iface_query_local(3)β queries an interface in the local storesemanage_iface_count(3)β counts the number of interfaces defined in the persistent policysemanage_iface_count_local(3)β counts the number of interfaces defined in the local storesemanage_iface_iterate(3)β executes a callback for each interface in the persistent policy πsemanage_iface_iterate_local(3)β executes a callback for each interface in the local storesemanage_iface_list(3)β returns an array containing all interfaces in the persistent policysemanage_iface_list_local(3)β returns an array containing all interfaces in the local store
and that's the whole page bestie, every single function accounted for, not one skipped, we don't do that here π
okay and for the cute sign-off: this page was brought to you by ivg2@cornell.edu, dated 16 March 2006, and it lives in the Libsemanage API documentation as semanage_iface(3) π ty for coming to my ted talk, slay, go read the individual function pages, mwah πβ¨
π¦ where this page comes from
- centos-stream 10: libsemanage-devel 3.11-3.el10 Β· LGPL-2.1-or-later
- debian trixie: libsemanage-dev 3.8.1-1 Β· LGPL-2.1-or-later
- fedora 43: libsemanage-devel 3.9-4.fc43 Β· LGPL-2.1-or-later
- fedora 43: libsemanage-devel 3.9-4.fc43 Β· LGPL-2.1-or-later
- fedora 44: libsemanage-devel 3.10-1.fc44 Β· LGPL-2.1-or-later
- fedora 44: libsemanage-devel 3.10-1.fc44 Β· LGPL-2.1-or-later
- fedora 44: libsemanage-devel 3.11-1.fc44 Β· LGPL-2.1-or-later
- fedora 44: libsemanage-devel 3.11-1.fc44 Β· LGPL-2.1-or-later
- nixos 26.05: libsemanage 3.10
- nixpkgs unstable: libsemanage 3.11
- opensuse-leap 16.0: libsemanage-devel 3.8.1-160000.3.1 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: libsemanage-devel 3.8.1-160000.3.1 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: libsemanage-devel 3.8.1-160000.3.1 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: libsemanage-devel 3.8.1-160000.3.1 Β· LGPL-2.1-or-later
- ubuntu questing: libsemanage-dev 3.8.1-1
- ubuntu resolute: libsemanage-dev 3.9-1build1 Β· LGPL-2.1-or-later
- ubuntu stonking: libsemanage-dev 3.11-1 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms