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

Function msg_find_prison

freebsd/kern/sysv_msg.c:450–460  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

448}
449
450static struct prison *
451msg_find_prison(struct ucred *cred)
452{
453 struct prison *pr, *rpr;
454
455 pr = cred->cr_prison;
456 prison_lock(pr);
457 rpr = osd_jail_get(pr, msg_prison_slot);
458 prison_unlock(pr);
459 return rpr;
460}
461
462static int
463msq_prison_cansee(struct prison *rpr, struct msqid_kernel *msqkptr)

Callers 5

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

Calls 2

prison_lockFunction · 0.85
prison_unlockFunction · 0.85

Tested by

no test coverage detected