Home
last modified time | relevance | path

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

/linux-4.4.14/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.4.14/include/linux/
Dsecurity.h50 struct shmid_kernel;
336 int security_shm_alloc(struct shmid_kernel *shp);
337 void security_shm_free(struct shmid_kernel *shp);
338 int security_shm_associate(struct shmid_kernel *shp, int shmflg);
339 int security_shm_shmctl(struct shmid_kernel *shp, int cmd);
340 int security_shm_shmat(struct shmid_kernel *shp, char __user *shmaddr, int shmflg);
1007 static inline int security_shm_alloc(struct shmid_kernel *shp) in security_shm_alloc()
1012 static inline void security_shm_free(struct shmid_kernel *shp) in security_shm_free()
1015 static inline int security_shm_associate(struct shmid_kernel *shp, in security_shm_associate()
1021 static inline int security_shm_shmctl(struct shmid_kernel *shp, int cmd) in security_shm_shmctl()
[all …]
Dshm.h9 struct shmid_kernel /* private to the kernel */ struct
Dlsm_hooks.h1493 int (*shm_alloc_security)(struct shmid_kernel *shp);
1494 void (*shm_free_security)(struct shmid_kernel *shp);
1495 int (*shm_associate)(struct shmid_kernel *shp, int shmflg);
1496 int (*shm_shmctl)(struct shmid_kernel *shp, int cmd);
1497 int (*shm_shmat)(struct shmid_kernel *shp, char __user *shmaddr,
/linux-4.4.14/security/
Dsecurity.c1064 int security_shm_alloc(struct shmid_kernel *shp) in security_shm_alloc()
1069 void security_shm_free(struct shmid_kernel *shp) in security_shm_free()
1074 int security_shm_associate(struct shmid_kernel *shp, int shmflg) in security_shm_associate()
1079 int security_shm_shmctl(struct shmid_kernel *shp, int cmd) in security_shm_shmctl()
1084 int security_shm_shmat(struct shmid_kernel *shp, char __user *shmaddr, int shmflg) in security_shm_shmat()
/linux-4.4.14/security/smack/
Dsmack_lsm.c2895 static struct smack_known *smack_of_shm(struct shmid_kernel *shp) in smack_of_shm()
2906 static int smack_shm_alloc_security(struct shmid_kernel *shp) in smack_shm_alloc_security()
2921 static void smack_shm_free_security(struct shmid_kernel *shp) in smack_shm_free_security()
2935 static int smk_curacc_shm(struct shmid_kernel *shp, int access) in smk_curacc_shm()
2957 static int smack_shm_associate(struct shmid_kernel *shp, int shmflg) in smack_shm_associate()
2972 static int smack_shm_shmctl(struct shmid_kernel *shp, int cmd) in smack_shm_shmctl()
3007 static int smack_shm_shmat(struct shmid_kernel *shp, char __user *shmaddr, in smack_shm_shmat()
/linux-4.4.14/security/selinux/
Dhooks.c5340 static int selinux_shm_alloc_security(struct shmid_kernel *shp) in selinux_shm_alloc_security()
5365 static void selinux_shm_free_security(struct shmid_kernel *shp) in selinux_shm_free_security()
5370 static int selinux_shm_associate(struct shmid_kernel *shp, int shmflg) in selinux_shm_associate()
5386 static int selinux_shm_shmctl(struct shmid_kernel *shp, int cmd) in selinux_shm_shmctl()
5418 static int selinux_shm_shmat(struct shmid_kernel *shp, in selinux_shm_shmat()