mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 15:27:29 +00:00
msg/security: Pass kern_ipc_perm not msg_queue into the msg_queue security hooks
All of the implementations of security hooks that take msg_queue only access q_perm the struct kern_ipc_perm member. This means the dependencies of the msg_queue security hooks can be simplified by passing the kern_ipc_perm member of msg_queue. Making this change will allow struct msg_queue to become private to ipc/msg.c. Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
This commit is contained in:
parent
7191adff2a
commit
d8c6e85432
6 changed files with 62 additions and 65 deletions
|
@ -1575,13 +1575,13 @@ union security_list_options {
|
|||
int (*msg_msg_alloc_security)(struct msg_msg *msg);
|
||||
void (*msg_msg_free_security)(struct msg_msg *msg);
|
||||
|
||||
int (*msg_queue_alloc_security)(struct msg_queue *msq);
|
||||
void (*msg_queue_free_security)(struct msg_queue *msq);
|
||||
int (*msg_queue_associate)(struct msg_queue *msq, int msqflg);
|
||||
int (*msg_queue_msgctl)(struct msg_queue *msq, int cmd);
|
||||
int (*msg_queue_msgsnd)(struct msg_queue *msq, struct msg_msg *msg,
|
||||
int (*msg_queue_alloc_security)(struct kern_ipc_perm *msq);
|
||||
void (*msg_queue_free_security)(struct kern_ipc_perm *msq);
|
||||
int (*msg_queue_associate)(struct kern_ipc_perm *msq, int msqflg);
|
||||
int (*msg_queue_msgctl)(struct kern_ipc_perm *msq, int cmd);
|
||||
int (*msg_queue_msgsnd)(struct kern_ipc_perm *msq, struct msg_msg *msg,
|
||||
int msqflg);
|
||||
int (*msg_queue_msgrcv)(struct msg_queue *msq, struct msg_msg *msg,
|
||||
int (*msg_queue_msgrcv)(struct kern_ipc_perm *msq, struct msg_msg *msg,
|
||||
struct task_struct *target, long type,
|
||||
int mode);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue