Skip to content

Python path hardcoded on "python_packages" table for Linux (and partially macOS) #4252

@mcburrlin

Description

@mcburrlin

In the "python_packages" table, "kPythonPath" (Linux platform) is hardcoded to python2.7 path.
https://github.com/facebook/osquery/blob/f6d077cbf7e1f60eef06ccdaf568f25971d178e9/osquery/tables/system/python_packages.cpp#L33-L40

It looks like Darwin & Windows dynamically generate, although the Darwin logic assumes you're using a Python binary located in:

https://github.com/facebook/osquery/blob/f6d077cbf7e1f60eef06ccdaf568f25971d178e9/osquery/tables/system/python_packages.cpp#L42-L44

I think it would make sense to dynamically locate the Python binary or to allow for the ability to select Python based on a given path.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions