aa_get_data_from_compressed(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… aa_get_data_from_compressed

okay bestie, welcome to the Kernel API Manual entry for aa_get_data_from_compressed β€” and no, that's not a mouthful, that's just what happens when a function has main character energy πŸ’–


✨ NAME ✨

aa_get_data_from_compressed β€” the common routine for getting compressed policy from user, and for getting both the compressed and the uncompressed version. like, both. at once. overachiever behavior fr fr 🫢


πŸ¦‹ SYNOPSIS πŸ¦‹

struct aa_loaddata * aa_get_data_from_compressed (const char __user
*userbuf , size_t buffer_size , loff_t *pos , char **compressed_data );

πŸŽ€ ARGUMENTS πŸŽ€

  • userbuf β€” the user buffer you're copying data from. it is NOT NULL, so do not come in here with a NULL, that's not the vibe πŸ™ˆ
  • buffer_size β€” size of the user buffer. literally just how big it is πŸ’«
  • pos β€” the position the write is at in the file. also NOT NULL, same energy, no NULLs allowed πŸ‘‘
  • compressed_data β€” a pointer to the compressed data; *compressed_data is allocated right there for you. it's giving free real estate ✨

πŸ”₯ RETURN πŸ”₯

a kernel buffer containing the copy of the user buffer data β€” or an ERR_PTR on failure 😭 (iykyk, check that pointer)


🌈 SEE ALSO 🌈

the Kernel file ./security/apparmor/apparmorfs.c, plus the whole friend group:


ngl, that see-also list is a whole squad 🫢 go read them, they ate πŸ’…

and that's the page, bestie! brought to you by the fine folks over in ./security/apparmor, dated October 2026, and of course the star of the show herself, aa_get_data_from_compressed(9) πŸ’œπŸŽ€ see you in the next manpage, mwah! 🌸

πŸ“¦ where this page comes from