From: KaiGai Kohei <kaigai@kaigai.gr.jp>
To: Stephen Smalley <sds@tycho.nsa.gov>
Cc: selinux@tycho.nsa.gov, Yoshinori Sato <yo-satoh@sios.com>,
Yuichi Nakamura <ynakam@hitachisoft.jp>
Subject: Re: Question about stat
Date: Tue, 21 Nov 2006 23:49:52 +0900 [thread overview]
Message-ID: <45631210.8080405@kaigai.gr.jp> (raw)
In-Reply-To: <1164118344.13758.101.camel@moss-spartans.epoch.ncsc.mil>
Stephen Smalley wrote:
> On Tue, 2006-11-21 at 21:24 +0900, KaiGai Kohei wrote:
>> I found a strange behavior of the stat in coreutils-5.97-14.fc7.src.rpm.
>>
>> see below,
>>
>> [kaigai@masu ~]$ stat -c "%C" mytest.sql
>> (null)
>> [kaigai@masu ~]$ stat -Z -c "%C" mytest.sql
>> user_u:object_r:user_home_t:s0
>> [kaigai@masu ~]$
>>
>> Because stat command without '-Z' option doesn't try to obtain
>> the security context of the files specified, the format string
>> which contains "%C" doesn't work correctly.
>>
>> Is it expected behavior?
>
> That sounds like a bug to me; the use of '%C' in the format string
> should implicitly enable the invocation of getfilecon. I'd suggest
> filing a bug against coreutils in fedora devel at bugzilla.redhat.com,
> as there is no "upstream" repository presently for the coreutils selinux
> patch.
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=216672
I filed it at bugzilla.redhat.com.
Thanks,
--
KaiGai Kohei <kaigai@kaigai.gr.jp>
--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.
prev parent reply other threads:[~2006-11-21 14:51 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-21 12:24 Question about stat KaiGai Kohei
2006-11-21 14:12 ` Stephen Smalley
2006-11-21 14:49 ` KaiGai Kohei [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=45631210.8080405@kaigai.gr.jp \
--to=kaigai@kaigai.gr.jp \
--cc=sds@tycho.nsa.gov \
--cc=selinux@tycho.nsa.gov \
--cc=ynakam@hitachisoft.jp \
--cc=yo-satoh@sios.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.