aboutsummaryrefslogtreecommitdiff
path: root/lib/libsys
diff options
context:
space:
mode:
authorMark Johnston <markj@FreeBSD.org>2024-11-03 14:39:32 +0000
committerMark Johnston <markj@FreeBSD.org>2024-11-03 16:46:53 +0000
commitbfd03046d18776ea70785ca1ef36dfc60822de3b (patch)
treeef853bc0aa782c889c3efa4590beeb604e1c69db /lib/libsys
parent4ee6a830d6c191c1c420b6764a4d388f756168d3 (diff)
Diffstat (limited to 'lib/libsys')
-rw-r--r--lib/libsys/chmod.29
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/libsys/chmod.2 b/lib/libsys/chmod.2
index e496b773ddf8..2db182a95fcc 100644
--- a/lib/libsys/chmod.2
+++ b/lib/libsys/chmod.2
@@ -25,7 +25,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.Dd March 30, 2021
+.Dd October 31, 2024
.Dt CHMOD 2
.Os
.Sh NAME
@@ -214,6 +214,13 @@ This makes the system somewhat more secure
by protecting set-user-id (set-group-id) files
from remaining set-user-id (set-group-id) if they are modified,
at the expense of a degree of compatibility.
+.Pp
+While it is normally an error to invoke
+.Fn fchmod
+on a socket, it is possible to do so on
+.Dv AF_LOCAL
+sockets before they are bound to a file name; see
+.Xr unix 4 .
.Sh RETURN VALUES
.Rv -std
.Sh ERRORS