Bug 196607

Summary: restorecond is too verbose when a file doesn't exist
Product: [Fedora] Fedora Reporter: Robert Scheck <redhat-bugzilla>
Component: policycoreutilsAssignee: Daniel Walsh <dwalsh>
Status: CLOSED RAWHIDE QA Contact: Ben Levenson <benl>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: dwalsh, pgraner
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 1.30.17-2 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-07-14 23:34:00 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Robert Scheck 2006-06-25 23:14:39 UTC
Description of problem:
restorecond is too verbose when a file doesn't exist, from my syslog:

Jun 23 09:29:33 tux restorecond: Unable to open file (/etc/samba/secrets.tdb) No 
such file or directory
Jun 23 09:29:33 tux restorecond: Unable to open file (/home/robert/public_html) 
No such file or directory
Jun 23 09:29:33 tux restorecond: Unable to open file (/home/guest/.mozilla/
plugins/libflashplayer.so) No such file or directory
Jun 23 09:29:33 tux restorecond: Unable to open file (/home/robert/.mozilla/
plugins/libflashplayer.so) No such file or directory
Jun 23 09:31:03 tux restorecond: Unable to open file (/etc/samba/secrets.tdb) No 
such file or directory
Jun 23 09:31:03 tux restorecond: Unable to open file (/home/robert/public_html) 
No such file or directory
Jun 23 09:31:03 tux restorecond: Unable to open file (/home/robert/.mozilla/
plugins/libflashplayer.so) No such file or directory
Jun 23 14:24:15 tux restorecond: Unable to open file (/etc/samba/secrets.tdb) No 
such file or directory
Jun 23 14:24:15 tux restorecond: Unable to open file (/home/robert/public_html) 
No such file or directory
Jun 23 14:24:15 tux restorecond: Unable to open file (/home/robert/.mozilla/
plugins/libflashplayer.so) No such file or directory
Jun 23 14:24:16 tux restorecond: terminated
Jun 23 14:24:17 tux restorecond: Unable to open file (/etc/samba/secrets.tdb) No 
such file or directory
Jun 23 14:24:17 tux restorecond: Unable to open file (/home/robert/public_html) 
No such file or directory
Jun 23 14:24:17 tux restorecond: Unable to open file (/home/robert/.mozilla/
plugins/libflashplayer.so) No such file or directory
Jun 24 14:35:23 tux restorecond: Unable to open file (/etc/samba/secrets.tdb) No 
such file or directory
Jun 24 14:35:23 tux restorecond: Unable to open file (/home/robert/public_html) 
No such file or directory
Jun 24 14:35:23 tux restorecond: Unable to open file (/home/guest/.mozilla/
plugins/libflashplayer.so) No such file or directory
Jun 24 14:35:23 tux restorecond: Unable to open file (/home/robert/.mozilla/
plugins/libflashplayer.so) No such file or directory
Jun 24 14:36:21 tux restorecond: Unable to open file (/etc/samba/secrets.tdb) No 
such file or directory
Jun 24 14:36:21 tux restorecond: Unable to open file (/home/robert/public_html) 
No such file or directory
Jun 24 14:36:21 tux restorecond: Unable to open file (/home/robert/.mozilla/
plugins/libflashplayer.so) No such file or directory
Jun 24 20:44:48 tux restorecond: Unable to open file (/etc/samba/secrets.tdb) No 
such file or directory
Jun 24 20:44:48 tux restorecond: Unable to open file (/home/robert/public_html) 
No such file or directory
Jun 24 20:44:48 tux restorecond: Unable to open file (/home/guest/.mozilla/
plugins/libflashplayer.so) No such file or directory
Jun 24 20:44:48 tux restorecond: Unable to open file (/home/robert/.mozilla/
plugins/libflashplayer.so) No such file or directory
Jun 24 20:45:08 tux restorecond: Unable to open file (/etc/samba/secrets.tdb) No 
such file or directory
Jun 24 20:45:08 tux restorecond: Unable to open file (/home/robert/public_html) 
No such file or directory
Jun 24 20:45:08 tux restorecond: Unable to open file (/home/robert/.mozilla/
plugins/libflashplayer.so) No such file or directory
Jun 25 06:25:22 tux restorecond: Unable to open file (/etc/samba/secrets.tdb) No 
such file or directory
Jun 25 12:25:04 tux restorecond: Unable to open file (/etc/samba/secrets.tdb) No 
such file or directory
Jun 25 23:41:11 tux restorecond: Unable to open file (/etc/samba/secrets.tdb) No 
such file or directory
Jun 25 23:41:11 tux restorecond: Unable to open file (/home/robert/public_html) 
No such file or directory
Jun 25 23:41:11 tux restorecond: Unable to open file (/home/guest/.mozilla/
plugins/libflashplayer.so) No such file or directory
Jun 25 23:41:11 tux restorecond: Unable to open file (/home/robert/.mozilla/
plugins/libflashplayer.so) No such file or directory
Jun 25 23:41:38 tux restorecond: Unable to open file (/etc/samba/secrets.tdb) No 
such file or directory
Jun 25 23:41:38 tux restorecond: Unable to open file (/home/robert/public_html) 
No such file or directory
Jun 25 23:41:38 tux restorecond: Unable to open file (/home/robert/.mozilla/
plugins/libflashplayer.so) No such file or directory
Jun 26 00:10:18 tux restorecond: Unable to open file (/etc/samba/secrets.tdb) No 
such file or directory

Version-Release number of selected component (if applicable):
policycoreutils-1.30.14-5

How reproducible:
Everytime, see above.

Actual results:
restorecond is too verbose when a file doesn't exist.

Expected results:
Silence by restorecond in syslog ;-)

Additional info:
Maybe a configuration direction or a parameter can be introduced, if you want
to keep the ability for having syslog flooded by unnecessary stuff...

Comment 1 Daniel Walsh 2006-07-11 20:30:31 UTC
Fixed in policycoreutils-1.30.17-2

Comment 2 Robert Scheck 2006-07-14 23:34:00 UTC
Works, thank you. Closing now...