Home
last modified time | relevance | path

Searched refs:shmid_kernel (Results 1 – 7 of 7) sorted by relevance

/linux-4.1.27/ipc/
Dshm.c70 static void shm_destroy(struct ipc_namespace *ns, struct shmid_kernel *shp);
91 struct shmid_kernel *shp; in do_shm_rmid()
92 shp = container_of(ipcp, struct shmid_kernel, shm_perm); in do_shm_rmid()
130 static inline struct shmid_kernel *shm_obtain_object(struct ipc_namespace *ns, int id) in shm_obtain_object()
137 return container_of(ipcp, struct shmid_kernel, shm_perm); in shm_obtain_object()
140 static inline struct shmid_kernel *shm_obtain_object_check(struct ipc_namespace *ns, int id) in shm_obtain_object_check()
147 return container_of(ipcp, struct shmid_kernel, shm_perm); in shm_obtain_object_check()
154 static inline struct shmid_kernel *shm_lock(struct ipc_namespace *ns, int id) in shm_lock()
165 return container_of(ipcp, struct shmid_kernel, shm_perm); in shm_lock()
168 static inline void shm_lock_by_ptr(struct shmid_kernel *ipcp) in shm_lock_by_ptr()
[all …]
/linux-4.1.27/include/linux/
Dsecurity.h50 struct shmid_kernel;
1646 int (*shm_alloc_security) (struct shmid_kernel *shp);
1647 void (*shm_free_security) (struct shmid_kernel *shp);
1648 int (*shm_associate) (struct shmid_kernel *shp, int shmflg);
1649 int (*shm_shmctl) (struct shmid_kernel *shp, int cmd);
1650 int (*shm_shmat) (struct shmid_kernel *shp,
1918 int security_shm_alloc(struct shmid_kernel *shp);
1919 void security_shm_free(struct shmid_kernel *shp);
1920 int security_shm_associate(struct shmid_kernel *shp, int shmflg);
1921 int security_shm_shmctl(struct shmid_kernel *shp, int cmd);
[all …]
Dshm.h9 struct shmid_kernel /* private to the kernel */ struct
/linux-4.1.27/security/
Dcapability.c548 static int cap_shm_alloc_security(struct shmid_kernel *shp) in cap_shm_alloc_security()
553 static void cap_shm_free_security(struct shmid_kernel *shp) in cap_shm_free_security()
557 static int cap_shm_associate(struct shmid_kernel *shp, int shmflg) in cap_shm_associate()
562 static int cap_shm_shmctl(struct shmid_kernel *shp, int cmd) in cap_shm_shmctl()
567 static int cap_shm_shmat(struct shmid_kernel *shp, char __user *shmaddr, in cap_shm_shmat()
Dsecurity.c1039 int security_shm_alloc(struct shmid_kernel *shp) in security_shm_alloc()
1044 void security_shm_free(struct shmid_kernel *shp) in security_shm_free()
1049 int security_shm_associate(struct shmid_kernel *shp, int shmflg) in security_shm_associate()
1054 int security_shm_shmctl(struct shmid_kernel *shp, int cmd) in security_shm_shmctl()
1059 int security_shm_shmat(struct shmid_kernel *shp, char __user *shmaddr, int shmflg) in security_shm_shmat()
/linux-4.1.27/security/smack/
Dsmack_lsm.c2620 static struct smack_known *smack_of_shm(struct shmid_kernel *shp) in smack_of_shm()
2631 static int smack_shm_alloc_security(struct shmid_kernel *shp) in smack_shm_alloc_security()
2646 static void smack_shm_free_security(struct shmid_kernel *shp) in smack_shm_free_security()
2660 static int smk_curacc_shm(struct shmid_kernel *shp, int access) in smk_curacc_shm()
2682 static int smack_shm_associate(struct shmid_kernel *shp, int shmflg) in smack_shm_associate()
2697 static int smack_shm_shmctl(struct shmid_kernel *shp, int cmd) in smack_shm_shmctl()
2732 static int smack_shm_shmat(struct shmid_kernel *shp, char __user *shmaddr, in smack_shm_shmat()
/linux-4.1.27/security/selinux/
Dhooks.c5326 static int selinux_shm_alloc_security(struct shmid_kernel *shp) in selinux_shm_alloc_security()
5351 static void selinux_shm_free_security(struct shmid_kernel *shp) in selinux_shm_free_security()
5356 static int selinux_shm_associate(struct shmid_kernel *shp, int shmflg) in selinux_shm_associate()
5372 static int selinux_shm_shmctl(struct shmid_kernel *shp, int cmd) in selinux_shm_shmctl()
5404 static int selinux_shm_shmat(struct shmid_kernel *shp, in selinux_shm_shmat()