Created attachment 360008 [details] patch fixing problems described herein Description of problem: If you use the -R option and have a very large list if files to check, setfiles forks many child processes and in the process forgets to close the parents descriptor after its done with it. This leads to the following errors: /sbin/restorecon: pipe error on /usr/src/kernels/2.6.30.5-43.fc11.x86_64/sound/usb: Too many open files /sbin/restorecon: pipe error on /usr/src/kernels/2.6.30.5-43.fc11.x86_64/sound/usb/caiaq: Too many open files /sbin/restorecon: pipe error on /usr/src/kernels/2.6.30.5-43.fc11.x86_64/sound/usb/usx2y: Too many open files /sbin/restorecon: pipe error on /usr/src/kernels/2.6.30.5-43.fc11.x86_64/usr: Too many open files
setfiles has had a rewrite in F12, can we put off the fix until then.
F-11 should be supported another 7 months. :) I would patch this and push it out. Right now anyone using a big list of files will hit the limit after about 1024 and then it quits working.
Miroslav, go for it.
Fixed in policycoreutils-2.0.62-12.13.fc11
Problem seems fixed, closing. Thanks!