mirror of
https://github.com/github/codeql.git
synced 2026-02-19 08:23:45 +01:00
document that the WeakFilePermissions access predicate should return at most one value
This commit is contained in:
@@ -40,6 +40,8 @@ bindingset[p]
|
||||
string access(int p) {
|
||||
p.bitAnd(2) != 0 and result = "writable"
|
||||
or
|
||||
// report only the "most permissive" permission, i.e. report the file as
|
||||
// readable only if it is not also writable
|
||||
p.bitAnd(2) = 0 and p.bitAnd(4) != 0 and result = "readable"
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user