From: Rahul Sandhu <nvraxn@gmail.com>
To: selinux@vger.kernel.org
Cc: Rahul Sandhu <nvraxn@gmail.com>
Subject: [PATCH] docs: fix context_*_range (3) return value documentation
Date: Fri, 3 Oct 2025 20:04:34 +0100 [thread overview]
Message-ID: <20251003190434.432154-1-nvraxn@gmail.com> (raw)
The context_*_range () family of functions return less than zero on
failure[1][2].
[1] https://github.com/SELinuxProject/selinux/blob/main/libselinux/src/context.c#L184
[2] https://github.com/SELinuxProject/selinux/blob/main/libselinux/src/context.c#L190
Signed-off-by: Rahul Sandhu <nvraxn@gmail.com>
---
libselinux/man/man3/context_new.3 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libselinux/man/man3/context_new.3 b/libselinux/man/man3/context_new.3
index 3dabac3d..04522366 100644
--- a/libselinux/man/man3/context_new.3
+++ b/libselinux/man/man3/context_new.3
@@ -71,7 +71,7 @@ set a context component.
.SH "RETURN VALUE"
On failure
.BR context_*_set ()
-functions return non-zero and 0 on success.
+functions return non-zero on failure and 0 on success.
The other functions return NULL on failure and non-NULL on success.
--
2.50.1
next reply other threads:[~2025-10-03 19:04 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-03 19:04 Rahul Sandhu [this message]
2025-10-06 18:41 ` [PATCH] docs: fix context_*_range (3) return value documentation Stephen Smalley
2025-10-07 15:42 ` Stephen Smalley
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=20251003190434.432154-1-nvraxn@gmail.com \
--to=nvraxn@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).