aboutsummaryrefslogtreecommitdiffstats
path: root/security/dummy.c
diff options
context:
space:
mode:
Diffstat (limited to 'security/dummy.c')
-rw-r--r--security/dummy.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/security/dummy.c b/security/dummy.c
index 0a553d39729f..fd99429278e9 100644
--- a/security/dummy.c
+++ b/security/dummy.c
@@ -773,8 +773,14 @@ static int dummy_socket_sock_rcv_skb (struct sock *sk, struct sk_buff *skb)
773 return 0; 773 return 0;
774} 774}
775 775
776static int dummy_socket_getpeersec(struct socket *sock, char __user *optval, 776static int dummy_socket_getpeersec_stream(struct socket *sock, char __user *optval,
777 int __user *optlen, unsigned len) 777 int __user *optlen, unsigned len)
778{
779 return -ENOPROTOOPT;
780}
781
782static int dummy_socket_getpeersec_dgram(struct sk_buff *skb, char **secdata,
783 u32 *seclen)
778{ 784{
779 return -ENOPROTOOPT; 785 return -ENOPROTOOPT;
780} 786}
@@ -1014,7 +1020,8 @@ void security_fixup_ops (struct security_operations *ops)
1014 set_to_dummy_if_null(ops, socket_getsockopt); 1020 set_to_dummy_if_null(ops, socket_getsockopt);
1015 set_to_dummy_if_null(ops, socket_shutdown); 1021 set_to_dummy_if_null(ops, socket_shutdown);
1016 set_to_dummy_if_null(ops, socket_sock_rcv_skb); 1022 set_to_dummy_if_null(ops, socket_sock_rcv_skb);
1017 set_to_dummy_if_null(ops, socket_getpeersec); 1023 set_to_dummy_if_null(ops, socket_getpeersec_stream);
1024 set_to_dummy_if_null(ops, socket_getpeersec_dgram);
1018 set_to_dummy_if_null(ops, sk_alloc_security); 1025 set_to_dummy_if_null(ops, sk_alloc_security);
1019 set_to_dummy_if_null(ops, sk_free_security); 1026 set_to_dummy_if_null(ops, sk_free_security);
1020 set_to_dummy_if_null(ops, sk_getsid); 1027 set_to_dummy_if_null(ops, sk_getsid);