mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-09-02 07:15:18 +00:00
change cache check so that debugging can see which file caused failure
Currently the cache tracks the most recent timestamp of parsed files and then compares that to the cache timestamp. This unfortunately prevents the parser from being able to know which files caused the cache check failure. Rework the cache check so that there is a debug option, and that the cache file timestamp is set first so that we can output a deug message for each file that causes a cache check failure. Signed-off-by: John Johansen <john.johansen@canonical.com> [tyhicks: Forward ported to trunk and minor cleanups] Signed-off-by: Tyler Hicks <tyhicks@canonical.com> Acked-by: Steve Beattie <steve@nxnw.org>
This commit is contained in:
committed by
Tyler Hicks
parent
afb3cd0b06
commit
2b240461a7
@@ -317,7 +317,7 @@ extern void pwarn(const char *fmt, ...) __attribute__((__format__(__printf__, 1,
|
||||
/* from parser_main (cannot be used in tst builds) */
|
||||
extern int force_complain;
|
||||
extern struct timespec mru_tstamp;
|
||||
extern void update_mru_tstamp(FILE *file);
|
||||
extern void update_mru_tstamp(FILE *file, const char *path);
|
||||
extern void display_version(void);
|
||||
|
||||
/* provided by parser_lex.l (cannot be used in tst builds) */
|
||||
|
Reference in New Issue
Block a user