Home
last modified time | relevance | path

Searched refs:shp (Results 1 – 2 of 2) sorted by relevance

/security/
Dsecurity.c1832 int security_shm_alloc(struct kern_ipc_perm *shp) in security_shm_alloc() argument
1834 int rc = lsm_ipc_alloc(shp); in security_shm_alloc()
1838 rc = call_int_hook(shm_alloc_security, 0, shp); in security_shm_alloc()
1840 security_shm_free(shp); in security_shm_alloc()
1844 void security_shm_free(struct kern_ipc_perm *shp) in security_shm_free() argument
1846 call_void_hook(shm_free_security, shp); in security_shm_free()
1847 kfree(shp->security); in security_shm_free()
1848 shp->security = NULL; in security_shm_free()
1851 int security_shm_associate(struct kern_ipc_perm *shp, int shmflg) in security_shm_associate() argument
1853 return call_int_hook(shm_associate, 0, shp, shmflg); in security_shm_associate()
[all …]
/security/selinux/
Dhooks.c6148 static int selinux_shm_alloc_security(struct kern_ipc_perm *shp) in selinux_shm_alloc_security() argument
6155 isec = selinux_ipc(shp); in selinux_shm_alloc_security()
6159 ad.u.ipc_id = shp->key; in selinux_shm_alloc_security()
6167 static int selinux_shm_associate(struct kern_ipc_perm *shp, int shmflg) in selinux_shm_associate() argument
6173 isec = selinux_ipc(shp); in selinux_shm_associate()
6176 ad.u.ipc_id = shp->key; in selinux_shm_associate()
6184 static int selinux_shm_shmctl(struct kern_ipc_perm *shp, int cmd) in selinux_shm_shmctl() argument
6215 err = ipc_has_perm(shp, perms); in selinux_shm_shmctl()
6219 static int selinux_shm_shmat(struct kern_ipc_perm *shp, in selinux_shm_shmat() argument
6229 return ipc_has_perm(shp, perms); in selinux_shm_shmat()