]> git.ipfire.org Git - thirdparty/man-pages.git/blobdiff - man7/unix.7
user_namespaces.7: Minor rewordings of recently added text
[thirdparty/man-pages.git] / man7 / unix.7
index 1bc7804f0a5566d6779d7a54b7c916cb696439ce..b4b60308a0abb341e2c8c9c7dc6160d7d0fcda5c 100644 (file)
@@ -142,7 +142,7 @@ should not be inspected.
 an abstract socket address is distinguished (from a pathname socket)
 by the fact that
 .IR sun_path[0]
-is a null byte (\(aq\\0\(aq).
+is a null byte (\(aq\e0\(aq).
 The socket's address in this namespace is given by the additional
 bytes in
 .IR sun_path
@@ -280,10 +280,16 @@ by specifying
 as the socket family.
 .TP
 .B SO_PASSCRED
-This socket option enables receipt
-of the credentials of the sending process in an
-.BR SCM_CREDENTIALS
-ancillary message.
+Enabling this socket option causes receipt of the credentials of
+the sending process in an
+.B SCM_CREDENTIALS ancillary
+message in each subsequently received message.
+The returned credentials are those specified by the sender using
+.BR SCM_CREDENTIALS ,
+or a default that includes the sender's PID, real user ID, and real group ID,
+if the sender did not specify
+.B SCM_CREDENTIALS
+ancillary data.
 .IP
 When this option is set and the socket is not yet connected,
 a unique name in the abstract namespace will be generated automatically.
@@ -446,6 +452,14 @@ then the ancillary data is truncated (or discarded)
 and the excess file descriptors are automatically closed
 in the receiving process.
 .IP
+If the number of file descriptors received in the ancillary data would
+cause the process to exceed its
+.B RLIMIT_NOFILE
+resource limit (see
+.BR getrlimit (2)),
+the excess file descriptors are automatically closed
+in the receiving process.
+.IP
 The kernel constant
 .BR SCM_MAX_FD
 defines a limit on the number of file descriptors in the array.
@@ -841,7 +855,7 @@ memset(addrp, 0, addrlen + 1);
 if (getsockname(sfd, (struct sockaddr *) addrp, &addrlen)) == \-1)
     /* handle error */ ;
 
-printf("sun_path = %s\\n", ((struct sockaddr_un *) addrp)\->sun_path);
+printf("sun_path = %s\en", ((struct sockaddr_un *) addrp)\->sun_path);
 .EE
 .in
 .PP
@@ -1079,7 +1093,7 @@ main(int argc, char *argv[])
     ret = connect (data_socket, (const struct sockaddr *) &addr,
                    sizeof(struct sockaddr_un));
     if (ret == \-1) {
-        fprintf(stderr, "The server is down.\\n");
+        fprintf(stderr, "The server is down.\en");
         exit(EXIT_FAILURE);
     }
 
@@ -1114,7 +1128,7 @@ main(int argc, char *argv[])
 
     buffer[BUFFER_SIZE \- 1] = 0;
 
-    printf("Result = %s\\n", buffer);
+    printf("Result = %s\en", buffer);
 
     /* Close socket. */