I am customizing the plist file to start osquery through my code. I have taken the osqueryd file and renamed it to testosqueryd now through my plist, io.testosquery.agent.plist. I am just loading testosqueryd. It is osquery is loading but. But now I am using es_process_events table in my code to get process events. But according to documentation from osquery it requires full disk access.
https://osquery.readthedocs.io/en/stable/deployment/process-auditing/
As I am going to install osquery silently I need to give full disk access automatically.
codesign -dr - /opt/osquery/lib/osquery.app/Contents/MacOS/osqueryd Executable=/opt/osquery/lib/osquery.app/Contents/MacOS/osqueryd designated => identifier "io.osquery.agent" and anchor apple generic and certificate 1[field.1.2.840.113635.100.6.2.6] /* exists / and certificate leaf[field.1.2.840.113635.100.6.1.13] / exists */ and certificate leaf[subject.OU] = "3522FA9PXF"
According to documentation above should be the output of
codesign -dr -
but problem is it is pointing to io.osquery.agent but my plist name is io.testosquery.agent. In my scenario I also have to support coexistence of osquery as well as testosquey.
Can anyone help me how to silently install customized osquery with full disk access functionality implementation.