All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Christian Göttsche" <cgoettsche@seltendoof.de>
To: selinux@vger.kernel.org
Cc: "Christian Göttsche" <cgzones@googlemail.com>
Subject: [PATCH 2/2] checkpolicy: update error diagnostic
Date: Sat, 30 Mar 2024 14:35:02 +0100	[thread overview]
Message-ID: <20240330133502.72795-2-cgoettsche@seltendoof.de> (raw)
In-Reply-To: <20240330133502.72795-1-cgoettsche@seltendoof.de>

From: Christian Göttsche <cgzones@googlemail.com>

I am not sure what "hoge" supposed to mean; use a message similar to
other diagnostics.

Signed-off-by: Christian Göttsche <cgzones@googlemail.com>
---
 checkpolicy/policy_define.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/checkpolicy/policy_define.c b/checkpolicy/policy_define.c
index 92d1e5f2..4fc6c417 100644
--- a/checkpolicy/policy_define.c
+++ b/checkpolicy/policy_define.c
@@ -1426,7 +1426,7 @@ static int define_typebounds_helper(const char *bounds_id, const char *type_id)
 
 	bounds = hashtab_search(policydbp->p_types.table, bounds_id);
 	if (!bounds || bounds->flavor == TYPE_ATTRIB) {
-		yyerror2("hoge unknown type %s", bounds_id);
+		yyerror2("type %s is not declared", bounds_id);
 		return -1;
 	}
 
-- 
2.43.0


  reply	other threads:[~2024-03-30 13:35 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-30 13:35 [PATCH 1/2] checkpolicy: free identifiers on invalid typebounds Christian Göttsche
2024-03-30 13:35 ` Christian Göttsche [this message]
2024-04-01 16:52 ` James Carter
2024-04-04 16:21   ` James Carter

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240330133502.72795-2-cgoettsche@seltendoof.de \
    --to=cgoettsche@seltendoof.de \
    --cc=cgzones@googlemail.com \
    --cc=selinux@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.