Writing portable C that uses pledge/unveil?

This page summarizes the projects mentioned and recommended in the original post on /r/openbsd

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • rpki-client-portable

    Portability shim for OpenBSD's rpki-client

  • A kind email reached me (not naming names here unless they want to claim credit) suggesting a ./configure test that defines HAVE_PLEDGE, and then wrapping the pledge() invocation in that #ifdef HAVE_PLEDGE check, pointing me at rpki-client-portable as an example of this pattern.

  • oed

    Portable OpenBSD ed(1) editor.

  • It looks like this is the same check for pledge/define HAVE_PLEDGE/guard the pledge invocation pattern is used in Brian Callahan's OpenED portable version of OpenBSD's ed(1).

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • oconfigure

    configuration script for portable, OpenBSD-oriented systems

  • You can use oconfigure for that, and many other OpenBSD-related tests and shims.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts