security_genfs_sid(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ security_genfs_sid(9) ✨

okay so welcome to the Kernel API Manual corner of the group chat, bestie πŸ’– this little icon is literally about obtaining a SID for a file in a filesystem, and we're keeping every detail cute but intact. no cap.

🌸 NAME 🌸

security_genfs_sid β€” Obtain a SID for a file in a filesystem πŸŽ€

✨ SYNOPSIS ✨

int security_genfs_sid (const char *fstype , const char *path , u16
orig_sclass , u32 *sid );

πŸŽ€ ARGUMENTS πŸŽ€

  • fstype β€” filesystem type, aka which filesystem bestie we're talking about πŸ’…
  • path β€” path from root of mount, bestie 🌸
  • orig_sclass β€” file security class, the class vibe fr fr
  • sid β€” SID for path, the actual SID we're pointing at ✨

πŸ’– DESCRIPTION πŸ’–

Here's the whole tea: acquire policy_rwlock before calling __security_genfs_sid, and release it afterward. That's it, that's the description, and the lock choreography is giving main character energy πŸ”₯

πŸ¦‹ SEE ALSO πŸ¦‹

The Kernel file ./security/selinux/ss/services.c is serving looks in this list, and these refs are all invited to the party:


mwah πŸ’‹ this page's source/version is ./security/selinux/ss, dated October 2026, for security_genfs_sid(9) β€” footer tea delivered, periodt 🫢

πŸ“¦ where this page comes from