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

Function mac_posixshm_check_write

freebsd/security/mac/mac_posix_shm.c:251–263  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

249 "struct ucred *", "struct shmfd *");
250
251int
252mac_posixshm_check_write(struct ucred *active_cred, struct ucred *file_cred,
253 struct shmfd *shmfd)
254{
255 int error;
256
257 MAC_POLICY_CHECK_NOSLEEP(posixshm_check_write, active_cred,
258 file_cred, shmfd, shmfd->shm_label);
259 MAC_CHECK_PROBE3(posixshm_check_write, error, active_cred,
260 file_cred, shmfd);
261
262 return (error);
263}

Callers 1

shm_writeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected