From patchwork Tue Jul 21 11:25:12 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dominick Grift X-Patchwork-Id: 11675505 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 6910013A4 for ; Tue, 21 Jul 2020 11:25:27 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id CA84B2064C for ; Tue, 21 Jul 2020 11:25:26 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=defensec.nl header.i=@defensec.nl header.b="mBqNYxDw" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729663AbgGULZ0 (ORCPT ); Tue, 21 Jul 2020 07:25:26 -0400 Received: from agnus.defensec.nl ([80.100.19.56]:55966 "EHLO agnus.defensec.nl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728108AbgGULZ0 (ORCPT ); Tue, 21 Jul 2020 07:25:26 -0400 Received: from localhost.localdomain (brutus.lan [IPv6:2001:985:d55d::438]) by agnus.defensec.nl (Postfix) with ESMTPSA id 9ACB92A06FB; Tue, 21 Jul 2020 13:25:23 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 agnus.defensec.nl 9ACB92A06FB DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=defensec.nl; s=default; t=1595330724; bh=R7iJGKyfIktmJDn4802TaMNUxl/yKacHWN12Ubnk0+k=; h=From:To:Cc:Subject:Date:From; b=mBqNYxDwGSTKsdVNoX7VUs1FboKwne+uxYZRzsUjz+EHQ4OcusP1Cepgmfgv7Wdrj fyYCdfyOsaVC7zXUZw/+EgBtV1diX/X9PERPlqw78cF2rYedcFyYhTYZwqlfXHnjRx wMxUXhAr0v+GpIHNRn47uGoZY1NK7glVLTL93CN8= From: Dominick Grift To: selinux@vger.kernel.org Cc: Dominick Grift Subject: [PATCH] policycoreutils: fix inaccurate description in sestatus Date: Tue, 21 Jul 2020 13:25:12 +0200 Message-Id: <20200721112512.1906547-1-dominick.grift@defensec.nl> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Sender: selinux-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: selinux@vger.kernel.org strdup(selinux_policy_root()) does not return a path that can be used to derive "Loaded policy name" instead if returns a path that can be used to derive "Policy name from config file". Signed-off-by: Dominick Grift --- policycoreutils/sestatus/sestatus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/policycoreutils/sestatus/sestatus.c b/policycoreutils/sestatus/sestatus.c index b37f0353..8b03b028 100644 --- a/policycoreutils/sestatus/sestatus.c +++ b/policycoreutils/sestatus/sestatus.c @@ -268,7 +268,7 @@ int main(int argc, char **argv) free(root_path); /* Dump all the path information */ - printf_tab("Loaded policy name:"); + printf_tab("Policy name from config file:"); pol_path = strdup(selinux_policy_root()); if (pol_path) { pol_name = basename(pol_path);