val_mask_to_str(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… val_mask_to_str(9) β€” Kernel API Manual πŸ’…

okay so this is the Kernel API Manual page for val_mask_to_str(9), and it's literally here to help you turn a permission mask into its short string. iconic behavior, no cap ✨


🌸 NAME 🌸

val_mask_to_str β€” convert a perm mask to its short string πŸ’–


✨ SYNOPSIS ✨

       int val_mask_to_str (char *str , size_t size , const struct
       val_table_ent *table , u32 mask );

πŸŽ€ ARGUMENTS πŸŽ€

  • str β€” the character buffer where the string gets stored. bestie, it needs at least 10 characters of room πŸ’…
  • size β€” the size of the str buffer, obviously 🫢
  • table β€” a NUL-terminated character buffer of permission characters. and NOT NULL, okay? literally cannot be NULL 😭
  • mask β€” the permission mask to convert. that's the whole vibe check πŸ”₯

πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file ./security/apparmor/lib.c: aa_destroy_str_table(9), skipn_spaces(9), aa_info_message(9), aa_perm_mask_to_str(9), aa_apply_modes_to_perms(9), aa_check_perms(9), aa_policy_init(9), aa_policy_destroy(9) 🌈


shoutout to the source/version ./security/apparmor and the date October 2026 β€” that's the footer energy, bestie, and it ate πŸ’…βœ¨

πŸ“¦ where this page comes from