ebitmap_netlbl_import(9)
π
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
- 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