init_selinuxmnt(3)

πŸ“¦
version 3.11 Β· 3 versions
, in alpine 3.24, centos-stream 10, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0

πŸ’– init_selinuxmnt πŸ’–

okay bestie, so this is a page from the SELinux API documentation β€” like, the init_selinuxmnt(3) situation β€” and it's short, sweet, and honestly kind of iconic in its minimalism. no cap. let's get into it. πŸ¦‹


✨ NAME ✨

init_selinuxmnt β€” literally just here to initialize the global variable selinux_mnt. that's the whole job. main character energy, one task, does it flawlessly. πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

static void init_selinuxmnt(void);

static void fini_selinuxmnt(void);

void set_selinuxmnt(const char *mnt);

three little functions, all vibes. 🌸


πŸ”₯ DESCRIPTION πŸ”₯

okay so, init_selinuxmnt() does the thing where it initializes the global variable selinux_mnt to the selinuxfs mountpoint. it's giving "first day of school, getting everything set up." ✨

then there's fini_selinuxmnt(), which deinitializes the global variable selinux_mnt β€” the one that stores the selinuxfs mountpoint. so it's the clean-up era, the closing shift, the "thanks for coming to my ted talk." 🫢

and finally set_selinuxmnt() changes the selinuxfs mountpoint to mnt. so if you ever wanna point that thing somewhere else, this is your girl. πŸ’œ

ngl, no error values, no return values, no environment variables listed here β€” this page keeps it very tight. just the three functions, doing their three things. 😭

πŸ‘‘ AUTHOR πŸ‘‘

this manual page has been written by Guido Trentalancia <guido@trentalancia.com> β€” shoutout to the author fr fr, we appreciate the lore. πŸ™ˆ


🌈 SEE ALSO 🌈

go read that one too, bestie. iykyk. ⭐


and that's the whole page, no crumbs left. this version was dated 21 Nov 2009 and belongs to the init_selinuxmnt(3) era β€” a lil vintage, a lil timeless. slay. πŸ’–βœ¨πŸŽ€πŸ¦‹πŸŒΈπŸ’…πŸ«Ά