X-Git-Url: http://git.monstr.eu/?a=blobdiff_plain;f=security%2Fselinux%2Fhooks.c;h=6517f221d52cd2154b7f3db8edc3834c150a0ccd;hb=ce4c8f882041341cbb3f1b4632b20440692cbccc;hp=9e84e6635f2ffd987c4a09c4a33749032d2190f6;hpb=f76c87e8c33766cc6a7bf7461dfac9cebb05b5df;p=linux-2.6-microblaze.git diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c index 9e84e6635f2f..6517f221d52c 100644 --- a/security/selinux/hooks.c +++ b/security/selinux/hooks.c @@ -1330,7 +1330,9 @@ static inline u16 socket_type_to_security_class(int family, int type, int protoc return SECCLASS_SMC_SOCKET; case PF_XDP: return SECCLASS_XDP_SOCKET; -#if PF_MAX > 45 + case PF_MCTP: + return SECCLASS_MCTP_SOCKET; +#if PF_MAX > 46 #error New address family defined, please update this function. #endif }