From: Catherine Zhang Date: Tue, 21 Mar 2006 06:49:00 +0000 (-0800) Subject: [SELINUX]: selinux_socket_getpeer_{stream,dgram} fixup X-Git-Tag: Ubuntu-5.4-5.4.0-11.14~53823^2~29 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=e6f507196c2b50243beb09b1bfa4639f999d4d1e;p=mirror_ubuntu-focal-kernel.git [SELINUX]: selinux_socket_getpeer_{stream,dgram} fixup Signed-off-by: Catherine Zhang Signed-off-by: Arnaldo Carvalho de Melo --- diff --git a/security/selinux/include/xfrm.h b/security/selinux/include/xfrm.h index a7f388bff3f2..c10f1fc41502 100644 --- a/security/selinux/include/xfrm.h +++ b/security/selinux/include/xfrm.h @@ -51,6 +51,16 @@ static inline int selinux_xfrm_postroute_last(u32 isec_sid, struct sk_buff *skb) { return NF_ACCEPT; } + +static inline int selinux_socket_getpeer_stream(struct sock *sk) +{ + return SECSID_NULL; +} + +static inline int selinux_socket_getpeer_dgram(struct sk_buff *skb) +{ + return SECSID_NULL; +} #endif #endif /* _SELINUX_XFRM_H_ */