security_pol...ap_supported(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– security_policycap_supported β€” the Kernel API Manual, but make it cute πŸ’–

okay so bestie, welcome to the <pink>Kernel API Manual</pink> ✨ this one's a lil function called security_policycap_supported and honestly? it's giving "does the policy support this or not" energy. that's literally the whole vibe. let's get into it πŸŽ€


🌸 NAME 🌸

security_policycap_supported β€” check for a specific policy capability πŸ‘‘

like, you hand it a capability, it tells you if the currently loaded policy is down with it. simple. iconic. no cap.


✨ SYNOPSIS ✨

int security_policycap_supported (unsigned int req_cap );

yup, that's the whole signature. it returns an int, and it takes one unsigned int called req_cap. that's it. that's the function 🫢


πŸ¦‹ ARGUMENTS πŸ¦‹

  • req_cap β€” the capability, bestie πŸ’… this is the specific policy capability you're asking about. it's an unsigned int. that's the whole argument. one job.

πŸ’œ DESCRIPTION πŸ’œ

okay so here's the tea β˜• β€” this function queries the currently loaded policy to see if it supports the capability you specified in req_cap.

and the answer comes back as:

  • true (1) β€” if the capability is supported πŸ”₯ slay
  • false (0) β€” if it isn't supported πŸ’€

that's the entire deal. it's a vibe check for policy capabilities. iykyk 🌈


🧚 SEE ALSO 🧚

the kernel file lives at ./security/selinux/ss/services.c β€” go look at it if you're feeling main character energy ⭐

and here's the whole friend group of related functions, all (9) section, all iconic in their own way:


lowkey obsessed with how many of these there are. go read them. bestie homework πŸ“šπŸ’–

and that's a wrap, babe πŸŽ€ this lil page lives in ./security/selinux/ss, and it's dated October 2026 β€” so jot that down, put it in your calendar, whatever you gotta do. mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from