services_convert_context(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ NAME πŸŽ€

Okay bestie, this is services_convert_context from the Kernel API Manual β€” and it converts a security context across policies. That's the whole assignment. πŸ’…

✨ SYNOPSIS ✨

int services_convert_context (struct convert_context_args *args , struct
context *oldc , struct context *newc , gfp_t gfp_flags );

🫢 ARGUMENTS 🫢

  • args β€” a populated convert_context_args struct. Like, it's already got its little fields filled in.
  • oldc β€” the original context.
  • newc β€” the converted context.
  • gfp_flags β€” allocation flags.

πŸ’… DESCRIPTION πŸ’…

So here's the tea: services_convert_context converts the values in the security context structure oldc from the values specified in the policy args->oldp to the values specified in the policy args->newp. It stores the new context in newc, and it verifies that the context is valid under the new policy. No cap, that's literally the whole flow. πŸ’–

πŸ”₯ SEE ALSO πŸ”₯

Kernel file ./security/selinux/ss/services.c β€” and the rest of the friend group:


That's a wrap, bestie 🫢 β€” services_convert_context(9) from the Kernel API Manual, source/version ./security/selinux/ss, dated October 2026. Slay and stay valid under the new policy. πŸ’œ

πŸ“¦ where this page comes from