Page MenuHomeFreeBSD

libc: Use secure_getenv(3) where appropriate
ClosedPublic

Authored by markj on Mar 26 2023, 4:51 PM.
Tags
None
Referenced Files
F157594374: D39278.diff
Sat, May 23, 5:10 AM
Unknown Object (File)
Sun, May 10, 3:08 AM
Unknown Object (File)
Sat, May 2, 11:09 PM
Unknown Object (File)
Tue, Apr 28, 7:06 PM
Unknown Object (File)
Tue, Apr 28, 7:03 PM
Unknown Object (File)
Apr 22 2026, 6:36 PM
Unknown Object (File)
Apr 21 2026, 6:51 AM
Unknown Object (File)
Apr 17 2026, 3:14 AM
Subscribers

Details

Summary

No functional change intended.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 50594
Build 47485: arc lint + arc unit

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