From nobody Fri Apr 26 10:54:53 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=fail(p=none dis=none) header.from=citrix.com ARC-Seal: i=1; a=rsa-sha256; t=1593190992; cv=none; d=zohomail.com; s=zohoarc; b=EKcrnuuHMgdbPLpl5xhVAcpmrBG4weHD9ulhl5IsmouKiejlFTK2KYQ+3y3yVKInZP+P2r2HyWmQf+w4BZOLqAl8fWkqfK29bQqr/iVB6g259cXWTxGU+8CkKqfEvoSXPBSxqJHdCoRExUILx/Of5eGTmxsi8LtnewC5yIY7s1k= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1593190992; h=Content-Type:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=C228mQGqznw8agCuSTqPOWd7wiZlSkux2Zbo/1e4jUQ=; b=h3o7bvdHTzFK0riU2vWOb2rxTkjPJvNmrTDHaWwx9nusn1nHXhTfRlFcYctPLB8c52j4M8FhKcjCSH/iH1EIPBD5DXAqeJJSxfHHi/CQcrr4lugaXGw09lwqhHnhBcMfR0r8H27dcEQesWxFv4HAbiORhhZFnFNlRwPu99CMJL0= ARC-Authentication-Results: i=1; mx.zohomail.com; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 15931909924001002.1823964899042; Fri, 26 Jun 2020 10:03:12 -0700 (PDT) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1jorkb-0006ep-9s; Fri, 26 Jun 2020 17:02:53 +0000 Received: from all-amaz-eas1.inumbo.com ([34.197.232.57] helo=us1-amaz-eas2.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1jorka-0006ei-Bn for xen-devel@lists.xenproject.org; Fri, 26 Jun 2020 17:02:52 +0000 Received: from esa3.hc3370-68.iphmx.com (unknown [216.71.145.155]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTPS id de75f3a4-b7ce-11ea-82ea-12813bfff9fa; Fri, 26 Jun 2020 17:02:51 +0000 (UTC) X-Inumbo-ID: de75f3a4-b7ce-11ea-82ea-12813bfff9fa Authentication-Results: esa3.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none IronPort-SDR: xvmKTUa21lqY9QLcL0hMCRDF2atr988/LpDLTxyQP2S0KJBFFFSQHLGCCcCWwoQUdlUXWEaEdW MveqOi/X307eP8TbVINFEE8SnYySjvUokFoxmeo5OpQ/v1jj3xllYDlYvCXzcK7rx5Viq6JRQR ce8BZcedU6p+6E0kLA10/bDCb2Jb5ah9tfGu0iDDp1Saljt4CYGzYOWvBICQcP91z85/85Lchz dNdyroIO27YHygVNf+/JmBcW7vOwUK949Y/zyp3KZ92B8RfyOQcjEJI+GMyetE2afSz8SPjgCL i84= X-SBRS: 2.7 X-MesageID: 21041803 X-Ironport-Server: esa3.hc3370-68.iphmx.com X-Remote-IP: 162.221.158.21 X-Policy: $RELAYED X-IronPort-AV: E=Sophos;i="5.75,284,1589256000"; d="scan'208";a="21041803" From: Andrew Cooper To: Xen-devel Subject: [PATCH] xsm: Drop trailing whitespace from build scripts Date: Fri, 26 Jun 2020 18:02:21 +0100 Message-ID: <20200626170221.28534-1-andrew.cooper3@citrix.com> X-Mailer: git-send-email 2.11.0 MIME-Version: 1.0 X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Andrew Cooper , Daniel De Graaf Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Signed-off-by: Andrew Cooper Acked-by: Jan Beulich --- CC: Daniel De Graaf --- xen/xsm/flask/policy/mkaccess_vector.sh | 26 +++++++++++++------------- xen/xsm/flask/policy/mkflask.sh | 32 ++++++++++++++++-------------= --- 2 files changed, 29 insertions(+), 29 deletions(-) diff --git a/xen/xsm/flask/policy/mkaccess_vector.sh b/xen/xsm/flask/policy= /mkaccess_vector.sh index 7fa4aaf638..942ede4713 100755 --- a/xen/xsm/flask/policy/mkaccess_vector.sh +++ b/xen/xsm/flask/policy/mkaccess_vector.sh @@ -22,7 +22,7 @@ BEGIN { printf("/* This file is automatically generated. Do not edit. */\n") > = avpermfile; ; } -/^[ \t]*#/ {=20 +/^[ \t]*#/ { next; } $1 =3D=3D "class" { @@ -30,7 +30,7 @@ $1 =3D=3D "class" { nextstate !=3D "CLASS_OR_CLASS-OPENBRACKET") { printf("Parse error: Unexpected class definition on line %d\n", NR); - next;=09 + next; } =20 tclass =3D $2; @@ -39,7 +39,7 @@ $1 =3D=3D "class" { { printf("Duplicate access vector definition for %s on line %d\n", tclas= s, NR); next; - }=20 + } av_defined[tclass] =3D 1; =20 permission =3D 0; @@ -47,7 +47,7 @@ $1 =3D=3D "class" { nextstate =3D "INHERITS_OR_CLASS-OPENBRACKET"; next; } -$1 =3D=3D "{" {=20 +$1 =3D=3D "{" { if (nextstate !=3D "INHERITS_OR_CLASS-OPENBRACKET" && nextstate !=3D "CLASS_OR_CLASS-OPENBRACKET" && nextstate !=3D "COMMON-OPENBRACKET") @@ -69,7 +69,7 @@ $1 =3D=3D "{" { if (nextstate !=3D "COMMON-CLOSEBRACKET" && nextstate !=3D "CLASS-CLOSEBRACKET") { - printf("Parse error: Unexpected symbol %s on line %d\n", $1, NR); =09 + printf("Parse error: Unexpected symbol %s on line %d\n", $1, NR); next; } =20 @@ -83,7 +83,7 @@ $1 =3D=3D "{" { =20 common_perms[common_name,$1] =3D permission; =20 - printf("#define COMMON_%s__%s", toupper(common_name), toupper($1)) > o= utfile;=20 + printf("#define COMMON_%s__%s", toupper(common_name), toupper($1)) > o= utfile; =20 printf(" S_(\"%s\")\n", $1) > cpermfile; } @@ -96,23 +96,23 @@ $1 =3D=3D "{" { } =20 av_perms[tclass,$1] =3D permission; - =09 - printf("#define %s__%s", toupper(tclass), toupper($1)) > outfile;=20 =20 - printf(" S_(SECCLASS_%s, %s__%s, \"%s\")\n", toupper(tclass), touppe= r(tclass), toupper($1), $1) > avpermfile;=20 + printf("#define %s__%s", toupper(tclass), toupper($1)) > outfile; + + printf(" S_(SECCLASS_%s, %s__%s, \"%s\")\n", toupper(tclass), touppe= r(tclass), toupper($1), $1) > avpermfile; } =20 spaces =3D 40 - (length($1) + length(tclass)); if (spaces < 1) spaces =3D 1; =20 - for (i =3D 0; i < spaces; i++)=20 - printf(" ") > outfile;=20 + for (i =3D 0; i < spaces; i++) + printf(" ") > outfile; printf("(1UL << %u)\n", permission) > outfile; permission =3D permission + 1; } $1 =3D=3D "}" { - if (nextstate !=3D "CLASS-CLOSEBRACKET" &&=20 + if (nextstate !=3D "CLASS-CLOSEBRACKET" && nextstate !=3D "COMMON-CLOSEBRACKET") { printf("Parse error: Unexpected } on line %d\n", NR); @@ -122,7 +122,7 @@ $1 =3D=3D "}" { if (nextstate =3D=3D "COMMON-CLOSEBRACKET") { common_base[common_name] =3D permission; - printf("TE_(common_%s_perm_to_string)\n\n", common_name) > cpermfile;=20 + printf("TE_(common_%s_perm_to_string)\n\n", common_name) > cpermfile; } =20 printf("\n") > outfile; diff --git a/xen/xsm/flask/policy/mkflask.sh b/xen/xsm/flask/policy/mkflask= .sh index 989a323b80..591ce832a1 100755 --- a/xen/xsm/flask/policy/mkflask.sh +++ b/xen/xsm/flask/policy/mkflask.sh @@ -37,51 +37,51 @@ BEGIN { printf("static char *initial_sid_to_string[] =3D\n{\n") > debugfile2; printf(" \"null\",\n") > debugfile2; } -/^[ \t]*#/ {=20 +/^[ \t]*#/ { next; } -$1 =3D=3D "class" {=20 +$1 =3D=3D "class" { if (nextstate !=3D "CLASS") { printf("Parse error: Unexpected class definition on line %d\n", NR); - next;=09 + next; } =20 if ($2 in class_found) { printf("Duplicate class definition for %s on line %d.\n", $2, NR); next; - }=09 + } class_found[$2] =3D 1; =20 class_value++; =20 printf("#define SECCLASS_%s", toupper($2)) > outfile; - for (i =3D 0; i < 40 - length($2); i++)=20 - printf(" ") > outfile;=20 - printf("%d\n", class_value) > outfile;=20 + for (i =3D 0; i < 40 - length($2); i++) + printf(" ") > outfile; + printf("%d\n", class_value) > outfile; =20 printf(" S_(\"%s\")\n", $2) > debugfile; } -$1 =3D=3D "sid" {=20 +$1 =3D=3D "sid" { if (nextstate =3D=3D "CLASS") { nextstate =3D "SID"; - printf("\n/*\n * Security identifier indices for initial entities\n= */\n") > outfile; =20 + printf("\n/*\n * Security identifier indices for initial entities\n= */\n") > outfile; } =20 if ($2 in sid_found) { printf("Duplicate SID definition for %s on line %d.\n", $2, NR); next; - }=09 + } sid_found[$2] =3D 1; sid_value++; =20 printf("#define SECINITSID_%s", toupper($2)) > outfile; - for (i =3D 0; i < 37 - length($2); i++)=20 - printf(" ") > outfile;=20 - printf("%d\n", sid_value) > outfile;=20 + for (i =3D 0; i < 37 - length($2); i++) + printf(" ") > outfile; + printf("%d\n", sid_value) > outfile; printf(" \"%s\",\n", $2) > debugfile2; } END { @@ -89,9 +89,9 @@ END { printf("Parse error: Unexpected end of file\n"); =20 printf("\n#define SECINITSID_NUM") > outfile; - for (i =3D 0; i < 34; i++)=20 - printf(" ") > outfile;=20 - printf("%d\n", sid_value) > outfile;=20 + for (i =3D 0; i < 34; i++) + printf(" ") > outfile; + printf("%d\n", sid_value) > outfile; printf("\n#endif /* __XEN__ || __XEN_TOOLS__ */\n") > outfile; printf("\n#endif\n") > outfile; printf("};\n\n") > debugfile2; --=20 2.11.0