selinux.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] docs: fix context_*_range (3) return value documentation
@ 2025-10-03 19:04 Rahul Sandhu
  2025-10-06 18:41 ` Stephen Smalley
  0 siblings, 1 reply; 3+ messages in thread
From: Rahul Sandhu @ 2025-10-03 19:04 UTC (permalink / raw)
  To: selinux; +Cc: Rahul Sandhu

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


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-10-07 15:42 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-03 19:04 [PATCH] docs: fix context_*_range (3) return value documentation Rahul Sandhu
2025-10-06 18:41 ` Stephen Smalley
2025-10-07 15:42   ` Stephen Smalley

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).