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)
Wed, Apr 22, 6:36 PM
Unknown Object (File)
Tue, Apr 21, 6:51 AM
Unknown Object (File)
Fri, Apr 17, 3:14 AM
Unknown Object (File)
Thu, Apr 16, 1:13 AM
Unknown Object (File)
Wed, Apr 15, 2:14 AM
Unknown Object (File)
Tue, Apr 7, 11:27 AM
Unknown Object (File)
Mon, Apr 6, 11:47 AM
Unknown Object (File)
Sun, Mar 29, 11:59 PM
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