[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 3/6] mkdir: correct document about security context option
From: |
Chengwei Yang |
Subject: |
[PATCH 3/6] mkdir: correct document about security context option |
Date: |
Thu, 16 Jan 2014 12:44:29 +0800 |
---
doc/coreutils.texi | 3 ++-
src/mkdir.c | 3 ++-
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/doc/coreutils.texi b/doc/coreutils.texi
index 14d05af..e9cd55a 100644
--- a/doc/coreutils.texi
+++ b/doc/coreutils.texi
@@ -8466,7 +8466,8 @@ to the system default type for destination files,
similarly to the
@command{restorecon} command.
The long form of this option with a specific context specified,
will set the context for newly created files only.
-With a specified context, if SELinux is disabled, a warning is issued.
+With a specified context, if both SELinux and SMACK are disabled, a warning is
+issued.
@end macro
@optContext
This option is mutually exclusive with the @option{--preserve=context}
diff --git a/src/mkdir.c b/src/mkdir.c
index c904d4f..a6f6c24 100644
--- a/src/mkdir.c
+++ b/src/mkdir.c
@@ -67,7 +67,8 @@ Create the DIRECTORY(ies), if they do not already exist.\n\
-p, --parents no error if existing, make parent directories as needed\n\
-v, --verbose print a message for each created directory\n\
-Z, --context[=CTX] set the SELinux security context of each created\n\
- directory to default type or to CTX if specified\n\
+ directory to default type or set the SELinux or\n\
+ SMACK security context to CTX if specified\n\
"), stdout);
fputs (HELP_OPTION_DESCRIPTION, stdout);
fputs (VERSION_OPTION_DESCRIPTION, stdout);
--
1.7.9.5
- [PATCH 0/6] Doc: correct for commands which support SELinux and SMACK, Chengwei Yang, 2014/01/15
- [PATCH 2/6] ls: correct document about its security context label, Chengwei Yang, 2014/01/15
- [PATCH 3/6] mkdir: correct document about security context option,
Chengwei Yang <=
- [PATCH 4/6] mkfifo: correct document about security context option, Chengwei Yang, 2014/01/15
- [PATCH 5/6] mknod: correct document about security context option, Chengwei Yang, 2014/01/15
- [PATCH 6/6] doc: fix alignment, Chengwei Yang, 2014/01/15
- Re: [PATCH 0/6] Doc: correct for commands which support SELinux and SMACK, Pádraig Brady, 2014/01/16