diff options
author | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-19 23:36:17 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-19 23:36:17 -0400 |
commit | c00046c279a2521075250fad682ca0acc10d4fd7 (patch) | |
tree | 78a7e9089c26f199ad9b0161bb564b7c1ca6daf9 /include/linux/security.h | |
parent | 9abbf7d028b1598b40ebdc81c48f30da7f3d5bf5 (diff) | |
parent | 8e8a1407ac23b43cec0412338c1b4f5e1c664550 (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/bunk/trivial
* git://git.kernel.org/pub/scm/linux/kernel/git/bunk/trivial: (74 commits)
fix do_sys_open() prototype
sysfs: trivial: fix sysfs_create_file kerneldoc spelling mistake
Documentation: Fix typo in SubmitChecklist.
Typo: depricated -> deprecated
Add missing profile=kvm option to Documentation/kernel-parameters.txt
fix typo about TBI in e1000 comment
proc.txt: Add /proc/stat field
small documentation fixes
Fix compiler warning in smount example program from sharedsubtree.txt
docs/sysfs: add missing word to sysfs attribute explanation
documentation/ext3: grammar fixes
Documentation/java.txt: typo and grammar fixes
Documentation/filesystems/vfs.txt: typo fix
include/asm-*/system.h: remove unused set_rmb(), set_wmb() macros
trivial copy_data_pages() tidy up
Fix typo in arch/x86/kernel/tsc_32.c
file link fix for Pegasus USB net driver help
remove unused return within void return function
Typo fixes retrun -> return
x86 hpet.h: remove broken links
...
Diffstat (limited to 'include/linux/security.h')
-rw-r--r-- | include/linux/security.h | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/include/linux/security.h b/include/linux/security.h index ff3f857f6957..ac050830a873 100644 --- a/include/linux/security.h +++ b/include/linux/security.h | |||
@@ -832,9 +832,11 @@ struct request_sock; | |||
832 | * incoming sk_buff @skb has been associated with a particular socket, @sk. | 832 | * incoming sk_buff @skb has been associated with a particular socket, @sk. |
833 | * @sk contains the sock (not socket) associated with the incoming sk_buff. | 833 | * @sk contains the sock (not socket) associated with the incoming sk_buff. |
834 | * @skb contains the incoming network data. | 834 | * @skb contains the incoming network data. |
835 | * @socket_getpeersec: | 835 | * @socket_getpeersec_stream: |
836 | * This hook allows the security module to provide peer socket security | 836 | * This hook allows the security module to provide peer socket security |
837 | * state to userspace via getsockopt SO_GETPEERSEC. | 837 | * state for unix or connected tcp sockets to userspace via getsockopt |
838 | * SO_GETPEERSEC. For tcp sockets this can be meaningful if the | ||
839 | * socket is associated with an ipsec SA. | ||
838 | * @sock is the local socket. | 840 | * @sock is the local socket. |
839 | * @optval userspace memory where the security state is to be copied. | 841 | * @optval userspace memory where the security state is to be copied. |
840 | * @optlen userspace int where the module should copy the actual length | 842 | * @optlen userspace int where the module should copy the actual length |
@@ -843,6 +845,17 @@ struct request_sock; | |||
843 | * by the caller. | 845 | * by the caller. |
844 | * Return 0 if all is well, otherwise, typical getsockopt return | 846 | * Return 0 if all is well, otherwise, typical getsockopt return |
845 | * values. | 847 | * values. |
848 | * @socket_getpeersec_dgram: | ||
849 | * This hook allows the security module to provide peer socket security | ||
850 | * state for udp sockets on a per-packet basis to userspace via | ||
851 | * getsockopt SO_GETPEERSEC. The application must first have indicated | ||
852 | * the IP_PASSSEC option via getsockopt. It can then retrieve the | ||
853 | * security state returned by this hook for a packet via the SCM_SECURITY | ||
854 | * ancillary message type. | ||
855 | * @skb is the skbuff for the packet being queried | ||
856 | * @secdata is a pointer to a buffer in which to copy the security data | ||
857 | * @seclen is the maximum length for @secdata | ||
858 | * Return 0 on success, error on failure. | ||
846 | * @sk_alloc_security: | 859 | * @sk_alloc_security: |
847 | * Allocate and attach a security structure to the sk->sk_security field, | 860 | * Allocate and attach a security structure to the sk->sk_security field, |
848 | * which is used to copy security attributes between local stream sockets. | 861 | * which is used to copy security attributes between local stream sockets. |