diff options
author | Christopher J. PeBenito <cpebenito@tresys.com> | 2006-06-09 03:25:03 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-06-18 00:29:51 -0400 |
commit | 3e3ff15e6d8ba931fa9a6c7f9fe711edc77e96e5 (patch) | |
tree | e3b3edcf5092e9533539f6e8abdda83eee2cb96d /security/selinux/hooks.c | |
parent | 6f68dc37759b1d6ff3b4d4a9d097605a09f8f043 (diff) |
[SELINUX]: add security class for appletalk sockets
Add a security class for appletalk sockets so that they can be
distinguished in SELinux policy. Please apply.
Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
Acked-by: James Morris <jmorris@namei.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'security/selinux/hooks.c')
-rw-r--r-- | security/selinux/hooks.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c index cf7b62ca886a..41b6f5d31945 100644 --- a/security/selinux/hooks.c +++ b/security/selinux/hooks.c | |||
@@ -696,6 +696,8 @@ static inline u16 socket_type_to_security_class(int family, int type, int protoc | |||
696 | return SECCLASS_PACKET_SOCKET; | 696 | return SECCLASS_PACKET_SOCKET; |
697 | case PF_KEY: | 697 | case PF_KEY: |
698 | return SECCLASS_KEY_SOCKET; | 698 | return SECCLASS_KEY_SOCKET; |
699 | case PF_APPLETALK: | ||
700 | return SECCLASS_APPLETALK_SOCKET; | ||
699 | } | 701 | } |
700 | 702 | ||
701 | return SECCLASS_SOCKET; | 703 | return SECCLASS_SOCKET; |