Home
last modified time | relevance | path

Searched refs:msg_msg (Results 1 – 13 of 13) sorted by relevance

/linux-6.6.21/ipc/
Dmsgutil.c42 #define DATALEN_MSG ((size_t)PAGE_SIZE-sizeof(struct msg_msg))
46 static struct msg_msg *alloc_msg(size_t len) in alloc_msg()
48 struct msg_msg *msg; in alloc_msg()
84 struct msg_msg *load_msg(const void __user *src, size_t len) in load_msg()
86 struct msg_msg *msg; in load_msg()
118 struct msg_msg *copy_msg(struct msg_msg *src, struct msg_msg *dst) in copy_msg()
145 struct msg_msg *copy_msg(struct msg_msg *src, struct msg_msg *dst) in copy_msg()
150 int store_msg(void __user *dest, struct msg_msg *msg, size_t len) in store_msg()
169 void free_msg(struct msg_msg *msg) in free_msg()
Dutil.h197 extern void free_msg(struct msg_msg *msg);
198 extern struct msg_msg *load_msg(const void __user *src, size_t len);
199 extern struct msg_msg *copy_msg(struct msg_msg *src, struct msg_msg *dst);
200 extern int store_msg(void __user *dest, struct msg_msg *msg, size_t len);
Dmsg.c84 struct msg_msg *r_msg;
277 struct msg_msg *msg, *t; in freeque()
794 static int testmsg(struct msg_msg *msg, long type, int mode) in testmsg()
816 static inline int pipelined_send(struct msg_queue *msq, struct msg_msg *msg, in pipelined_send()
852 struct msg_msg *msg; in do_msgsnd()
1026 static long do_msg_fill(void __user *dest, struct msg_msg *msg, size_t bufsz) in do_msg_fill()
1045 static inline struct msg_msg *prepare_copy(void __user *buf, size_t bufsz) in prepare_copy()
1047 struct msg_msg *copy; in prepare_copy()
1058 static inline void free_copy(struct msg_msg *copy) in free_copy()
1064 static inline struct msg_msg *prepare_copy(void __user *buf, size_t bufsz) in prepare_copy()
[all …]
Dmqueue.c130 struct msg_msg *msg; /* ptr of loaded message */
191 static int msg_insert(struct msg_msg *msg, struct mqueue_inode_info *info) in msg_insert()
248 static inline struct msg_msg *msg_get(struct mqueue_inode_info *info) in msg_get()
252 struct msg_msg *msg; in msg_get()
279 struct msg_msg, m_list); in msg_get()
365 mq_treesize = info->attr.mq_maxmsg * sizeof(struct msg_msg) + in mqueue_get_inode()
516 struct msg_msg *msg, *nmsg; in mqueue_evict_inode()
541 mq_treesize = info->attr.mq_maxmsg * sizeof(struct msg_msg) + in mqueue_evict_inode()
1036 struct msg_msg *message, in pipelined_send()
1069 struct msg_msg *msg_ptr; in do_mq_timedsend()
[all …]
/linux-6.6.21/security/selinux/include/
Dobjsec.h170 const struct msg_msg *msg_msg) in selinux_msg_msg() argument
172 return msg_msg->security + selinux_blob_sizes.lbs_msg_msg; in selinux_msg_msg()
/linux-6.6.21/include/linux/
Dmsg.h9 struct msg_msg { struct
Dsecurity.h53 struct msg_msg;
453 int security_msg_msg_alloc(struct msg_msg *msg);
454 void security_msg_msg_free(struct msg_msg *msg);
460 struct msg_msg *msg, int msqflg);
461 int security_msg_queue_msgrcv(struct kern_ipc_perm *msq, struct msg_msg *msg,
1254 static inline int security_msg_msg_alloc(struct msg_msg *msg) in security_msg_msg_alloc()
1259 static inline void security_msg_msg_free(struct msg_msg *msg) in security_msg_msg_free()
1282 struct msg_msg *msg, int msqflg) in security_msg_queue_msgsnd()
1288 struct msg_msg *msg, in security_msg_queue_msgrcv()
Dlsm_hook_defs.h241 LSM_HOOK(int, 0, msg_msg_alloc_security, struct msg_msg *msg)
242 LSM_HOOK(void, LSM_RET_VOID, msg_msg_free_security, struct msg_msg *msg)
249 struct msg_msg *msg, int msqflg)
251 struct msg_msg *msg, struct task_struct *target, long type, int mode)
/linux-6.6.21/Documentation/security/
Dlsm.rst83 <kern_ipc_perm>` and :c:type:`struct msg_msg
84 <msg_msg>`; additionally, the definitions for :c:type:`struct
85 msg_msg <msg_msg>`, struct msg_queue, and struct shmid_kernel
/linux-6.6.21/security/smack/
Dsmack.h342 static inline struct smack_known **smack_msg_msg(const struct msg_msg *msg) in smack_msg_msg()
Dsmack_lsm.c3055 static int smack_msg_msg_alloc_security(struct msg_msg *msg) in smack_msg_msg_alloc_security()
3353 static int smack_msg_queue_msgsnd(struct kern_ipc_perm *isp, struct msg_msg *msg, in smack_msg_queue_msgsnd()
3373 struct msg_msg *msg, in smack_msg_queue_msgrcv()
/linux-6.6.21/security/
Dsecurity.c689 static int lsm_msg_msg_alloc(struct msg_msg *mp) in lsm_msg_msg_alloc()
3511 int security_msg_msg_alloc(struct msg_msg *msg) in security_msg_msg_alloc()
3529 void security_msg_msg_free(struct msg_msg *msg) in security_msg_msg_free()
3613 struct msg_msg *msg, int msqflg) in security_msg_queue_msgsnd()
3633 int security_msg_queue_msgrcv(struct kern_ipc_perm *msq, struct msg_msg *msg, in security_msg_queue_msgrcv()
/linux-6.6.21/security/selinux/
Dhooks.c5983 static int selinux_msg_msg_alloc_security(struct msg_msg *msg) in selinux_msg_msg_alloc_security()
6053 static int selinux_msg_queue_msgsnd(struct kern_ipc_perm *msq, struct msg_msg *msg, int msqflg) in selinux_msg_queue_msgsnd()
6096 static int selinux_msg_queue_msgrcv(struct kern_ipc_perm *msq, struct msg_msg *msg, in selinux_msg_queue_msgrcv()