File tree Expand file tree Collapse file tree 2 files changed +24
-25
lines changed Expand file tree Collapse file tree 2 files changed +24
-25
lines changed Original file line number Diff line number Diff line change @@ -87,20 +87,20 @@ utils:
87
87
all :
88
88
- has :
89
89
kind : binary_expression
90
- has :
91
- kind : identifier
92
- regex : ^(S_IWOTH|S_IWUSR|S_IGRP|S_IROTH|S_IRUSR|S_IWOTH)$
90
+ all :
91
+ - has :
92
+ kind : binary_expression
93
+ all :
94
+ - has :
95
+ kind : identifier
96
+ - has :
97
+ kind : identifier
98
+ - has :
99
+ kind : identifier
100
+ regex : ^(S_IWOTH|S_IWUSR|S_IGRP|S_IROTH|S_IRUSR|S_IWOTH)$
93
101
- has :
94
102
kind : identifier
95
- regex : ^(S_IWOTH|S_IWUSR|S_IGRP|S_IRUSR|S_IWOTH)$
96
- inside :
97
- stopBy : end
98
- kind : call_expression
99
- has :
100
- kind : identifier
101
- regex : (chmod|fchmod|fchmodat|open|openat)
102
- inside :
103
- kind : expression_statement
103
+ regex : ^(S_IWOTH|S_IWUSR|S_IGRP|S_IROTH|S_IRUSR|S_IWOTH)$
104
104
match_binary_with_identifier :
105
105
kind : identifier
106
106
regex : " ^S_IWOTH$"
@@ -158,7 +158,6 @@ utils:
158
158
regex : ^(openat)$
159
159
inside :
160
160
kind : expression_statement
161
-
162
161
rule :
163
162
any :
164
163
- matches : match_identifier_with_stringliteral_mode
Original file line number Diff line number Diff line change @@ -77,6 +77,18 @@ snapshots:
77
77
style : primary
78
78
start : 50
79
79
end : 107
80
+ - source : S_IWGRP
81
+ style : secondary
82
+ start : 80
83
+ end : 87
84
+ - source : S_IWGRP
85
+ style : secondary
86
+ start : 80
87
+ end : 87
88
+ - source : S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP
89
+ style : secondary
90
+ start : 50
91
+ end : 87
80
92
- source : S_IROTH
81
93
style : secondary
82
94
start : 90
@@ -89,15 +101,3 @@ snapshots:
89
101
style : secondary
90
102
start : 100
91
103
end : 107
92
- - source : chmod("/tmp/foo", S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH);
93
- style : secondary
94
- start : 32
95
- end : 109
96
- - source : chmod
97
- style : secondary
98
- start : 32
99
- end : 37
100
- - source : chmod("/tmp/foo", S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH)
101
- style : secondary
102
- start : 32
103
- end : 108
You can’t perform that action at this time.
0 commit comments