__security_read_policy(9)
πΈ NAME πΈ
okay bestie, welcome to the __security_read_policy(9) page from the Kernel API Manual β and it's literally about one thing: __security_read_policy β read the policy π«Άβ¨
β¨ SYNOPSIS β¨
int __security_read_policy (struct selinux_policy *policy , void *data ,
size_t *len );
that's the whole call, no cap. it hands back an int, and it takes the three args below π
π ARGUMENTS π
policyβ SELinux policy πdataβ binary policy data π§lenβ length of data in bytes π
this page is short and sweet, bestie β those three are the whole vibe check. no extra lore, no invented defaults, periodt.
π¦ SEE ALSO π¦
the Kernel file it points you at is ./security/selinux/ss/services.c, and these are the linked besties:
security_compute_av(9)security_sid_to_context(9)security_sid_to_context_inval(9)security_context_to_sid(9)security_context_to_sid_default(9)security_transition_sid(9)security_member_sid(9)security_change_sid(9)services_convert_context(9)security_load_policy(9)ocontext_to_sid(9)security_port_sid(9)security_ib_pkey_sid(9)security_ib_endport_sid(9)security_netif_sid(9)security_node_sid(9)__security_genfs_sid(9)security_genfs_sid(9)security_fs_use(9)security_net_peersid_resolve(9)security_policycap_supported(9)security_netlbl_cache_add(9)security_netlbl_secattr_to_sid(9)security_netlbl_sid_to_secattr(9)security_read_policy(9)security_read_state_kernel(9)
signed off with π from ./security/selinux/ss, dated October 2026 β go read that policy, bestie π
β¨
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms