mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-31 06:16:03 +00:00
Don't use the parser time stamp to determine if policy is newer.
Using the parser timestamp was a work around to force recompilation of policy that was built with a buggy parser. There are better ways to handle this so remove checking of the parser timestamp. Signed-off-by: John Johansen <john.johansen@canonical.com> Acked-by: Seth Arnold <seth.arnold@canonical.com>
This commit is contained in:
@@ -996,7 +996,6 @@ int process_profile(int option, const char *profilename)
|
||||
char * cachename = NULL;
|
||||
char * cachetemp = NULL;
|
||||
const char *basename = NULL;
|
||||
FILE *cmd;
|
||||
|
||||
/* per-profile states */
|
||||
force_complain = opt_force_complain;
|
||||
@@ -1044,12 +1043,6 @@ int process_profile(int option, const char *profilename)
|
||||
update_mru_tstamp(yyin);
|
||||
}
|
||||
|
||||
cmd = fopen("/proc/self/exe", "r");
|
||||
if (cmd) {
|
||||
update_mru_tstamp(cmd);
|
||||
fclose(cmd);
|
||||
}
|
||||
|
||||
retval = yyparse();
|
||||
if (retval != 0)
|
||||
goto out;
|
||||
|
Reference in New Issue
Block a user