does anyone know if there is any way at all on linux to get the uid that sent a message to a message queue

@velartrill what kind of message queue? i don't think that is functionality things like activeMQ etc. have

@bonifartius yeah everyone seems to prefer sockets these days, to the point that it's almost all you see used

@velartrill i can't think of a reason why _i_ would need the message queues, but that doesn't mean anything :D

buuuut github.com/torvalds/linux/blob
the pid seems to be included! at least from what i see with my limited kernel knowledge :)

@bonifartius msg_lrpid is unfortunately useless because there's no way to use it to reliably associate every message with a PID :(
Follow

@velartrill aah, just read that it's the last pid who used the syscall

@bonifartius yeah, i don't know *why* they even record that, it's so useless. posix mqs do away with it entirely
Sign in to participate in the conversation
CleverLibre Social

CleverLibre Social is an inclusive social instance for open discussion, learning, and community.
All cultures welcome.
Hate speech and harassment strictly forbidden.