diff options
author | Jim Meyering <meyering@redhat.com> | 2009-09-11 16:30:27 +0200 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2009-09-11 19:58:18 +0200 |
commit | ebbf0a1f0f75490dd7e8b7d717adc46888075e1e (patch) | |
tree | 3b185b3c1770a50ba7de5b169ed3bed7abe3fa0b /doc | |
parent | 398749b0cc49773320e6bc56eafabe7e85437412 (diff) | |
download | coreutils-ebbf0a1f0f75490dd7e8b7d717adc46888075e1e.tar.xz |
id: don't print context=... when POSIXLY_CORRECT is set
* src/id.c (print_full_info) [POSIXLY_CORRECT]: Don't print context.
Reported by Ulrich Drepper.
* NEWS (Changes in behavior): Mention it.
* doc/coreutils.texi (id invocation): Document that id also prints the
security context, when possible, and when POSIXLY_CORRECT is not set.
* tests/id/no-context: New file. Test for this.
* tests/Makefile.am (TESTS): Add it.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/coreutils.texi | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/coreutils.texi b/doc/coreutils.texi index 22d307a99..8b28566fe 100644 --- a/doc/coreutils.texi +++ b/doc/coreutils.texi @@ -12825,9 +12825,13 @@ running it if no user is specified. Synopsis: id [@var{option}]@dots{} [@var{username}] @end example +@vindex POSIXLY_CORRECT By default, it prints the real user ID, real group ID, effective user ID if different from the real user ID, effective group ID if different from the real group ID, and supplemental group IDs. +In addition, if SELinux +is enabled and the @env{POSIXLY_CORRECT} environment variable is not set, +then print @samp{context=@var{c}}, where @var{c} is the security context. Each of these numeric values is preceded by an identifying string and followed by the corresponding user or group name in parentheses. |