1
0
mirror of https://github.com/systemd/systemd synced 2025-10-05 16:03:15 +02:00

codeql: taint setmntent() and getmntent()

This commit is contained in:
Mike Yuan
2025-09-16 19:38:09 +02:00
parent 873a70d28a
commit 6b8dcb9853

View File

@@ -52,6 +52,12 @@ predicate potentiallyDangerousFunction(Function f, string message) {
) or (
f.getQualifiedName() = "basename" and
message = "Call basename() is icky. Use path_extract_filename() instead."
) or (
f.getQualifiedName() = "setmntent" and
message = "Libmount parser is used instead, specifically libmount_parse_fstab()."
) or (
f.getQualifiedName() = "getmntent" and
message = "Libmount parser is used instead, specifically mnt_table_next_fs()."
)
}