Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp2349370imc; Tue, 12 Mar 2019 11:56:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqxbQSNUPphI7STsup8XlfrexsABGGtx5ilQZcnGLJADgohP+bX2iRes2HEc7GQnInugbv8q X-Received: by 2002:a65:410a:: with SMTP id w10mr35614012pgp.206.1552416995444; Tue, 12 Mar 2019 11:56:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552416995; cv=none; d=google.com; s=arc-20160816; b=bJaN+b6tE0OVBJ8oisv4hrNbf23+A9wCFTM9/pwWfRhUgrqjU5Hjvcx38EEmjP0Jl3 eIO6Psip7LYppixyxXFof587m7Ssw6Ll3PJ2X24ZCIB99PMYRG8wfgEuDZ96rbg9iTOV 7HzWl4gggZLSrpx2pwjnVCLf1NqqYrRGMGazrJX92BbquV/FwkypiFRnGbIHikd2OdvE vfgmPdQREIeee7vMjsHi9pIs/UxvKkHHQEMPe5uu0Z/p5KAIqquc1Dhyet+GiLJdnQaZ 0HP46PPMlm9gxhaKMEDrtDPnaTv++sna1o5Y3xAu8FVP26DQ9Lx0dF9hdeb0STbn2Nkd qFBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:subject:to:from:date:domainkey-signature:dkim-signature; bh=wpKTty2F4UxbOExLeJdt2DCELK5T4FLifqpeG9c6t10=; b=NgcrYqLDYatz3s1fLBlvzHv+C3o2o2wQtoJgU7gJjdwW3dgYeHmKGgb0rvAz2qD8Tz fC9imwnyMnMVcmBp4nqKdEXjdnw9m16gBPr/WYSwMyhRQLvXVJBTAJEUr2sWu4WSKAJS 0mlMoMDWxLbhIhQ/U9kyWLv1Aacc29OMpbMXNcZv/4B6XgY1GWmVU++gkobaNAYMra1r 82JKzB7EZUmjCxrvPjB3LCH59VK9lYX/A/+GSg24B2WG9sx1bit+sW8vH4DrZVS5skLe d/LlmiWKGnl1ZBicpggF4tNRKwzqLOAfv/L7KjpwYQOfs71kAgLXSnaDjA1IHGV15cNb EvQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@jnbr.me header.s=default header.b=hirI8xAL; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=jnbr.me Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f18si7832565pgv.253.2019.03.12.11.56.19; Tue, 12 Mar 2019 11:56:35 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@jnbr.me header.s=default header.b=hirI8xAL; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=jnbr.me Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726960AbfCLSyl (ORCPT + 99 others); Tue, 12 Mar 2019 14:54:41 -0400 Received: from mail.jnbr.me ([104.238.167.236]:58948 "EHLO jnbr.me" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726339AbfCLSyl (ORCPT ); Tue, 12 Mar 2019 14:54:41 -0400 X-Greylist: delayed 400 seconds by postgrey-1.27 at vger.kernel.org; Tue, 12 Mar 2019 14:54:40 EDT Received: from jnbr.me (localhost [127.0.0.1]) by jnbr.me (OpenSMTPD) with ESMTP id 038819f9; Tue, 12 Mar 2019 18:48:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=jnbr.me; h=date:from:to :subject:message-id:mime-version:content-type :content-transfer-encoding; s=default; bh=ZaWRsaxVb3MJMKkrHrpBl0 Ut4Uk=; b=hirI8xALzVz/shyh8aZq5ML0ofpb7IJhJXAZbOZxdh7WIMp309nlxN wzm9HWj8bGeF+n3x8e3oe5Rb6fX9fzvajQ+P9AHznaCYIqyhprHU14MTjZEhi0sj 4gZdZJSjbC5nyJKx2aK158TWS0o8dAvw4K6HHVC5jHFE30EhA+bIg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=jnbr.me; h=date:from:to :subject:message-id:mime-version:content-type :content-transfer-encoding; q=dns; s=default; b=CrPs/NJSjjQv3NZv d4j+xVBRyux/jJoVl14MkvSr2WEKzlswBL/9XoidvhZUMzCWkFRA4kblZWDGf/5u +hCZU2jHWYFbEQXXO6oAQ63pDyWZ3VICrrC1Qy6IQkaLbStHZTL7ThnKNtA+RCQc W0teYfoWQylU6TDYS8TvpvzWWGE= Received: from t440s.fritz.box (2001:470:1f0b:19:8a02:e83:1af2:885d [IPv6:2001:470:1f0b:19:8a02:e83:1af2:885d]) by mail.jnbr.me (OpenSMTPD) with ESMTPSA id 2cbaaa6d (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO); Tue, 12 Mar 2019 18:48:02 +0000 (UTC) Date: Tue, 12 Mar 2019 19:47:58 +0100 From: Johannes Brechtmann To: Paul Moore , Stephen Smalley , Eric Paris , selinux@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] selinux: use kernel definition of PF_MAX in scripts Message-ID: <20190312194758.6f411a8b@t440s.fritz.box> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-unknown-linux-musl) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org =46rom 1892b9ff8045bac6fe166802b2d8a8a3111c1e0c Mon Sep 17 00:00:00 2001 From: Johannes Brechtmann Date: Tue, 12 Mar 2019 17:50:12 +0100 Subject: [PATCH] selinux: use kernel definition of PF_MAX in scripts Building selinux scripts of old releases on a current host fails with: In file included from scripts/selinux/genheaders/genheaders.c:19: ./security/selinux/include/classmap.h:245:2: error: #error New address family defined, please update secclass_map. Fix the issue by including linux/socket.h from kernel instead of sys/socket.h from host. Signed-off-by: Johannes Brechtmann --- scripts/selinux/genheaders/genheaders.c | 2 +- scripts/selinux/mdp/mdp.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/selinux/genheaders/genheaders.c b/scripts/selinux/genh= eaders/genheaders.c index 1ceedea847dd..6db7e07fbc4c 100644 --- a/scripts/selinux/genheaders/genheaders.c +++ b/scripts/selinux/genheaders/genheaders.c @@ -9,7 +9,7 @@ #include #include #include -#include +#include =20 struct security_class_mapping { const char *name; diff --git a/scripts/selinux/mdp/mdp.c b/scripts/selinux/mdp/mdp.c index 073fe7537f6c..744d9fc9c0bd 100644 --- a/scripts/selinux/mdp/mdp.c +++ b/scripts/selinux/mdp/mdp.c @@ -32,7 +32,7 @@ #include #include #include -#include +#include =20 static void usage(char *name) { --=20 2.21.0