From: "Christian Göttsche" <cgzones@googlemail.com>
To: selinux@vger.kernel.org
Subject: [PATCH 3/3] libselinux: state setexecfilecon(3) sets errno on failure
Date: Mon, 11 Dec 2023 16:00:31 +0100 [thread overview]
Message-ID: <20231211150031.127850-3-cgzones@googlemail.com> (raw)
In-Reply-To: <20231211150031.127850-1-cgzones@googlemail.com>
The other functions (getexeccon(3) and setexeccon(3)) from the man page
also set errno on failure similar to the getcon(3) function family.
Signed-off-by: Christian Göttsche <cgzones@googlemail.com>
---
libselinux/man/man3/getexeccon.3 | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/libselinux/man/man3/getexeccon.3 b/libselinux/man/man3/getexeccon.3
index 9cc24e8c..edaa6669 100644
--- a/libselinux/man/man3/getexeccon.3
+++ b/libselinux/man/man3/getexeccon.3
@@ -89,7 +89,9 @@ then executes the specified filename with the provided argument and
environment arrays.
.
.SH "RETURN VALUE"
-On error \-1 is returned.
+On failure, \-1 is returned and
+.I errno
+is set appropriately.
On success
.BR getexeccon (),
--
2.43.0
next prev parent reply other threads:[~2023-12-11 15:00 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-12-11 15:00 [PATCH 1/3] libselinux: update const qualifier of parameters in man pages Christian Göttsche
2023-12-11 15:00 ` [PATCH 2/3] libselinux: always set errno on context translation failure Christian Göttsche
2023-12-11 15:00 ` Christian Göttsche [this message]
2023-12-12 14:24 ` [PATCH 1/3] libselinux: update const qualifier of parameters in man pages James Carter
2023-12-12 16:45 ` 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=20231211150031.127850-3-cgzones@googlemail.com \
--to=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.