lsm_msg_msg_alloc(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– lsm_msg_msg_alloc(9) πŸ’–

okay so welcome to the Kernel API Manual, bestie β€” this one's a lil function page and it's honestly kind of a supportive friend. It shows up, grabs some memory for the LSM blob situation, and dips. No drama. We love a low-maintenance icon. πŸŽ€


✨ NAME ✨

lsm_msg_msg_alloc β€” allocate a composite msg_msg blob


πŸ¦‹ SYNOPSIS πŸ¦‹

int lsm_msg_msg_alloc (struct msg_msg *mp );

(no, the spacing is not a typo, that's just how it's written, leave it alone πŸ’…)


🌸 ARGUMENTS 🌸

  • mp β€” the msg_msg that needs a blob. that's it. that's the whole argument. she just needs a blob. 🫢

πŸ”₯ DESCRIPTION πŸ”₯

so what does it actually do? it allocates the ipc blob for all the modules. that's the whole assignment. all of them. the entire group chat gets a blob. 😭

  • returns 0 when it ate and left no crumbs
  • returns -ENOMEM if memory can't be allocated
lowkey important: that -ENOMEM is the "couldn't get the memory" signal, okay? don't ignore it. if you get 0 you're golden, if you get -ENOMEM the allocation did not happen. no cap.

πŸ‘‘ SEE ALSO πŸ‘‘

kernel file ./security/security.c, plus literally the entire extended universe of security hooks. buckle up bestie, this list is giving "invited the whole contact list to the party" 🌈

🧚 the lsm_* helper girlies πŸ’œ

πŸŽ€ binder, ptrace, caps 'n' quotas 'n' misc πŸ“

πŸ’… exec stuff + filesystem context + superblock πŸ’«

πŸ¦‹ paths 'n' inodes (the long one, stay with me) 🧚

πŸ“ files, mmap 'n' friends ⭐

πŸ’œ tasks, creds 'n' kernel doings 🫢

🌸 IPC girlies (this page's home turf) πŸŽ€

🧚 secctx 'n' attr 'n' notification πŸ’«

🌈 networking (sockets, skbs, sctp, the works) πŸ”₯

πŸ¦‹ infiniband 'n' xfrm 🌸

πŸŽ€ keys, audit rules 'n' bpf πŸ’…

⭐ the final stretch πŸ“


okay that's the whole page bestie, you made it, I'm so proud 🫢✨ and for the credits moment: this little masterpiece lives under ./security in the source, dated October 2026, and it's filed as lsm_msg_msg_alloc(9). mwah πŸ’‹ periodt πŸ’…

πŸ“¦ where this page comes from