Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

eBPF user-program logs are not seen as part of L3AFd logs #344

Open
aka320 opened this issue Mar 5, 2024 · 0 comments
Open

eBPF user-program logs are not seen as part of L3AFd logs #344

aka320 opened this issue Mar 5, 2024 · 0 comments
Assignees

Comments

@aka320
Copy link
Contributor

aka320 commented Mar 5, 2024

eBPF user-program is invoked for L3AFd for some use-cases such as UpdateArgs. The console logs of eBPF program are suppressed when the eBPF user-program is invoked as child process of L3AFd.

@aka320 aka320 self-assigned this Mar 5, 2024
aka320 pushed a commit that referenced this issue Mar 5, 2024
This PR addresses the issue reported in #344
Fix
---
- We need to explicitly set the STD-OUT and STD-ERR of the Child-process to inherit parent process, so that logs are displayed in parent process console

Testing
-------
- Validated that logs are seen in console as well as journalctl (when run as systemctl service)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant