diff options
author | David Timber <mieabby@gmail.com> | 2021-10-30 11:21:00 +0800 |
---|---|---|
committer | David Timber <mieabby@gmail.com> | 2021-10-30 11:21:00 +0800 |
commit | 6493fa5c7f616520eed25c2357914afe80c9eb56 (patch) | |
tree | 1c603ac9b4e15a727e9b88d720c2ef855dc61022 /doc | |
parent | a932a46545c16fb0e42ccc5a4c43b7d67d152545 (diff) |
Code documentation and bug fixes ...
* Add convenience function prne_sfree_str()
* Use prne_sfree_str() to scrub off sensitive data
* Making the brute force login vector optional
BNE param cred_dict can be null
* Use O_EXCL when creating temporary files
* Fix bug where bne_cb_uptime() returns the up time of the child
process, not the parent
Diffstat (limited to 'doc')
-rw-r--r-- | doc/dev_notes.md | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/doc/dev_notes.md b/doc/dev_notes.md index 2b95b58..10843c5 100644 --- a/doc/dev_notes.md +++ b/doc/dev_notes.md @@ -152,22 +152,6 @@ But doing exec() from the main process seemed as an acceptable risk becuase the host doesn't have to maintain both old and new images this way. Memory is a scarce commodity on embedded devices! -### Tmpfile Race Condition -From *mktemp(3)*: - -> Never use mktemp(). Some implementations follow 4.3BSD and replace -XXXXXX by the current process ID and a single letter, so that at most 26 -different names can be returned. Since on the one hand the names are easy to -guess, and on the other hand there is a race between test‐ ing whether the name -exists and opening the file, every use of mktemp() is a security risk. The -race is avoided by mkstemp(3) and mkdtemp(3). - -The same issue exists in the way the instance creates and uses temp files. The -workers create temp files using callback functions. The temp files are returned -as paths, not as open file descriptors. This is a design flaw. If Prone were -fully fledged commercial software, this flaw would have been a serious -vulnerability. - ## Notes on Arch For ARM, the codes are assigned for arches with major changes as per the "industry standard". ARMV4T is the first and oldest Linux suppports. The thumb |