Without it those files are loaded bypassing verification when using forth interpreter.
Details
Details
Diff Detail
Diff Detail
- Lint
Lint Skipped - Unit
Tests Skipped
Event Timeline
stand/ficl/loader.c | ||
---|---|---|
506 | Hmm this is in our internal tree, not sure how I missed it. if (fd >= 0 && (mode & 0x3) == 0 && verify_file(fd, name, 0, VE_GUESS) < 0) { close(fd); fd = -1; } |
Comment Actions
Actually it would be better to call verify_file and THEN consider mode.
If the file is verified writing should not be allowed, if it is not verified reading should not be allowed.
Comment Actions
Ok I never committed my changes to loader.c because I had some other junk in there so it would work with Junos - for testing.
See
https://reviews.freebsd.org/D20387
for what I described