semanage_iface(3)

πŸ“¦
version 3.11 Β· 2 versions
, in centos-stream 10, debian trixie, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0, ubuntu questing, ubuntu resolute, ubuntu stonking

✨ 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 interface
  • semanage_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 provide
  • semanage_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 interface
  • semanage_iface_set_name(3) β€” sets the name of this interface
  • semanage_iface_get_ifcon(3) β€” returns the SELinux context associated with this interface πŸ”₯
  • semanage_iface_set_ifcon(3) β€” sets the SELinux context associated with this interface
  • semanage_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 πŸ‘‘


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 πŸ’–βœ¨