aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/sys/send.2
diff options
context:
space:
mode:
authorJamie Gritton <jamie@FreeBSD.org>2009-02-05 14:06:09 +0000
committerJamie Gritton <jamie@FreeBSD.org>2009-02-05 14:06:09 +0000
commitb89e82dd87dec9034c8b7f1a01524dceea11ff49 (patch)
tree71fe0b10296684e7094a545ca78ed6f72789d82d /lib/libc/sys/send.2
parent9719301922b4612e967cf109913d18c2fe0e1563 (diff)
downloadsrc-b89e82dd87dec9034c8b7f1a01524dceea11ff49.tar.gz
src-b89e82dd87dec9034c8b7f1a01524dceea11ff49.zip
Standardize the various prison_foo_ip[46] functions and prison_if to
return zero on success and an error code otherwise. The possible errors are EADDRNOTAVAIL if an address being checked for doesn't match the prison, and EAFNOSUPPORT if the prison doesn't have any addresses in that address family. For most callers of these functions, use the returned error code instead of e.g. a hard-coded EADDRNOTAVAIL or EINVAL. Always include a jailed() check in these functions, where a non-jailed cred always returns success (and makes no changes). Remove the explicit jailed() checks that preceded many of the function calls. Approved by: bz (mentor)
Notes
Notes: svn path=/head/; revision=188144
Diffstat (limited to 'lib/libc/sys/send.2')
-rw-r--r--lib/libc/sys/send.24
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/sys/send.2 b/lib/libc/sys/send.2
index 6a61426bd7a0..8fa2c64354d0 100644
--- a/lib/libc/sys/send.2
+++ b/lib/libc/sys/send.2
@@ -28,7 +28,7 @@
.\" From: @(#)send.2 8.2 (Berkeley) 2/21/94
.\" $FreeBSD$
.\"
-.Dd September 13, 2006
+.Dd February 5, 2009
.Dt SEND 2
.Os
.Sh NAME
@@ -190,7 +190,7 @@ receiver is not listening on the remote port.
The remote host was down.
.It Bq Er ENETDOWN
The remote network was down.
-.It Bq Er EPERM
+.It Bq Er EADDRNOTAVAIL
The process using a
.Dv SOCK_RAW
socket was jailed and the source