Page MenuHomeFreeBSD

libc: Use secure_getenv(3) where appropriate
ClosedPublic

Authored by markj on Mar 26 2023, 4:51 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Nov 8, 10:16 PM
Unknown Object (File)
Fri, Nov 8, 10:16 PM
Unknown Object (File)
Fri, Nov 8, 10:16 PM
Unknown Object (File)
Wed, Nov 6, 12:42 AM
Unknown Object (File)
Sep 24 2024, 9:06 AM
Unknown Object (File)
Sep 24 2024, 3:48 AM
Unknown Object (File)
Sep 15 2024, 10:26 PM
Unknown Object (File)
Sep 13 2024, 12:37 AM
Subscribers

Details

Summary

No functional change intended.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

markj requested review of this revision.Mar 26 2023, 4:51 PM
markj created this revision.
This revision is now accepted and ready to land.Mar 26 2023, 5:46 PM

Did you use coccinelle (sp?) to find all these?

In D39278#894202, @imp wrote:

Did you use coccinelle (sp?) to find all these?

No, just cscope. I think it'd be tricky to write a coccinelle script for this since there's quite a few syntactic variations to look for. Maybe it's easier than I think though, I've only written a couple of scripts with it.

This revision was automatically updated to reflect the committed changes.

Cross-builds on GitHub are failing for macOS, as secure_getenv() does not exist. Should I add it to tools/build/cross-build/include/mac/stdlib.h?

In D39278#894650, @jlduran_gmail.com wrote:

Cross-builds on GitHub are failing for macOS, as secure_getenv() does not exist. Should I add it to tools/build/cross-build/include/mac/stdlib.h?

Oops, thanks for the report. I suspect that'd be sufficient, yes. I started a CI run with that change and will push it if the build completes.

In D39278#894650, @jlduran_gmail.com wrote:

Cross-builds on GitHub are failing for macOS, as secure_getenv() does not exist. Should I add it to tools/build/cross-build/include/mac/stdlib.h?

Oops, thanks for the report. I suspect that'd be sufficient, yes. I started a CI run with that change and will push it if the build completes.

https://reviews.freebsd.org/D39295