diff options
-rw-r--r-- | include/linux/audit.h | 4 | ||||
-rw-r--r-- | include/linux/syscalls.h | 2 | ||||
-rw-r--r-- | ipc/mqueue.c | 2 | ||||
-rw-r--r-- | kernel/auditsc.c | 6 |
4 files changed, 7 insertions, 7 deletions
diff --git a/include/linux/audit.h b/include/linux/audit.h index 2f81c6f3b63..75ed193b11f 100644 --- a/include/linux/audit.h +++ b/include/linux/audit.h | |||
@@ -474,7 +474,7 @@ extern void audit_socketcall(int nargs, unsigned long *args); | |||
474 | extern int audit_sockaddr(int len, void *addr); | 474 | extern int audit_sockaddr(int len, void *addr); |
475 | extern void __audit_fd_pair(int fd1, int fd2); | 475 | extern void __audit_fd_pair(int fd1, int fd2); |
476 | extern int audit_set_macxattr(const char *name); | 476 | extern int audit_set_macxattr(const char *name); |
477 | extern void __audit_mq_open(int oflag, mode_t mode, struct mq_attr *attr); | 477 | extern void __audit_mq_open(int oflag, umode_t mode, struct mq_attr *attr); |
478 | extern void __audit_mq_sendrecv(mqd_t mqdes, size_t msg_len, unsigned int msg_prio, const struct timespec *abs_timeout); | 478 | extern void __audit_mq_sendrecv(mqd_t mqdes, size_t msg_len, unsigned int msg_prio, const struct timespec *abs_timeout); |
479 | extern void __audit_mq_notify(mqd_t mqdes, const struct sigevent *notification); | 479 | extern void __audit_mq_notify(mqd_t mqdes, const struct sigevent *notification); |
480 | extern void __audit_mq_getsetattr(mqd_t mqdes, struct mq_attr *mqstat); | 480 | extern void __audit_mq_getsetattr(mqd_t mqdes, struct mq_attr *mqstat); |
@@ -499,7 +499,7 @@ static inline void audit_ipc_set_perm(unsigned long qbytes, uid_t uid, gid_t gid | |||
499 | if (unlikely(!audit_dummy_context())) | 499 | if (unlikely(!audit_dummy_context())) |
500 | __audit_ipc_set_perm(qbytes, uid, gid, mode); | 500 | __audit_ipc_set_perm(qbytes, uid, gid, mode); |
501 | } | 501 | } |
502 | static inline void audit_mq_open(int oflag, mode_t mode, struct mq_attr *attr) | 502 | static inline void audit_mq_open(int oflag, umode_t mode, struct mq_attr *attr) |
503 | { | 503 | { |
504 | if (unlikely(!audit_dummy_context())) | 504 | if (unlikely(!audit_dummy_context())) |
505 | __audit_mq_open(oflag, mode, attr); | 505 | __audit_mq_open(oflag, mode, attr); |
diff --git a/include/linux/syscalls.h b/include/linux/syscalls.h index e1a4b9b81cf..d86e5253f84 100644 --- a/include/linux/syscalls.h +++ b/include/linux/syscalls.h | |||
@@ -679,7 +679,7 @@ asmlinkage long sys_shmctl(int shmid, int cmd, struct shmid_ds __user *buf); | |||
679 | asmlinkage long sys_ipc(unsigned int call, int first, unsigned long second, | 679 | asmlinkage long sys_ipc(unsigned int call, int first, unsigned long second, |
680 | unsigned long third, void __user *ptr, long fifth); | 680 | unsigned long third, void __user *ptr, long fifth); |
681 | 681 | ||
682 | asmlinkage long sys_mq_open(const char __user *name, int oflag, mode_t mode, struct mq_attr __user *attr); | 682 | asmlinkage long sys_mq_open(const char __user *name, int oflag, umode_t mode, struct mq_attr __user *attr); |
683 | asmlinkage long sys_mq_unlink(const char __user *name); | 683 | asmlinkage long sys_mq_unlink(const char __user *name); |
684 | asmlinkage long sys_mq_timedsend(mqd_t mqdes, const char __user *msg_ptr, size_t msg_len, unsigned int msg_prio, const struct timespec __user *abs_timeout); | 684 | asmlinkage long sys_mq_timedsend(mqd_t mqdes, const char __user *msg_ptr, size_t msg_len, unsigned int msg_prio, const struct timespec __user *abs_timeout); |
685 | asmlinkage long sys_mq_timedreceive(mqd_t mqdes, char __user *msg_ptr, size_t msg_len, unsigned int __user *msg_prio, const struct timespec __user *abs_timeout); | 685 | asmlinkage long sys_mq_timedreceive(mqd_t mqdes, char __user *msg_ptr, size_t msg_len, unsigned int __user *msg_prio, const struct timespec __user *abs_timeout); |
diff --git a/ipc/mqueue.c b/ipc/mqueue.c index 5eaecf4fc04..9a142a29074 100644 --- a/ipc/mqueue.c +++ b/ipc/mqueue.c | |||
@@ -679,7 +679,7 @@ err: | |||
679 | return ERR_PTR(ret); | 679 | return ERR_PTR(ret); |
680 | } | 680 | } |
681 | 681 | ||
682 | SYSCALL_DEFINE4(mq_open, const char __user *, u_name, int, oflag, mode_t, mode, | 682 | SYSCALL_DEFINE4(mq_open, const char __user *, u_name, int, oflag, umode_t, mode, |
683 | struct mq_attr __user *, u_attr) | 683 | struct mq_attr __user *, u_attr) |
684 | { | 684 | { |
685 | struct dentry *dentry; | 685 | struct dentry *dentry; |
diff --git a/kernel/auditsc.c b/kernel/auditsc.c index 47b7fc1ea89..9849213e501 100644 --- a/kernel/auditsc.c +++ b/kernel/auditsc.c | |||
@@ -234,7 +234,7 @@ struct audit_context { | |||
234 | } mq_sendrecv; | 234 | } mq_sendrecv; |
235 | struct { | 235 | struct { |
236 | int oflag; | 236 | int oflag; |
237 | mode_t mode; | 237 | umode_t mode; |
238 | struct mq_attr attr; | 238 | struct mq_attr attr; |
239 | } mq_open; | 239 | } mq_open; |
240 | struct { | 240 | struct { |
@@ -1278,7 +1278,7 @@ static void show_special(struct audit_context *context, int *call_panic) | |||
1278 | break; } | 1278 | break; } |
1279 | case AUDIT_MQ_OPEN: { | 1279 | case AUDIT_MQ_OPEN: { |
1280 | audit_log_format(ab, | 1280 | audit_log_format(ab, |
1281 | "oflag=0x%x mode=%#o mq_flags=0x%lx mq_maxmsg=%ld " | 1281 | "oflag=0x%x mode=%#ho mq_flags=0x%lx mq_maxmsg=%ld " |
1282 | "mq_msgsize=%ld mq_curmsgs=%ld", | 1282 | "mq_msgsize=%ld mq_curmsgs=%ld", |
1283 | context->mq_open.oflag, context->mq_open.mode, | 1283 | context->mq_open.oflag, context->mq_open.mode, |
1284 | context->mq_open.attr.mq_flags, | 1284 | context->mq_open.attr.mq_flags, |
@@ -2160,7 +2160,7 @@ int audit_set_loginuid(struct task_struct *task, uid_t loginuid) | |||
2160 | * @attr: queue attributes | 2160 | * @attr: queue attributes |
2161 | * | 2161 | * |
2162 | */ | 2162 | */ |
2163 | void __audit_mq_open(int oflag, mode_t mode, struct mq_attr *attr) | 2163 | void __audit_mq_open(int oflag, umode_t mode, struct mq_attr *attr) |
2164 | { | 2164 | { |
2165 | struct audit_context *context = current->audit_context; | 2165 | struct audit_context *context = current->audit_context; |
2166 | 2166 | ||