Skip to content
Commit a799be9b authored by Eric W. Biederman's avatar Eric W. Biederman
Browse files

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: default avatarkernel test robot <lkp@intel.com>
Fixes: 54e1011b ("sysctl: Allow change system v ipc sysctls inside ipc namespace")
Signed-off-by: default avatar"Eric W. Biederman" <ebiederm@xmission.com>
parent 7608b6a7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment