Searched refs:msq (Results 1 – 4 of 4) sorted by relevance
/linux/ipc/ |
A D | msg.c | 133 kfree(msq); in msg_rcu_free() 150 msq = kmalloc(sizeof(*msq), GFP_KERNEL_ACCOUNT); in newque() 151 if (unlikely(!msq)) in newque() 160 kfree(msq); in newque() 164 msq->q_stime = msq->q_rtime = 0; in newque() 166 msq->q_cbytes = msq->q_qnum = 0; in newque() 168 msq->q_lspid = msq->q_lrpid = NULL; in newque() 188 return msgsz + msq->q_cbytes <= msq->q_qbytes && in msg_fits_inqueue() 189 1 + msq->q_qnum <= msq->q_qbytes; in msg_fits_inqueue() 937 msq->q_qnum++; in do_msgsnd() [all …]
|
/linux/include/linux/ |
A D | security.h | 442 int security_msg_queue_alloc(struct kern_ipc_perm *msq); 443 void security_msg_queue_free(struct kern_ipc_perm *msq); 444 int security_msg_queue_associate(struct kern_ipc_perm *msq, int msqflg); 445 int security_msg_queue_msgctl(struct kern_ipc_perm *msq, int cmd); 446 int security_msg_queue_msgsnd(struct kern_ipc_perm *msq, 448 int security_msg_queue_msgrcv(struct kern_ipc_perm *msq, struct msg_msg *msg, 1213 static inline int security_msg_queue_alloc(struct kern_ipc_perm *msq) in security_msg_queue_alloc() argument 1218 static inline void security_msg_queue_free(struct kern_ipc_perm *msq) in security_msg_queue_free() argument 1221 static inline int security_msg_queue_associate(struct kern_ipc_perm *msq, in security_msg_queue_associate() argument 1232 static inline int security_msg_queue_msgsnd(struct kern_ipc_perm *msq, in security_msg_queue_msgsnd() argument [all …]
|
/linux/security/ |
A D | security.c | 1926 int security_msg_queue_alloc(struct kern_ipc_perm *msq) in security_msg_queue_alloc() argument 1928 int rc = lsm_ipc_alloc(msq); in security_msg_queue_alloc() 1932 rc = call_int_hook(msg_queue_alloc_security, 0, msq); in security_msg_queue_alloc() 1934 security_msg_queue_free(msq); in security_msg_queue_alloc() 1938 void security_msg_queue_free(struct kern_ipc_perm *msq) in security_msg_queue_free() argument 1940 call_void_hook(msg_queue_free_security, msq); in security_msg_queue_free() 1941 kfree(msq->security); in security_msg_queue_free() 1942 msq->security = NULL; in security_msg_queue_free() 1947 return call_int_hook(msg_queue_associate, 0, msq, msqflg); in security_msg_queue_associate() 1952 return call_int_hook(msg_queue_msgctl, 0, msq, cmd); in security_msg_queue_msgctl() [all …]
|
/linux/security/selinux/ |
A D | hooks.c | 6048 static int selinux_msg_queue_alloc_security(struct kern_ipc_perm *msq) in selinux_msg_queue_alloc_security() argument 6055 isec = selinux_ipc(msq); in selinux_msg_queue_alloc_security() 6059 ad.u.ipc_id = msq->key; in selinux_msg_queue_alloc_security() 6073 isec = selinux_ipc(msq); in selinux_msg_queue_associate() 6076 ad.u.ipc_id = msq->key; in selinux_msg_queue_associate() 6083 static int selinux_msg_queue_msgctl(struct kern_ipc_perm *msq, int cmd) in selinux_msg_queue_msgctl() argument 6110 err = ipc_has_perm(msq, perms); in selinux_msg_queue_msgctl() 6122 isec = selinux_ipc(msq); in selinux_msg_queue_msgsnd() 6140 ad.u.ipc_id = msq->key; in selinux_msg_queue_msgsnd() 6170 isec = selinux_ipc(msq); in selinux_msg_queue_msgrcv() [all …]
|
Completed in 34 milliseconds