aboutsummaryrefslogtreecommitdiffstats
path: root/man/man7/user_namespaces.7
diff options
context:
space:
mode:
Diffstat (limited to 'man/man7/user_namespaces.7')
-rw-r--r--man/man7/user_namespaces.768
1 files changed, 34 insertions, 34 deletions
diff --git a/man/man7/user_namespaces.7 b/man/man7/user_namespaces.7
index bd6720b0bb..4131d49270 100644
--- a/man/man7/user_namespaces.7
+++ b/man/man7/user_namespaces.7
@@ -1184,35 +1184,35 @@ static int verbose;
static void
usage(char *pname)
{
- fprintf(stderr, "Usage: %s [options] cmd [arg...]\en\en", pname);
+ fprintf(stderr, "Usage: %s [options] cmd [arg...]\[rs]n\[rs]n", pname);
fprintf(stderr, "Create a child process that executes a shell "
- "command in a new user namespace,\en"
- "and possibly also other new namespace(s).\en\en");
- fprintf(stderr, "Options can be:\en\en");
+ "command in a new user namespace,\[rs]n"
+ "and possibly also other new namespace(s).\[rs]n\[rs]n");
+ fprintf(stderr, "Options can be:\[rs]n\[rs]n");
#define fpe(str) fprintf(stderr, " %s", str);
- fpe("\-i New IPC namespace\en");
- fpe("\-m New mount namespace\en");
- fpe("\-n New network namespace\en");
- fpe("\-p New PID namespace\en");
- fpe("\-u New UTS namespace\en");
- fpe("\-U New user namespace\en");
- fpe("\-M uid_map Specify UID map for user namespace\en");
- fpe("\-G gid_map Specify GID map for user namespace\en");
- fpe("\-z Map user\[aq]s UID and GID to 0 in user namespace\en");
- fpe(" (equivalent to: \-M \[aq]0 <uid> 1\[aq] \-G \[aq]0 <gid> 1\[aq])\en");
- fpe("\-v Display verbose messages\en");
- fpe("\en");
- fpe("If \-z, \-M, or \-G is specified, \-U is required.\en");
- fpe("It is not permitted to specify both \-z and either \-M or \-G.\en");
- fpe("\en");
- fpe("Map strings for \-M and \-G consist of records of the form:\en");
- fpe("\en");
- fpe(" ID\-inside\-ns ID\-outside\-ns len\en");
- fpe("\en");
+ fpe("\-i New IPC namespace\[rs]n");
+ fpe("\-m New mount namespace\[rs]n");
+ fpe("\-n New network namespace\[rs]n");
+ fpe("\-p New PID namespace\[rs]n");
+ fpe("\-u New UTS namespace\[rs]n");
+ fpe("\-U New user namespace\[rs]n");
+ fpe("\-M uid_map Specify UID map for user namespace\[rs]n");
+ fpe("\-G gid_map Specify GID map for user namespace\[rs]n");
+ fpe("\-z Map user\[aq]s UID and GID to 0 in user namespace\[rs]n");
+ fpe(" (equivalent to: \-M \[aq]0 <uid> 1\[aq] \-G \[aq]0 <gid> 1\[aq])\[rs]n");
+ fpe("\-v Display verbose messages\[rs]n");
+ fpe("\[rs]n");
+ fpe("If \-z, \-M, or \-G is specified, \-U is required.\[rs]n");
+ fpe("It is not permitted to specify both \-z and either \-M or \-G.\[rs]n");
+ fpe("\[rs]n");
+ fpe("Map strings for \-M and \-G consist of records of the form:\[rs]n");
+ fpe("\[rs]n");
+ fpe(" ID\-inside\-ns ID\-outside\-ns len\[rs]n");
+ fpe("\[rs]n");
fpe("A map string can contain multiple records, separated"
- " by commas;\en");
+ " by commas;\[rs]n");
fpe("the commas are replaced by newlines before writing"
- " to map files.\en");
+ " to map files.\[rs]n");
\&
exit(EXIT_FAILURE);
}
@@ -1240,17 +1240,17 @@ update_map(char *mapping, char *map_file)
map_len = strlen(mapping);
for (size_t j = 0; j < map_len; j++)
if (mapping[j] == \[aq],\[aq])
- mapping[j] = \[aq]\en\[aq];
+ mapping[j] = \[aq]\[rs]n\[aq];
\&
fd = open(map_file, O_RDWR);
if (fd == \-1) {
- fprintf(stderr, "ERROR: open %s: %s\en", map_file,
+ fprintf(stderr, "ERROR: open %s: %s\[rs]n", map_file,
strerror(errno));
exit(EXIT_FAILURE);
}
\&
if (write(fd, mapping, map_len) != map_len) {
- fprintf(stderr, "ERROR: write %s: %s\en", map_file,
+ fprintf(stderr, "ERROR: write %s: %s\[rs]n", map_file,
strerror(errno));
exit(EXIT_FAILURE);
}
@@ -1290,13 +1290,13 @@ proc_setgroups_write(pid_t child_pid, char *str)
user know. */
\&
if (errno != ENOENT)
- fprintf(stderr, "ERROR: open %s: %s\en", setgroups_path,
+ fprintf(stderr, "ERROR: open %s: %s\[rs]n", setgroups_path,
strerror(errno));
return;
}
\&
if (write(fd, str, strlen(str)) == \-1)
- fprintf(stderr, "ERROR: write %s: %s\en", setgroups_path,
+ fprintf(stderr, "ERROR: write %s: %s\[rs]n", setgroups_path,
strerror(errno));
\&
close(fd);
@@ -1318,7 +1318,7 @@ childFunc(void *arg)
when parent closes its descriptor. */
if (read(args\->pipe_fd[0], &ch, 1) != 0) {
fprintf(stderr,
- "Failure in child: read from pipe returned != 0\en");
+ "Failure in child: read from pipe returned != 0\[rs]n");
exit(EXIT_FAILURE);
}
\&
@@ -1326,7 +1326,7 @@ childFunc(void *arg)
\&
/* Execute a shell command. */
\&
- printf("About to exec %s\en", args\->argv[0]);
+ printf("About to exec %s\[rs]n", args\->argv[0]);
execvp(args\->argv[0], args\->argv);
err(EXIT_FAILURE, "execvp");
}
@@ -1406,7 +1406,7 @@ main(int argc, char *argv[])
/* Parent falls through to here. */
\&
if (verbose)
- printf("%s: PID of child created by clone() is %jd\en",
+ printf("%s: PID of child created by clone() is %jd\[rs]n",
argv[0], (intmax_t) child_pid);
\&
/* Update the UID and GID maps in the child. */
@@ -1444,7 +1444,7 @@ main(int argc, char *argv[])
err(EXIT_FAILURE, "waitpid");
\&
if (verbose)
- printf("%s: terminating\en", argv[0]);
+ printf("%s: terminating\[rs]n", argv[0]);
\&
exit(EXIT_SUCCESS);
}