ebitmap_netlbl_import(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… ebitmap_netlbl_import πŸ’…

okay so bestie, welcome to the Kernel API Manual ✨ β€” this one lives in section 9 and it's literally called ebitmap_netlbl_import. say it with me: e-bit-map-net-lbl-import. iconic, i know πŸŽ€


🌸 NAME 🌸

ebitmap_netlbl_import β€” no cap, what this does is import a NetLabel category bitmap into an ebitmap πŸ¦‹

like that's the whole vibe. one job. slay.


✨ SYNOPSIS ✨

int ebitmap_netlbl_import (struct ebitmap *ebmap , struct
netlbl_lsm_catmap *catmap );

it returns an int, it takes two pointers, and yes the line break in the middle of the declaration is exactly how it's written. we don't question the formatting, we respect it πŸ’…


🫢 ARGUMENTS 🫢

  • ebmap β€” the ebitmap you're importing into. the destination. the main character of this whole operation πŸ‘‘
  • catmap β€” the NetLabel category bitmap. the source. the one doing the travelling ✈️

🌈 DESCRIPTION 🌈

so the way this works: you take a NetLabel category bitmap and you import it into a SELinux extensibile bitmap πŸ’– (that's the "ebitmap" β€” and yes the manual says "extensibile", we're keeping it exactly as written, periodt πŸŽ€)

what does it give back? listen up:

  • returns zero on success ⭐
  • returns negative values on error πŸ’€

that's it, that's the contract. zero = we ate. negative = it's giving disaster, check your inputs πŸ™ˆ


πŸ”₯ SEE ALSO πŸ”₯

  • Kernel file ./security/selinux/ss/ebitmap.c β€” go read it, iykyk πŸ“–
  • ebitmap_netlbl_export(9) β€” the reverse direction bestie, the export to this import πŸ¦‹

real talk: this page is short but every word of it counts. the return values matter. negative is an error. don't be out here treating negatives as success, i'm begging 😭

and that's a wrap, bestie 🌸 this little gem comes to you from ./security/selinux/ss and is dated October 2026 β€” put it in your calendar, frame it, whatever, it's yours now πŸ’œβœ¨

πŸ“¦ where this page comes from