aa_get_data_from_compressed(9)
π 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_datais 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:
mangle_name(9)__aafs_setup_d_inode(9)aafs_create(9)aafs_create_file(9)aafs_create_dir(9)aafs_remove(9)aa_simple_write_to_buffer(9)query_data(9)query_label(9)aa_write_access(9)__next_ns(9)__first_profile(9)__next_profile(9)next_profile(9)p_start(9)p_next(9)p_stop(9)seq_show_profile(9)entry_create_file(9)entry_create_dir(9)entry_remove_file(9)entry_remove_dir(9)aa_destroy_aafs(9)aa_create_aafs(9)
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
- 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