selinux/policycoreutils/restorecond
Chris Adams 1236eef264 restorecond: first user logged in is not noticed
The first user that logs in will not be caught by restorecond.  The utmp
checking function only returns that there was a change when the previous
list of users was non-NULL.

Here's a patch that works for me (this is against the latest Red Hat
Enterprise Linux 5 policycoreutils release, but I checked the current
source tree and the same problem is present):

Signed-off-by: Eric Paris <eparis@redhat.com>
Acked-by: Dan Walsh <dwalsh@redhat.com>
2011-08-02 13:32:23 -04:00
..
Makefile Author: Daniel J Walsh 2009-02-17 11:42:15 -05:00
restorecond.8 initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
restorecond.c restorecond: Ignore IN_IGNORED inotify events 2011-08-01 13:40:20 -04:00
restorecond.conf Author: Daniel J Walsh 2009-04-10 19:17:47 -04:00
restorecond.h initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
restorecond.init initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
stringslist.c Author: Daniel J Walsh 2009-02-17 11:42:15 -05:00
stringslist.h Author: Daniel J Walsh 2009-02-17 11:42:15 -05:00
utmpwatcher.c restorecond: first user logged in is not noticed 2011-08-02 13:32:23 -04:00
utmpwatcher.h initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00