aboutsummaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
authorJames Morris <jmorris@intercode.com.au>2003-02-06 09:49:40 -0800
committerJames Morris <jmorris@intercode.com.au>2003-02-06 09:49:40 -0800
commit5234b9f7d650fe64975695d835cb9413e1d75f46 (patch)
tree317a31f72641440345d770908414835905742d09 /security
parentd1e13e50b973f2417650190e3dbc34189df79254 (diff)
downloadhistory-5234b9f7d650fe64975695d835cb9413e1d75f46.tar.gz
[LSM]: Networking socket SKB receive hook.
Diffstat (limited to 'security')
-rw-r--r--security/dummy.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/security/dummy.c b/security/dummy.c
index 1472bb6da0c919..e2dfbadaee1f64 100644
--- a/security/dummy.c
+++ b/security/dummy.c
@@ -674,6 +674,10 @@ static int dummy_socket_shutdown (struct socket *sock, int how)
return 0;
}
+static int dummy_socket_sock_rcv_skb (struct sock *sk, struct sk_buff *skb)
+{
+ return 0;
+}
#endif /* CONFIG_SECURITY_NETWORK */
static int dummy_register_security (const char *name, struct security_operations *ops)
@@ -819,6 +823,7 @@ void security_fixup_ops (struct security_operations *ops)
set_to_dummy_if_null(ops, socket_setsockopt);
set_to_dummy_if_null(ops, socket_getsockopt);
set_to_dummy_if_null(ops, socket_shutdown);
+ set_to_dummy_if_null(ops, socket_sock_rcv_skb);
#endif /* CONFIG_SECURITY_NETWORK */
}