aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Kerrisk <mtk.manpages@gmail.com>2016-06-26 15:06:07 +0200
committerMichael Kerrisk <mtk.manpages@gmail.com>2016-09-12 14:04:45 +0100
commit40ff9e27dc653d3a55d797101847db5f1c3deaeb (patch)
tree364fa5aae32419561364b72dd78a31642757b6be
parent0d86f490759b16d51f4eb8c474fa7627abfbff45 (diff)
downloadman-pages-40ff9e27dc653d3a55d797101847db5f1c3deaeb.tar.gz
fcntl.2: Note an important detail of F_SETOWN permission rules for signals
F_SETOWN records the caller's credentials at the time of the fcntl() call, and it is these saved credentials that are used for subsequent permission checks. Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
-rw-r--r--man2/fcntl.27
1 files changed, 7 insertions, 0 deletions
diff --git a/man2/fcntl.2 b/man2/fcntl.2
index cac8a427cc..6074d601ec 100644
--- a/man2/fcntl.2
+++ b/man2/fcntl.2
@@ -733,6 +733,13 @@ where the sending process is the one that employs
(but see BUGS below).
If this permission check fails, then the signal is
silently discarded.
+.IR Note :
+The
+.BR F_SETOWN
+operation records the caller's credentials at the time of the
+.BR fcntl ()
+call,
+and it is these saved credentials that are used for the permission checks.
If the file descriptor
.I fd