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:
Created attachment 141767 [details] This patch enables to read security context anytime to prepare parsing "%C"