MCPcopy Create free account
hub / github.com/F-Stack/f-stack / msq_prison_cansee

Function msq_prison_cansee

freebsd/kern/sysv_msg.c:462–471  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

460}
461
462static int
463msq_prison_cansee(struct prison *rpr, struct msqid_kernel *msqkptr)
464{
465
466 if (msqkptr->cred == NULL ||
467 !(rpr == msqkptr->cred->cr_prison ||
468 prison_ischild(rpr, msqkptr->cred->cr_prison)))
469 return (EINVAL);
470 return (0);
471}
472
473#ifndef _SYS_SYSPROTO_H_
474struct msgctl_args {

Callers 4

kern_msgctlFunction · 0.85
kern_msgsndFunction · 0.85
kern_msgrcvFunction · 0.85
sysctl_msqidsFunction · 0.85

Calls 1

prison_ischildFunction · 0.85

Tested by

no test coverage detected