Searched refs:msq (Results 1 – 4 of 4) sorted by relevance
/Linux-v6.1/ipc/ |
D | msg.c | 131 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-v6.1/include/linux/ |
D | security.h | 447 int security_msg_queue_alloc(struct kern_ipc_perm *msq); 448 void security_msg_queue_free(struct kern_ipc_perm *msq); 449 int security_msg_queue_associate(struct kern_ipc_perm *msq, int msqflg); 450 int security_msg_queue_msgctl(struct kern_ipc_perm *msq, int cmd); 451 int security_msg_queue_msgsnd(struct kern_ipc_perm *msq, 453 int security_msg_queue_msgrcv(struct kern_ipc_perm *msq, struct msg_msg *msg, 1224 static inline int security_msg_queue_alloc(struct kern_ipc_perm *msq) in security_msg_queue_alloc() argument 1229 static inline void security_msg_queue_free(struct kern_ipc_perm *msq) in security_msg_queue_free() argument 1232 static inline int security_msg_queue_associate(struct kern_ipc_perm *msq, in security_msg_queue_associate() argument 1238 static inline int security_msg_queue_msgctl(struct kern_ipc_perm *msq, int cmd) in security_msg_queue_msgctl() argument [all …]
|
/Linux-v6.1/security/ |
D | security.c | 1949 int security_msg_queue_alloc(struct kern_ipc_perm *msq) in security_msg_queue_alloc() argument 1951 int rc = lsm_ipc_alloc(msq); in security_msg_queue_alloc() 1955 rc = call_int_hook(msg_queue_alloc_security, 0, msq); in security_msg_queue_alloc() 1957 security_msg_queue_free(msq); in security_msg_queue_alloc() 1961 void security_msg_queue_free(struct kern_ipc_perm *msq) in security_msg_queue_free() argument 1963 call_void_hook(msg_queue_free_security, msq); in security_msg_queue_free() 1964 kfree(msq->security); in security_msg_queue_free() 1965 msq->security = NULL; in security_msg_queue_free() 1968 int security_msg_queue_associate(struct kern_ipc_perm *msq, int msqflg) in security_msg_queue_associate() argument 1970 return call_int_hook(msg_queue_associate, 0, msq, msqflg); in security_msg_queue_associate() [all …]
|
/Linux-v6.1/security/selinux/ |
D | hooks.c | 5993 static int selinux_msg_queue_alloc_security(struct kern_ipc_perm *msq) in selinux_msg_queue_alloc_security() argument 5999 isec = selinux_ipc(msq); in selinux_msg_queue_alloc_security() 6003 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() 6026 static int selinux_msg_queue_msgctl(struct kern_ipc_perm *msq, int cmd) in selinux_msg_queue_msgctl() argument 6053 err = ipc_has_perm(msq, perms); in selinux_msg_queue_msgctl() 6057 static int selinux_msg_queue_msgsnd(struct kern_ipc_perm *msq, struct msg_msg *msg, int msqflg) in selinux_msg_queue_msgsnd() argument 6065 isec = selinux_ipc(msq); in selinux_msg_queue_msgsnd() [all …]
|