Skip to content

Commit

Permalink
[SELINUX]: selinux_socket_getpeer_{stream,dgram} fixup
Browse files Browse the repository at this point in the history
Signed-off-by: Catherine Zhang <cxzhang@watson.ibm.com>
Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com>
  • Loading branch information
Catherine Zhang authored and David S. Miller committed Mar 21, 2006
1 parent 543d9cf commit e6f5071
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions security/selinux/include/xfrm.h
Original file line number Diff line number Diff line change
Expand Up @@ -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_ */

0 comments on commit e6f5071

Please sign in to comment.