aa_ns_visible(9)
β¨ aa_ns_visible β¨
okay so bestie, welcome to aa_ns_visible π β straight out of the Kernel API Manual, and honestly? she's a little icon. the whole gig is <cyan>aa_ns_visible</cyan> β as in, test if @view is visible from @curr ππ
πΈ SYNOPSIS πΈ
like, here's the whole signature, no cap:
bool aa_ns_visible (struct aa_ns *curr , struct aa_ns *view , bool subns
);
she returns a bool, she takes three args, she's lowkey doing the most for namespace visibility checks. periodt π
π¦ ARGUMENTS π¦
currβ the namespace you're treating as the parent. and babes, she is NOT NULL β like, do not even try it πviewβ the namespace you're testing to see if it's visible fromcurr. also NOT NULL, same energy, no exceptions β¨subnsβ aboolthat says whetherviewof a subns is allowed. yes ma'am, that's the whole vibe check π«Ά
π RETURN π
trueifviewis visible fromcurrβ slay! π- otherwise
falseβ she said nope π
fr fr, that's the entire return situation. no hidden lore.
π SEE ALSO π
the Kernel file ./security/apparmor/policy_ns.c is the main character here, and she brought her whole friend group π
:
aa_ns_name(9)alloc_ns(9)aa_free_ns(9)__aa_lookupn_ns(9)aa_lookupn_ns(9)__aa_find_or_create_ns(9)aa_prepare_ns(9)destroy_ns(9)__aa_remove_ns(9)__ns_list_release(9)aa_alloc_root_ns(9)
ngl bestie, all three pointers being NOT NULL is not a suggestion, it's a lifestyle. respect the contract or catch these crashes ππ₯
and that's the whole page, mwah π big sign-off energy: brought to you by ./security/apparmor, stamped October 2026, and yes she ate πππ¦
π¦ 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