[PATCH v8 4/9] coredump: add coredump socket

Randy Dunlap rdunlap at infradead.org
Fri May 23 00:59:39 UTC 2025


Hi,

On 5/16/25 4:25 AM, Christian Brauner wrote:
> Coredumping currently supports two modes:
> 

> ---
>  fs/coredump.c       | 118 ++++++++++++++++++++++++++++++++++++++++++++++++++--
>  include/linux/net.h |   1 +
>  net/unix/af_unix.c  |  54 ++++++++++++++++++------
>  3 files changed, 156 insertions(+), 17 deletions(-)
> 

[snip]

git a/include/linux/net.h b/include/linux/net.h> index 0ff950eecc6b..139c85d0f2ea 100644
> --- a/include/linux/net.h
> +++ b/include/linux/net.h
> @@ -81,6 +81,7 @@ enum sock_type {
>  #ifndef SOCK_NONBLOCK
>  #define SOCK_NONBLOCK	O_NONBLOCK
>  #endif
> +#define SOCK_COREDUMP	O_NOCTTY
>  
>  #endif /* ARCH_HAS_SOCKET_TYPES */

MIPS sets ARCH_HAS_SOCKET_TYPES so the new define above is not used,
causing:


net/unix/af_unix.c:1152:21: error: 'SOCK_COREDUMP' undeclared (f
irst use in this function); did you mean 'SOCK_RDM'?


-- 
~Randy




More information about the Linux-security-module-archive mailing list