commit 5ea965ef243224c50d8ce851ff80b7fab2e05c07 from: Sergey Bronnikov date: Sat Apr 15 14:43:25 2023 UTC rules/tarantool: add rule box_cfg_raw_access commit - c8b48345ede4231a3b339854e6bb49204c9b30c5 commit + 5ea965ef243224c50d8ce851ff80b7fab2e05c07 blob - a4384641dfd66abcba465dc7044e70c64273351c blob + e3767e880a98e4b96a80ecdf47f466ebfbada862 --- README.md +++ README.md @@ -51,6 +51,7 @@ $ spatch --sp-file coccinelle/mmap_map_failed.cocci -- #### Tarantool-specific rules +- `tarantool/box/box_cfg_raw_access` - `tarantool/crypto/insecure-hash-algorithm` - `tarantool/digest/insecure-hash-algorithm` - `tarantool/vshard/bad_hash_func` blob - /dev/null blob + 35b60f3149f71083cc49dd6cfbf7d84ca7f4fcc8 (mode 644) --- /dev/null +++ rules/lua/tarantool/box/box_cfg_raw_access.lua @@ -0,0 +1,8 @@ +-- ruleid: box_cfg_raw_access +box.cfg.readahead = 16320 + +-- ruleid: box_cfg_raw_access +box.cfg.feedback_interval = 15 + +-- ruleid: box_cfg_raw_access +box.cfg.read_only = nil blob - /dev/null blob + 190a20d4461bab14175f5bbf28c4f44304769d41 (mode 644) --- /dev/null +++ rules/lua/tarantool/box/box_cfg_raw_access.yaml @@ -0,0 +1,9 @@ +rules: + - id: box_cfg_raw_access + pattern: box.cfg.$OPT = $VALUE + message: box_cfg_raw_access + languages: [lua] + metadata: + references: + - https://github.com/tarantool/tarantool/issues/2867 + severity: WARNING