Skip to content

Improve FreeBSD fork detection #3674

@torben-hansen

Description

@torben-hansen

Security issue notifications

If you discover a potential security issue in s2n we ask that you notify
AWS Security via our vulnerability reporting page. Please do not create a public github issue.

Problem:

#3670 discovered that FreeBSD doesn't actually define MAP_INHERIT_ZERO but instead define INHERIT_ZERO. We need to cater for that in the code because existence of MAP_INHERIT_ZERO is current a condition for enabling the minherit fork detection method.

See #3670 (comment) for more details.

Solution:

Probably re-factor to a common *BSD definition that can set a single flag depending on existence of MAP_INHERIT_ZERO, INHERIT_ZERO, .... This logic is placed somewhere appropriately.

Requirements / Acceptance Criteria:

Need to verify that fork detection method minherit is running.

Out of scope:

Is there anything the solution will intentionally NOT address?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions