I'm having trouble finding information on what command, presumably from setools, I should use to find all the files on my filesystem that are labeled by SELinux with a certain file-context (fcontext).At the moment, I can manually list the files along with their respective fcontexts from the file /etc/selinux/targeted/contexts/files, and then grep the specific fcontext I'd like to see.[root@FedPadSSD files]# cat file_contexts |grep ifconfig_exec_t/bin/ip --      system_u:object_r:ifconfig_exec_t:s0/sbin/ip        --      system_u:object_r:ifconfig_exec_t:s0/sbin/tc        --      system_u:object_r:ifconfig_exec_t:s0/usr/bin/ip     --      system_u:object_r:ifconfig_exec_t:s0/usr/sbin/ip    --      system_u:object_r:ifconfig_exec_t:s0/usr/sbin/tc    --      system_u:object_r:ifconfig_exec_t:s0/sbin/ethtool   --      system_u:object_r:ifconfig_exec_t:s0/sbin/ifconfig  --      system_u:object_r:ifconfig_exec_t:s0/sbin/iwconfig  --      system_u:object_r:ifconfig_exec_t:s0/sbin/mii-tool  --      system_u:object_r:ifconfig_exec_t:s0/usr/sbin/ethtool       --      system_u:object_r:ifconfig_exec_t:s0/usr/sbin/ifconfig      --      system_u:object_r:ifconfig_exec_t:s0/usr/sbin/iwconfig      --      system_u:object_r:ifconfig_exec_t:s0/usr/sbin/mii-tool      --      system_u:object_r:ifconfig_exec_t:s0/sbin/ipx_configure     --      system_u:object_r:ifconfig_exec_t:s0/sbin/ipx_interface     --      system_u:object_r:ifconfig_exec_t:s0/sbin/ipx_internal_net  --      system_u:object_r:ifconfig_exec_t:s0/usr/sbin/ipx_configure --      system_u:object_r:ifconfig_exec_t:s0/usr/sbin/ipx_interface --      system_u:object_r:ifconfig_exec_t:s0/usr/sbin/ipx_internal_net      --      system_u:object_r:ifconfig_exec_t:s0The problem with this is that, it seems, most of the time there's something wrong or missing/incomplete when you do it manually as it relates to the SELinux database (for lack of a better word).  So, I wonder if something already exists in the setools package, or related packages, that accomplishes this without having to fuss around with the system-wide configuration files.
How do I find/list all files on filesystem with a certain SELinux fcontext
files;find;selinux
At the moment on RHEL7.1--I'm not sure if this has always been there and I missed it--I can execute the following to get a list of all the filecontexts and just pipe the output to grep:# semanage fcontext -l |grep ifconfig_exec_t/bin/ip                                            regular file       system_u:object_r:ifconfig_exec_t:s0 /sbin/ethtool                                      regular file       system_u:object_r:ifconfig_exec_t:s0 /sbin/ifconfig                                     regular file       system_u:object_r:ifconfig_exec_t:s0 /sbin/ip                                           regular file       system_u:object_r:ifconfig_exec_t:s0 /sbin/ipx_configure                                regular file       system_u:object_r:ifconfig_exec_t:s0 /sbin/ipx_interface                                regular file       system_u:object_r:ifconfig_exec_t:s0 /sbin/ipx_internal_net                             regular file       system_u:object_r:ifconfig_exec_t:s0 /sbin/iw                                           regular file       system_u:object_r:ifconfig_exec_t:s0 /sbin/iwconfig                                     regular file       system_u:object_r:ifconfig_exec_t:s0 /sbin/mii-tool                                     regular file       system_u:object_r:ifconfig_exec_t:s0 /sbin/tc                                           regular file       system_u:object_r:ifconfig_exec_t:s0 /usr/bin/ip                                        regular file       system_u:object_r:ifconfig_exec_t:s0 /usr/sbin/ethtool                                  regular file       system_u:object_r:ifconfig_exec_t:s0 /usr/sbin/ifconfig                                 regular file       system_u:object_r:ifconfig_exec_t:s0 /usr/sbin/ip                                       regular file       system_u:object_r:ifconfig_exec_t:s0 /usr/sbin/ipx_configure                            regular file       system_u:object_r:ifconfig_exec_t:s0 /usr/sbin/ipx_interface                            regular file       system_u:object_r:ifconfig_exec_t:s0 /usr/sbin/ipx_internal_net                         regular file       system_u:object_r:ifconfig_exec_t:s0 /usr/sbin/iw                                       regular file       system_u:object_r:ifconfig_exec_t:s0 /usr/sbin/iwconfig                                 regular file       system_u:object_r:ifconfig_exec_t:s0 /usr/sbin/mii-tool                                 regular file       system_u:object_r:ifconfig_exec_t:s0 /usr/sbin/tc                                       regular file       system_u:object_r:ifconfig_exec_t:s0