From 3146a70d7407443ba29da4cab2f056460d0fec4f Mon Sep 17 00:00:00 2001 From: Don Lewis Date: Tue, 19 Jan 1999 09:33:14 +0000 Subject: [PATCH] Document the errno return if the restrictions on the fcntl(F_SETOWN, ...) argument implemented by the security patch in PR kern/7899 are violated. PR: kern/7899 --- lib/libc/sys/fcntl.2 | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/libc/sys/fcntl.2 b/lib/libc/sys/fcntl.2 index fdf1941d3cb..51f0ef51900 100644 --- a/lib/libc/sys/fcntl.2 +++ b/lib/libc/sys/fcntl.2 @@ -483,6 +483,13 @@ or .Dv F_SETLKW , and satisfying the lock or unlock request would result in the number of locked regions in the system exceeding a system-imposed limit. +.It Bq Er EPERM +.Fa Cmd +is +.Dv F_SETOWN +and +the process ID or process group given as an argument is in a +different session than the caller. .It Bq Er ESRCH .Fa Cmd is