mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-15 06:42:51 +01:00
veloader: insist on verifying .4th .lua etc
When files are read from .rc or .4th, verify_file is asked to guess the severity (VE_TRY,VE_WANT,VE_MUST) Reviewed by: stevek MFC after: 1 week Sponsored by: Juniper Networks
This commit is contained in:
parent
773e541e8d
commit
0929924b61
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=364443
@ -1,5 +1,5 @@
|
||||
/*-
|
||||
* Copyright (c) 2017-2018, Juniper Networks, Inc.
|
||||
* Copyright (c) 2017-2020, Juniper Networks, Inc.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions
|
||||
@ -255,6 +255,10 @@ severity_guess(const char *filename)
|
||||
strcmp(cp, ".cookie") == 0 ||
|
||||
strcmp(cp, ".hints") == 0)
|
||||
return (VE_TRY);
|
||||
if (strcmp(cp, ".4th") == 0 ||
|
||||
strcmp(cp, ".lua") == 0 ||
|
||||
strcmp(cp, ".rc") == 0)
|
||||
return (VE_MUST);
|
||||
}
|
||||
return (VE_WANT);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user