Lines Matching defs:msq
2026 * @msq: the object
2030 static int smack_msg_queue_alloc_security(struct msg_queue *msq)
2032 struct kern_ipc_perm *kisp = &msq->q_perm;
2040 * @msq: the object
2044 static void smack_msg_queue_free_security(struct msg_queue *msq)
2046 struct kern_ipc_perm *kisp = &msq->q_perm;
2052 * smack_of_msq - the smack pointer for the msq
2053 * @msq: the object
2057 static char *smack_of_msq(struct msg_queue *msq)
2059 return (char *)msq->q_perm.security;
2063 * smk_curacc_msq : helper to check if current has access on msq
2064 * @msq : the msq
2069 static int smk_curacc_msq(struct msg_queue *msq, int access)
2071 char *msp = smack_of_msq(msq);
2076 ad.a.u.ipc_id = msq->q_perm.id;
2083 * @msq: the object
2088 static int smack_msg_queue_associate(struct msg_queue *msq, int msqflg)
2093 return smk_curacc_msq(msq, may);
2098 * @msq: the object
2103 static int smack_msg_queue_msgctl(struct msg_queue *msq, int cmd)
2126 return smk_curacc_msq(msq, may);
2131 * @msq: the object
2137 static int smack_msg_queue_msgsnd(struct msg_queue *msq, struct msg_msg *msg,
2143 return smk_curacc_msq(msq, may);
2148 * @msq: the object
2156 static int smack_msg_queue_msgrcv(struct msg_queue *msq, struct msg_msg *msg,
2159 return smk_curacc_msq(msq, MAY_READWRITE);