Skip to content

Commit

Permalink
change scope to call for atomic operations
Browse files Browse the repository at this point in the history
  • Loading branch information
jorik committed Oct 31, 2024
1 parent f880b13 commit 1fdde58
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 18 deletions.
11 changes: 5 additions & 6 deletions host-interaction/file-system/copy/copy-file.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ rule:
- [email protected]
scopes:
static: function
dynamic: thread
dynamic: call
mbc:
- File System::Copy File [C0045]
examples:
Expand All @@ -26,8 +26,7 @@ rule:
- number: 2 = FO_COPY
- or:
- api: kernel32.SHFileOperation
- call:
- and:
- number: 2 = FO_COPY
- or:
- api: kernel32.SHFileOperation
- and:
- number: 2 = FO_COPY
- or:
- api: kernel32.SHFileOperation
9 changes: 4 additions & 5 deletions host-interaction/file-system/move/move-file.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ rule:
- [email protected]
scopes:
static: function
dynamic: thread
dynamic: call
mbc:
- File System::Move File [C0063]
examples:
Expand All @@ -27,7 +27,6 @@ rule:
- number: 1 = FO_MOVE
- or:
- api: kernel32.SHFileOperation
- call:
- and:
- number: 1 = FO_MOVE
- api: kernel32.SHFileOperation
- and:
- number: 1 = FO_MOVE
- api: kernel32.SHFileOperation
11 changes: 5 additions & 6 deletions host-interaction/file-system/write/write-file-on-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ rule:
- [email protected]
scopes:
static: function
dynamic: thread
dynamic: call
mbc:
- File System::Writes File [C0052]
examples:
Expand All @@ -24,11 +24,10 @@ rule:
- number: 0x40000000 = GENERIC_WRITE
- number: 0x2 = FILE_WRITE_DATA
- match: create or open file
- call:
- or:
- number: 0x40000000 = GENERIC_WRITE
- number: 0x2 = FILE_WRITE_DATA
- match: create or open file
- or:
- number: 0x40000000 = GENERIC_WRITE
- number: 0x2 = FILE_WRITE_DATA
- match: create or open file
- or:
- api: kernel32.WriteFile
- api: kernel32.WriteFileEx
Expand Down
2 changes: 1 addition & 1 deletion host-interaction/registry/create/set-registry-value.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ rule:
- [email protected]
scopes:
static: function
dynamic: thread
dynamic: call
mbc:
- Operating System::Registry::Set Registry Key [C0036.001]
examples:
Expand Down

0 comments on commit 1fdde58

Please sign in to comment.