From: Stephen Smalley Date: Fri, 10 Jul 2015 21:19:57 +0000 (-0400) Subject: selinux: initialize sock security class to default value X-Git-Tag: omap-for-v4.3/fixes-rc1~70^2~4^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5dee25d08eac01472904b0ab32ce35edee5c0518;p=pandora-kernel.git selinux: initialize sock security class to default value Initialize the security class of sock security structures to the generic socket class. This is similar to what is already done in inode_alloc_security for files. Generally the sclass field will later by set by socket_post_create or sk_clone or sock_graft, but for protocol implementations that fail to call any of these for newly accepted sockets, we want some sane default that will yield a legitimate avc denied message with non-garbage values for class and permission. Signed-off-by: Stephen Smalley Signed-off-by: Paul Moore --- Reading git-diff-tree failed