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

Audit with preload solution #1

Open
xrl1 opened this issue Jan 13, 2022 · 1 comment
Open

Audit with preload solution #1

xrl1 opened this issue Jan 13, 2022 · 1 comment

Comments

@xrl1
Copy link

xrl1 commented Jan 13, 2022

Hey, I took a quick look at the problem you described in version_only directory
I suspect that the printing in the auditing library doesn't happen because libc is buffering the output before writing to stdout in the printf code, but because the library is loaded at such an early stage, my guess is it fails to store a buffer in a global variable.
If you add a '\n' at the end of the string, printf will write the output and the code will work as you expect 😀

@vsoch
Copy link
Member

vsoch commented Jan 13, 2022

Oh interesting! Let's leave this open and if/when I come back to testing I'll try this out. Thank you for the insight to this (I had no idea why it didn't show up!)

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

2 participants