Bug 216672 - stat -c "%C" prints "(null)" in apite of the security context.
Summary: stat -c "%C" prints "(null)" in apite of the security context.
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: coreutils
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Tim Waugh
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-11-21 14:46 UTC by KaiGai Kohei
Modified: 2007-11-30 22:11 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-12-13 13:01:24 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
This patch enables to read security context anytime to prepare parsing "%C" (1.15 KB, text/plain)
2006-11-21 14:46 UTC, KaiGai Kohei
no flags Details

Description KaiGai Kohei 2006-11-21 14:46:32 UTC
Description of problem:
When we execute 'stat' with -c option and a format string including "%C",
it prints "(null)" in spite of the security context of the files specified.

Version-Release number of selected component (if applicable):
I confirmed it on coreutils-5.97-14.fc7.
Probably, we can reproduce this problem in any recent version of coreutils.

How reproducible:
% stat -c "%C" hoge.txt
(null)

We expect the following result.
% stat -c "%C" hoge.txt
user_u:object_r:user_home_t:s0
  
Additional info:

Comment 1 KaiGai Kohei 2006-11-21 14:46:32 UTC
Created attachment 141767 [details]
This patch enables to read security context anytime to prepare parsing "%C"


Note You need to log in before you can comment on or make changes to this bug.