semanage_node(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

โœจ NAME โœจ

semanage_node โ€” the SELinux Network Nodes Management API, aka the whole entire toolkit for talking about network nodes in SELinux, bestie ๐Ÿ’–


๐ŸŽ€ SYNOPSIS ๐ŸŽ€

#include <semanage/node_record.h>
#include <semanage/nodes_policy.h>
#include <semanage/nodes_local.h>

Okay so picture this: this object holds all the properties that are associated with a network node. That's it, that's the vibe. ๐Ÿฆ‹

And if you wanna know the tea on one specific function? Each one has its own manual page, so go read that one. iykyk ๐Ÿ’…


๐Ÿ““ Record API Overview

  • semanage_node_create(3) โ€” makes you a node, brand new, fresh out the box โœจ
  • semanage_node_free(3) โ€” lets this node go, releases all its resources ๐Ÿซถ
  • semanage_node_key_create(3) โ€” creates a key, which you can use to identify a node ๐Ÿ”‘
  • semanage_node_key_free(3) โ€” releases the resources for this node key, bye bestie ๐Ÿ‘‹
  • semanage_node_key_extract(3) โ€” pulls out a key that matches this node ๐ŸŽฏ
  • semanage_node_clone(3) โ€” makes an identical node, a deep-copy clone, twin behavior fr fr ๐Ÿ‘ฏ
  • semanage_node_compare(3) โ€” compares this node against the key you hand it ๐Ÿ”
  • semanage_node_compare2(3) โ€” compares this node against another node, head to head ๐Ÿ˜ค

๐ŸŒˆ Properties API Overview

  • semanage_node_get_addr(3) โ€” returns this node's IP address, as a string ๐Ÿ 
  • semanage_node_set_addr(3) โ€” sets this node's IP address from the string representation and protocol you provide โœ๏ธ
  • semanage_node_get_addr_bytes(3) โ€” returns this node's IP address as a byte array in network byte order ๐Ÿงฎ
  • semanage_node_set_addr_bytes(3) โ€” sets this node's IP address from the byte array you provide, in network byte order ๐Ÿ“ฅ
  • semanage_node_get_mask(3) โ€” returns this node's IP mask as a string ๐ŸŽญ
  • semanage_node_set_mask(3) โ€” sets this node's IP mask from the string representation and protocol version you provide ๐Ÿ–Š๏ธ
  • semanage_node_get_mask_bytes(3) โ€” returns this node's IP mask as a byte array in network byte order ๐Ÿ”ข
  • semanage_node_set_mask_bytes(3) โ€” sets this node's IP mask from the byte array you provide, in network byte order ๐Ÿ“ฆ
  • semanage_node_get_proto(3) โ€” returns the IP protocol version for this node ๐Ÿ“ก
  • semanage_node_get_proto_str(3) โ€” returns a string representation of whatever protocol that node is on ๐Ÿ”ค
  • semanage_node_set_proto(3) โ€” sets the IP protocol version for this node ๐Ÿ› ๏ธ
  • semanage_node_get_con(3) โ€” returns the SELinux context associated with this node ๐Ÿท๏ธ
  • semanage_node_set_con(3) โ€” sets the SELinux context associated with this node ๐Ÿ’พ

๐Ÿ—„๏ธ Record Store API Overview


Okay that's the whole page, you ate that ๐Ÿ’… This lil gem lives in the Libsemanage API documentation, it was written by ivg2@cornell.edu, and it's dated 16 March 2006 โ€” an icon, an absolute legend, still serving the girls network node management realness to this very day. periodt. ๐Ÿ‘‘๐Ÿ’–๐Ÿฆ‹