Skip to content

Commit a799be9

Browse files
committed
ipc/ipc_sysctl: Add missing include of linux/cred.h
The kernel test robot recently reported[1][2] that in configurations without CONFIG_COMPAT set the recent changes to ipc_permissions would result in code that would not compile, as definitions present in linux/cred.h were missing. Include linux/cred.h explicitly in ipc/ipc_sysctl.c so that it builds in all kernel configurations. [1] https://lkml.kernel.org/r/202209301555.UK7B8MPo-lkp@intel.com [2] https://lkml.kernel.org/r/202209301537.wYdDBROB-lkp@intel.com Reported-by: kernel test robot <lkp@intel.com> Fixes: 54e1011 ("sysctl: Allow change system v ipc sysctls inside ipc namespace") Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
1 parent 7608b6a commit a799be9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ipc/ipc_sysctl.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
#include <linux/ipc_namespace.h>
1515
#include <linux/msg.h>
1616
#include <linux/slab.h>
17+
#include <linux/cred.h>
1718
#include "util.h"
1819

1920
static int proc_ipc_dointvec_minmax_orphans(struct ctl_table *table, int write,

0 commit comments

Comments
 (0)