Lines Matching defs:shp
3528 * @shp: sysv ipc permission structure
3530 * Allocate and attach a security structure to the @shp security field. The
3535 int security_shm_alloc(struct kern_ipc_perm *shp)
3537 int rc = lsm_ipc_alloc(shp);
3541 rc = call_int_hook(shm_alloc_security, shp);
3543 security_shm_free(shp);
3549 * @shp: sysv ipc permission structure
3553 void security_shm_free(struct kern_ipc_perm *shp)
3555 call_void_hook(shm_free_security, shp);
3556 kfree(shp->security);
3557 shp->security = NULL;
3562 * @shp: sysv ipc permission structure
3572 int security_shm_associate(struct kern_ipc_perm *shp, int shmflg)
3574 return call_int_hook(shm_associate, shp, shmflg);
3579 * @shp: sysv ipc permission structure
3583 * to be performed on the shared memory region with permissions in @shp.
3587 int security_shm_shmctl(struct kern_ipc_perm *shp, int cmd)
3589 return call_int_hook(shm_shmctl, shp, cmd);
3594 * @shp: sysv ipc permission structure
3599 * shared memory segment with permissions @shp to the data segment of the
3604 int security_shm_shmat(struct kern_ipc_perm *shp,
3607 return call_int_hook(shm_shmat, shp, shmaddr, shmflg);