github-advanced-security[bot] commented on code in PR #19822:
URL: https://github.com/apache/druid/pull/19822#discussion_r3684621099


##########
processing/src/main/java/org/apache/druid/java/util/metrics/CgroupCpuMonitor.java:
##########
@@ -123,9 +123,11 @@
   private void initUzerHz()
   {
     try {
-      Process p = new ProcessBuilder("getconf", "CLK_TCK").start();
+      // getconf has no portable absolute location; the fixed command and 
argument intentionally use the service PATH.
+      // codeql[java/relative-path-command]
+      final Process p = new ProcessBuilder("getconf", "CLK_TCK").start();

Review Comment:
   ## CodeQL / Executing a command with a relative path
   
   Command with a relative path 'getconf' is executed.
   
   [Show more 
details](https://github.com/apache/druid/security/code-scanning/11429)



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to