diff options
| author | Linus Torvalds <torvalds@g5.osdl.org> | 2006-03-21 12:31:48 -0500 |
|---|---|---|
| committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-03-21 12:31:48 -0500 |
| commit | 3d1f337b3e7378923c89f37afb573a918ef40be5 (patch) | |
| tree | 386798378567a10d1c7b24f599cb50f70298694c /security/dummy.c | |
| parent | 2bf2154c6bb5599e3ec3f73c34861a0b12aa839e (diff) | |
| parent | 5e35941d990123f155b02d5663e51a24f816b6f3 (diff) | |
Merge master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
* master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6: (235 commits)
[NETFILTER]: Add H.323 conntrack/NAT helper
[TG3]: Don't mark tg3_test_registers() as returning const.
[IPV6]: Cleanups for net/ipv6/addrconf.c (kzalloc, early exit) v2
[IPV6]: Nearly complete kzalloc cleanup for net/ipv6
[IPV6]: Cleanup of net/ipv6/reassambly.c
[BRIDGE]: Remove duplicate const from is_link_local() argument type.
[DECNET]: net/decnet/dn_route.c: fix inconsequent NULL checking
[TG3]: make drivers/net/tg3.c:tg3_request_irq() static
[BRIDGE]: use LLC to send STP
[LLC]: llc_mac_hdr_init const arguments
[BRIDGE]: allow show/store of group multicast address
[BRIDGE]: use llc for receiving STP packets
[BRIDGE]: stp timer to jiffies cleanup
[BRIDGE]: forwarding remove unneeded preempt and bh diasables
[BRIDGE]: netfilter inline cleanup
[BRIDGE]: netfilter VLAN macro cleanup
[BRIDGE]: netfilter dont use __constant_htons
[BRIDGE]: netfilter whitespace
[BRIDGE]: optimize frame pass up
[BRIDGE]: use kzalloc
...
Diffstat (limited to 'security/dummy.c')
| -rw-r--r-- | security/dummy.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/security/dummy.c b/security/dummy.c index f1a5bd98bf10..a678f094b72d 100644 --- a/security/dummy.c +++ b/security/dummy.c | |||
| @@ -763,8 +763,14 @@ static int dummy_socket_sock_rcv_skb (struct sock *sk, struct sk_buff *skb) | |||
| 763 | return 0; | 763 | return 0; |
| 764 | } | 764 | } |
| 765 | 765 | ||
| 766 | static int dummy_socket_getpeersec(struct socket *sock, char __user *optval, | 766 | static int dummy_socket_getpeersec_stream(struct socket *sock, char __user *optval, |
| 767 | int __user *optlen, unsigned len) | 767 | int __user *optlen, unsigned len) |
| 768 | { | ||
| 769 | return -ENOPROTOOPT; | ||
| 770 | } | ||
| 771 | |||
| 772 | static int dummy_socket_getpeersec_dgram(struct sk_buff *skb, char **secdata, | ||
| 773 | u32 *seclen) | ||
| 768 | { | 774 | { |
| 769 | return -ENOPROTOOPT; | 775 | return -ENOPROTOOPT; |
| 770 | } | 776 | } |
| @@ -1002,7 +1008,8 @@ void security_fixup_ops (struct security_operations *ops) | |||
| 1002 | set_to_dummy_if_null(ops, socket_getsockopt); | 1008 | set_to_dummy_if_null(ops, socket_getsockopt); |
| 1003 | set_to_dummy_if_null(ops, socket_shutdown); | 1009 | set_to_dummy_if_null(ops, socket_shutdown); |
| 1004 | set_to_dummy_if_null(ops, socket_sock_rcv_skb); | 1010 | set_to_dummy_if_null(ops, socket_sock_rcv_skb); |
| 1005 | set_to_dummy_if_null(ops, socket_getpeersec); | 1011 | set_to_dummy_if_null(ops, socket_getpeersec_stream); |
| 1012 | set_to_dummy_if_null(ops, socket_getpeersec_dgram); | ||
| 1006 | set_to_dummy_if_null(ops, sk_alloc_security); | 1013 | set_to_dummy_if_null(ops, sk_alloc_security); |
| 1007 | set_to_dummy_if_null(ops, sk_free_security); | 1014 | set_to_dummy_if_null(ops, sk_free_security); |
| 1008 | set_to_dummy_if_null(ops, sk_getsid); | 1015 | set_to_dummy_if_null(ops, sk_getsid); |
