mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-23 09:19:51 +00:00
[PATCH] Make IPC mode consistent
The mode fields for IPC records are not consistent. Some are hex, others are octal. This patch makes them all octal. Signed-off-by: Steve Grubb <sgrubb@redhat.com> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
d7fff6f4d1
commit
5b9a426223
1 changed files with 2 additions and 2 deletions
|
@ -995,7 +995,7 @@ static void audit_log_exit(struct audit_context *context, struct task_struct *ts
|
|||
case AUDIT_IPC: {
|
||||
struct audit_aux_data_ipcctl *axi = (void *)aux;
|
||||
audit_log_format(ab,
|
||||
"ouid=%u ogid=%u mode=%x",
|
||||
"ouid=%u ogid=%u mode=%#o",
|
||||
axi->uid, axi->gid, axi->mode);
|
||||
if (axi->osid != 0) {
|
||||
char *ctx = NULL;
|
||||
|
@ -1014,7 +1014,7 @@ static void audit_log_exit(struct audit_context *context, struct task_struct *ts
|
|||
case AUDIT_IPC_SET_PERM: {
|
||||
struct audit_aux_data_ipcctl *axi = (void *)aux;
|
||||
audit_log_format(ab,
|
||||
"qbytes=%lx ouid=%u ogid=%u mode=%x",
|
||||
"qbytes=%lx ouid=%u ogid=%u mode=%#o",
|
||||
axi->qbytes, axi->uid, axi->gid, axi->mode);
|
||||
break; }
|
||||
|
||||
|
|
Loading…
Reference in a new issue