mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-31 14:25:52 +00:00
Convert cache to using mtime
For some strange reason our caching use ctime instead of mtime. However this can lead to odd cases of the cache missing even though neither the profile data nor cache data have changed. Signed-off-by: John Johansen <john.johansen@canonical.com> Acked-by: Steve Beattie <steve@nxnw.org>
This commit is contained in:
@@ -840,8 +840,8 @@ void update_mru_tstamp(FILE *file)
|
||||
struct stat stat_file;
|
||||
if (fstat(fileno(file), &stat_file))
|
||||
return;
|
||||
if (mru_t_cmp(stat_file.st_ctim))
|
||||
mru_tstamp = stat_file.st_ctim;
|
||||
if (mru_t_cmp(stat_file.st_mtim))
|
||||
mru_tstamp = stat_file.st_mtim;
|
||||
}
|
||||
|
||||
int process_profile(int option, const char *profilename)
|
||||
|
Reference in New Issue
Block a user