Home
last modified time | relevance | path

Searched refs:msq (Results 1 – 4 of 4) sorted by relevance

/linux-6.6.21/ipc/
Dmsg.c131 struct msg_queue *msq = container_of(p, struct msg_queue, q_perm); in msg_rcu_free() local
133 security_msg_queue_free(&msq->q_perm); in msg_rcu_free()
134 kfree(msq); in msg_rcu_free()
146 struct msg_queue *msq; in newque() local
151 msq = kmalloc(sizeof(*msq), GFP_KERNEL_ACCOUNT); in newque()
152 if (unlikely(!msq)) in newque()
155 msq->q_perm.mode = msgflg & S_IRWXUGO; in newque()
156 msq->q_perm.key = key; in newque()
158 msq->q_perm.security = NULL; in newque()
159 retval = security_msg_queue_alloc(&msq->q_perm); in newque()
[all …]
/linux-6.6.21/include/linux/
Dsecurity.h455 int security_msg_queue_alloc(struct kern_ipc_perm *msq);
456 void security_msg_queue_free(struct kern_ipc_perm *msq);
457 int security_msg_queue_associate(struct kern_ipc_perm *msq, int msqflg);
458 int security_msg_queue_msgctl(struct kern_ipc_perm *msq, int cmd);
459 int security_msg_queue_msgsnd(struct kern_ipc_perm *msq,
461 int security_msg_queue_msgrcv(struct kern_ipc_perm *msq, struct msg_msg *msg,
1262 static inline int security_msg_queue_alloc(struct kern_ipc_perm *msq) in security_msg_queue_alloc() argument
1267 static inline void security_msg_queue_free(struct kern_ipc_perm *msq) in security_msg_queue_free() argument
1270 static inline int security_msg_queue_associate(struct kern_ipc_perm *msq, in security_msg_queue_associate() argument
1276 static inline int security_msg_queue_msgctl(struct kern_ipc_perm *msq, int cmd) in security_msg_queue_msgctl() argument
[all …]
/linux-6.6.21/security/
Dsecurity.c3545 int security_msg_queue_alloc(struct kern_ipc_perm *msq) in security_msg_queue_alloc() argument
3547 int rc = lsm_ipc_alloc(msq); in security_msg_queue_alloc()
3551 rc = call_int_hook(msg_queue_alloc_security, 0, msq); in security_msg_queue_alloc()
3553 security_msg_queue_free(msq); in security_msg_queue_alloc()
3563 void security_msg_queue_free(struct kern_ipc_perm *msq) in security_msg_queue_free() argument
3565 call_void_hook(msg_queue_free_security, msq); in security_msg_queue_free()
3566 kfree(msq->security); in security_msg_queue_free()
3567 msq->security = NULL; in security_msg_queue_free()
3581 int security_msg_queue_associate(struct kern_ipc_perm *msq, int msqflg) in security_msg_queue_associate() argument
3583 return call_int_hook(msg_queue_associate, 0, msq, msqflg); in security_msg_queue_associate()
[all …]
/linux-6.6.21/security/selinux/
Dhooks.c5994 static int selinux_msg_queue_alloc_security(struct kern_ipc_perm *msq) in selinux_msg_queue_alloc_security() argument
6000 isec = selinux_ipc(msq); in selinux_msg_queue_alloc_security()
6004 ad.u.ipc_id = msq->key; in selinux_msg_queue_alloc_security()
6010 static int selinux_msg_queue_associate(struct kern_ipc_perm *msq, int msqflg) in selinux_msg_queue_associate() argument
6016 isec = selinux_ipc(msq); in selinux_msg_queue_associate()
6019 ad.u.ipc_id = msq->key; in selinux_msg_queue_associate()
6025 static int selinux_msg_queue_msgctl(struct kern_ipc_perm *msq, int cmd) in selinux_msg_queue_msgctl() argument
6050 return ipc_has_perm(msq, perms); in selinux_msg_queue_msgctl()
6053 static int selinux_msg_queue_msgsnd(struct kern_ipc_perm *msq, struct msg_msg *msg, int msqflg) in selinux_msg_queue_msgsnd() argument
6061 isec = selinux_ipc(msq); in selinux_msg_queue_msgsnd()
[all …]