Received: by 10.223.185.116 with SMTP id b49csp5486115wrg; Tue, 27 Feb 2018 14:19:49 -0800 (PST) X-Google-Smtp-Source: AH8x225eOJa9nkK6zhu9XeCYQjkZHd5N/ior1fQgXezWcGwhXPCW06MWv0RY2xWzJ7hVMs4SwNpx X-Received: by 2002:a17:902:8541:: with SMTP id d1-v6mr15572812plo.54.1519769989410; Tue, 27 Feb 2018 14:19:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519769989; cv=none; d=google.com; s=arc-20160816; b=MuYpOFPBLCXVp/KmK6l24iIPeSpW5ufeUKkinpWyMF4S/ZodtcBrP7nnLsHrhlLP4S CU+UeZ3T5YGzJeE+iGDGoFBBfPDJ9T7iGm4R1Z2KAKZVQqtcmiEvR5LnQ3hIALbSY72C +0+pF30nMYlUIKXQONeibUq7nLsm/xt0psQ5E8dfDqOo8BE8SeP/1HSTXf91//YMDrGH akChKOcTyDtJOeVJLJkihaprfcd4/h5EJ3dIA8SvHRrOORsoL4ifbKTGBOyCfbXcK2zB BAgjsYIeSFTChiLxYcVVyQ5QeynTj2PiudV2tYX2TOUah3YQCJkKJG0mR3sPfd75gMkl aRkA== 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 :references:in-reply-to:message-id:date:subject:to:from :dkim-signature:arc-authentication-results; bh=baKVqOFZ1dki1frpdnbrzrq2jSAytFcFNaCIYs8f97w=; b=gkDzg9bjSI0p2RjW9H4Uj8KNbB9RDWmC6kuWp/GbyCCOEDzZ0SOsFOhglXs5kuT+XD gsO44VPTW21GDgntqraWJSid2efFyQBRtpeMwFBqMOfalRRVOL77anN5lxrcwnIKkx1F pZ2l59BnQQXyR3aG8/7DMW0NDcmYHBa/ii8lIi05efr3Xq6UR5SjNTKbh7k5NtgduywI 6+aUYHEHq9yJRo41O0zLdOwaYG8pvzLV29dPAARqNgtaFqgEjR+51GmvnxilyreWW2XD zEcEVXOzY90j6uJeEIULbDpgYPtNKzVLKosjYZThHHQqzbxHcKTFhN8v/Tfcg5KkRPZh 9tDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@vanguardiasur-com-ar.20150623.gappssmtp.com header.s=20150623 header.b=HJI/nYXm; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e93-v6si126134plk.159.2018.02.27.14.19.35; Tue, 27 Feb 2018 14:19:49 -0800 (PST) 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=@vanguardiasur-com-ar.20150623.gappssmtp.com header.s=20150623 header.b=HJI/nYXm; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751994AbeB0WRc (ORCPT + 99 others); Tue, 27 Feb 2018 17:17:32 -0500 Received: from mail-qt0-f193.google.com ([209.85.216.193]:37945 "EHLO mail-qt0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751801AbeB0WRa (ORCPT ); Tue, 27 Feb 2018 17:17:30 -0500 Received: by mail-qt0-f193.google.com with SMTP id n12so559593qtl.5 for ; Tue, 27 Feb 2018 14:17:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vanguardiasur-com-ar.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=baKVqOFZ1dki1frpdnbrzrq2jSAytFcFNaCIYs8f97w=; b=HJI/nYXmMguYEeF+cXUdOvbnIJq+7Hk/JRlyHutwcrzhOX8YPNzVhTwwfAA9mJFR9L K32Tim/79vuCrl3gKDBCDka04jvH5H71G1H3HvB5CVdffviOl01xQhL7C9/AIqdMuFi7 YRNnVrlyY1CAUjnjw5GReS79dPIiUvVdU8qQOUHNCG75qVEC6SWd5ThQuBrTRVQ4S1HJ tB9s4hs/WpixLAAHkgdgI0QcNi7b+E088peun8QSOZ1pw5OuTTHD6i6Ooc9z7j3GLWcK SXQfA+gpsI7NeosKErWXab6TtUeVarvFuBvqiLbvVoxzeY+HH0VtAoGPXoI6B1g0Gvqj 9EoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=baKVqOFZ1dki1frpdnbrzrq2jSAytFcFNaCIYs8f97w=; b=DOk3yGxyMSKgNYKmNJF9rjD5Iub13D+j5LJMLDSq1ts+FmQdgXgZKj5lrEA50QZuNP bMikOO5OEAMcs+dvnNf2G2+lMLCtsZqxbDb7lyqScbSLJe0WEox6kgyQhi6uvJSBi5+U 1RoXBiAQfyGTSqfDow9VQh608HI194kf4kYVa09g+6XVVijNVrdlJ5irCspfaMDYSVIP 7yrgtTAEzv2BMxn385T+YDyKZfvxLjemZTqZ0zKPSVJfX+Onnna51QaXFJyFMoX0Vur/ rk6ocQS8wkd+ctTa9PA9EA5BrsA+vJstyDpan2iSbmRRRB4e9wTx4OyRyzQvx4BeqqOd KpTg== X-Gm-Message-State: APf1xPA3kDFYdO+A3utDV9xQy3+9Ac9twOXCk4MmCAMaLcZFJ1EmN8Fk 0xoxUCap3GFP0sK3RAPqC4Wv0ODs X-Received: by 10.200.37.197 with SMTP id f5mr26021621qtf.175.1519769849401; Tue, 27 Feb 2018 14:17:29 -0800 (PST) Received: from hlaptop.cpe.express.com.ar ([200.3.222.253]) by smtp.gmail.com with ESMTPSA id j64sm137461qkc.22.2018.02.27.14.17.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 27 Feb 2018 14:17:28 -0800 (PST) From: =?UTF-8?q?Hern=C3=A1n=20Gonzalez?= To: zohar@linux.vnet.ibm.com, jmorris@namei.org, serge@hallyn.com, linux-integrity@vger.kernel.org, linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org, hernan@vanguardiasur.com.ar Subject: [PATCH 2/2] security: evm: Constify *integrity_status_msg[] Date: Tue, 27 Feb 2018 19:17:00 -0300 Message-Id: <1519769820-20365-2-git-send-email-hernan@vanguardiasur.com.ar> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1519769820-20365-1-git-send-email-hernan@vanguardiasur.com.ar> References: <1519769820-20365-1-git-send-email-hernan@vanguardiasur.com.ar> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Note: This is compile only tested. There is no gain from doing this except for some self-documenting. Signed-off-by: HernĂ¡n Gonzalez --- security/integrity/evm/evm_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/security/integrity/evm/evm_main.c b/security/integrity/evm/evm_main.c index 826926d..7a968fa 100644 --- a/security/integrity/evm/evm_main.c +++ b/security/integrity/evm/evm_main.c @@ -30,7 +30,7 @@ int evm_initialized; -static char *integrity_status_msg[] = { +static const char * const integrity_status_msg[] = { "pass", "pass_immutable", "fail", "no_label", "no_xattrs", "unknown" }; int evm_hmac_attrs; -- 2.7.4