[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: RFC: changing the "+" in ls -l output to be "." or "+"
From: |
Pádraig Brady |
Subject: |
Re: RFC: changing the "+" in ls -l output to be "." or "+" |
Date: |
Tue, 7 Apr 2009 16:14:46 +0100 |
User-agent: |
Thunderbird 2.0.0.6 (X11/20071008) |
Andreas Schwab wrote:
> Pádraig Brady <address@hidden> writes:
>
>> @@ -8045,6 +8055,15 @@ ownership of installed files or directories to
>> @var{owner}. The default
>> is @code{root}. @var{owner} may be either a user name or a numeric user
>> ID.
>>
>> address@hidden --preserve-context
>
> s/@itemx/@item/
Thanks Andreas and Jim.
Updated patch attached.
cheers,
Pádraig.
>From ae757472419a8c3a08e871114d941d7feed7945f Mon Sep 17 00:00:00 2001
From: =?utf-8?q?P=C3=A1draig=20Brady?= <address@hidden>
Date: Mon, 6 Apr 2009 19:21:51 +0100
Subject: [PATCH] doc: add missing documentation for some SELinux options
* doc/coreutils.texi (ls invocation): Describe the --context (-Z) option
(install invocation): Describe the --preserve-context and -Z options
(id invocation): Describe the --context (-Z) option
(mkdir invocation): ditto
(mknod invocation): ditto
(mkfifo invocation): ditto
* TODO: remove the todo item
---
TODO | 1 -
doc/coreutils.texi | 64 ++++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 64 insertions(+), 1 deletions(-)
diff --git a/TODO b/TODO
index 7288285..9128ddf 100644
--- a/TODO
+++ b/TODO
@@ -15,7 +15,6 @@ document the following in coreutils.texi:
mktemp
[
pinky
-Also document the SELinux changes.
Suggestion from Paul Eggert:
More generally, there's not that much use for imaxtostr nowadays,
diff --git a/doc/coreutils.texi b/doc/coreutils.texi
index 70effa1..0e547a1 100644
--- a/doc/coreutils.texi
+++ b/doc/coreutils.texi
@@ -6540,6 +6540,16 @@ it also affects the HP-UX @command{ls} program.
@optSi
address@hidden -Z
address@hidden --context
address@hidden -Z
address@hidden --context
address@hidden SELinux
address@hidden security context
+Display the SELinux security context or @samp{?} if none is found. When used
+with the @option{-l} option, print the security context to the left of the
+size column.
+
@end table
@@ -8045,6 +8055,15 @@ ownership of installed files or directories to
@var{owner}. The default
is @code{root}. @var{owner} may be either a user name or a numeric user
ID.
address@hidden --preserve-context
address@hidden --preserve-context
address@hidden SElinux
address@hidden security context
+Preserve the SELinux security context of files and directories.
+Failure to preserve the context in all of the files or directories
+will result in an exit status of 1. If SELinux is disabled then
+a warning is printed and the option is ignored.
+
@item -p
@itemx --preserve-timestamps
@opindex -p
@@ -8083,6 +8102,16 @@ Program used to strip binaries.
@opindex --verbose
Print the name of each file before copying it.
address@hidden -Z @var{context}
address@hidden address@hidden
address@hidden -Z
address@hidden --context
address@hidden SELinux
address@hidden security context
+Set the default SELinux security context to be used for any
+created files and directories. If SELinux is disabled then
+print a warning and ignore the option.
+
@end table
@exitstatus
@@ -8917,6 +8946,15 @@ newly-created parent directories are inherited.
@opindex --verbose
Print a message for each created directory. This is most useful with
@option{--parents}.
+
address@hidden -Z @var{context}
address@hidden address@hidden
address@hidden -Z
address@hidden --context
address@hidden SELinux
address@hidden security context
+Set the default SELinux security context to be used for created directories.
+
@end table
@exitstatus
@@ -8956,6 +8994,14 @@ Set the mode of created FIFOs to @var{mode}, which is
symbolic as in
for the point of departure. @var{mode} should specify only file
permission bits. @xref{File permissions}.
address@hidden -Z @var{context}
address@hidden address@hidden
address@hidden -Z
address@hidden --context
address@hidden SELinux
address@hidden security context
+Set the default SELinux security context to be used for created FIFOs.
+
@end table
@exitstatus
@@ -9031,6 +9077,14 @@ Set the mode of created files to @var{mode}, which is
symbolic as in
@var{mode} should specify only file permission bits.
@xref{File permissions}.
address@hidden -Z @var{context}
address@hidden address@hidden
address@hidden -Z
address@hidden --context
address@hidden SELinux
address@hidden security context
+Set the default SELinux security context to be used for created files.
+
@end table
@exitstatus
@@ -12737,6 +12791,16 @@ Print the real, instead of effective, user or group
ID. Requires
@opindex --user
Print only the user ID.
address@hidden -Z
address@hidden --context
address@hidden -Z
address@hidden --context
address@hidden SELinux
address@hidden security context
+Print only the security context of the current user.
+If SELinux is disabled then print a warning and
+set the exit status to 1.
+
@end table
@exitstatus
--
1.5.3.6
- Re: RFC: changing the "+" in ls -l output to be "." or "+", Pádraig Brady, 2009/04/02
- Re: RFC: changing the "+" in ls -l output to be "." or "+", Jim Meyering, 2009/04/06
- Re: RFC: changing the "+" in ls -l output to be "." or "+", Pádraig Brady, 2009/04/06
- Re: RFC: changing the "+" in ls -l output to be "." or "+", Jim Meyering, 2009/04/06
- Re: RFC: changing the "+" in ls -l output to be "." or "+", Pádraig Brady, 2009/04/07
- [PATCH] deprecating install --preserve_context as per the FIXME, Pádraig Brady, 2009/04/07
- Re: RFC: changing the "+" in ls -l output to be "." or "+", Andreas Schwab, 2009/04/07
- Re: RFC: changing the "+" in ls -l output to be "." or "+",
Pádraig Brady <=
- Re: RFC: changing the "+" in ls -l output to be "." or "+", Jim Meyering, 2009/04/07
- Re: RFC: changing the "+" in ls -l output to be "." or "+", Jim Meyering, 2009/04/07
- Re: RFC: changing the "+" in ls -l output to be "." or "+", Pádraig Brady, 2009/04/07
- Re: RFC: changing the "+" in ls -l output to be "." or "+", Jim Meyering, 2009/04/07
- Re: RFC: changing the "+" in ls -l output to be "." or "+", Pádraig Brady, 2009/04/07
- Re: RFC: changing the "+" in ls -l output to be "." or "+", Jim Meyering, 2009/04/07