datadog-agent icon indicating copy to clipboard operation
datadog-agent copied to clipboard

[CSM] Hook ftruncate

Open Gui774ume opened this issue 1 year ago • 2 comments

What does this PR do?

This PR hooks the ftruncate syscall.

Motivation

This syscall was forgotten in the list of hooked syscalls. We currently support truncate but forgot ftruncate.

Describe how to test/QA your changes

A functional test was added.

Gui774ume avatar Jun 17 '24 13:06 Gui774ume

[Fast Unit Tests Report]

On pipeline 36895747 (CI Visibility). The following jobs did not run any unit tests:

Jobs:
  • tests_windows-x64

If you modified Go files and expected unit tests to run in these jobs, please double check the job logs. If you think tests should have been executed reach out to #agent-developer-experience

Test changes on VM

Use this command from test-infra-definitions to manually test this PR changes on a VM:

inv create-vm --pipeline-id=36895747 --os-family=ubuntu

Note: This applies to commit 657a9cdd

pr-commenter[bot] avatar Jun 17 '24 14:06 pr-commenter[bot]