mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-17 18:02:09 +03:00
doc: chcon: add descriptions for three undocumented options
These were missed in this related change v8.14-104-g44e20cd * src/chcon.c (usage): Mention the two --preserve-root options. * doc/coreutils.texi (chcon invocation): Plus the --dereferece option.
This commit is contained in:
1 parent
51e7c777f8
commit
2aeb77bf0f
2 files changed
+22
-2
No files matched your search
+18
-2
@@ -1384,7 +1384,7 @@ legitimate uses for such a command,
|
||||
that resolves to @file{/}. If you really want to try to remove all
|
||||
the files on your system, you can use the @option{--no-preserve-root}
|
||||
option, but the default behavior, specified by the
|
||||
@option{--preserve-option}, is safer for most purposes.
|
||||
@option{--preserve-root} option, is safer for most purposes.
|
||||
|
||||
The commands @command{chgrp}, @command{chmod} and @command{chown}
|
||||
can also operate destructively on entire hierarchies, so they too
|
||||
@@ -15256,12 +15256,16 @@ The program accepts the following options. Also see @ref{Common options}.
|
||||
|
||||
@table @samp
|
||||
|
||||
@item --dereference
|
||||
@opindex --dereference
|
||||
Do not affect symbolic links but what they refer to; this is the default.
|
||||
|
||||
@item -h
|
||||
@itemx --no-dereference
|
||||
@opindex -h
|
||||
@opindex --no-dereference
|
||||
@cindex no dereference
|
||||
Affect symbolic links instead of any referenced file.
|
||||
Affect the symbolic links themselves instead of any referenced file.
|
||||
|
||||
@item --reference=@var{rfile}
|
||||
@opindex --reference
|
||||
@@ -15274,6 +15278,18 @@ Use @var{rfile}'s security context rather than specifying a @var{context} value.
|
||||
@opindex --recursive
|
||||
Operate on files and directories recursively.
|
||||
|
||||
@item --preserve-root
|
||||
@opindex --preserve-root
|
||||
Refuse to operate recursively on the root directory, @file{/},
|
||||
when used together with the @option{--recursive} option.
|
||||
@xref{Treating / specially}.
|
||||
|
||||
@item --no-preserve-root
|
||||
@opindex --no-preserve-root
|
||||
Do not treat the root directory, @file{/}, specially when operating
|
||||
recursively; this is the default.
|
||||
@xref{Treating / specially}.
|
||||
|
||||
@choptH
|
||||
@xref{Traversing symlinks}.
|
||||
|
||||
|
||||
@@ -369,6 +369,10 @@ With --reference, change the security context of each FILE to that of RFILE.\n\
|
||||
-r, --role=ROLE set role ROLE in the target security context\n\
|
||||
-t, --type=TYPE set type TYPE in the target security context\n\
|
||||
-l, --range=RANGE set range RANGE in the target security context\n\
|
||||
"), stdout);
|
||||
fputs (_("\
|
||||
--no-preserve-root do not treat '/' specially (the default)\n\
|
||||
--preserve-root fail to operate recursively on '/'\n\
|
||||
"), stdout);
|
||||
fputs (_("\
|
||||
--reference=RFILE use RFILE's security context rather than specifying\n\
|
||||
|
||||
Reference in new issue
Block a user