Home
last modified time | relevance | path

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

/security/
Dsecurity.c2001 int security_shm_alloc(struct kern_ipc_perm *shp) in security_shm_alloc() argument
2003 int rc = lsm_ipc_alloc(shp); in security_shm_alloc()
2007 rc = call_int_hook(shm_alloc_security, 0, shp); in security_shm_alloc()
2009 security_shm_free(shp); in security_shm_alloc()
2013 void security_shm_free(struct kern_ipc_perm *shp) in security_shm_free() argument
2015 call_void_hook(shm_free_security, shp); in security_shm_free()
2016 kfree(shp->security); in security_shm_free()
2017 shp->security = NULL; in security_shm_free()
2020 int security_shm_associate(struct kern_ipc_perm *shp, int shmflg) in security_shm_associate() argument
2022 return call_int_hook(shm_associate, 0, shp, shmflg); in security_shm_associate()
[all …]
/security/selinux/
Dhooks.c6286 static int selinux_shm_alloc_security(struct kern_ipc_perm *shp) in selinux_shm_alloc_security() argument
6293 isec = selinux_ipc(shp); in selinux_shm_alloc_security()
6297 ad.u.ipc_id = shp->key; in selinux_shm_alloc_security()
6305 static int selinux_shm_associate(struct kern_ipc_perm *shp, int shmflg) in selinux_shm_associate() argument
6311 isec = selinux_ipc(shp); in selinux_shm_associate()
6314 ad.u.ipc_id = shp->key; in selinux_shm_associate()
6322 static int selinux_shm_shmctl(struct kern_ipc_perm *shp, int cmd) in selinux_shm_shmctl() argument
6353 err = ipc_has_perm(shp, perms); in selinux_shm_shmctl()
6357 static int selinux_shm_shmat(struct kern_ipc_perm *shp, in selinux_shm_shmat() argument
6367 return ipc_has_perm(shp, perms); in selinux_shm_shmat()