edgexfoundry / device-usb-camera

Owner: Device WG
Apache License 2.0
12 stars 28 forks source link

feat: Enable PIE support for ASLR and full RELRO #356

Closed jackchenjc closed 1 week ago

jackchenjc commented 1 week ago

If your build fails due to your commit message not passing the build checks, please review the guidelines here: https://github.com/edgexfoundry/edgex-go/blob/main/.github/Contributing.md

PR Checklist

Please check if your PR fulfills the following requirements:

Testing Instructions

Run the following command to build binary

make build

Verify that Full RELRO and PIE enabled are displayed

checksec --file=./cmd/device-usb-camera
RELRO           STACK CANARY      NX            PIE             RPATH      RUNPATH  Symbols     FORTIFY Fortified   Fortifiable FILE
Full RELRO      No canary found   NX enabled    PIE enabled     No RPATH   No RUNPATH   56997) Symbols    Yes   2       2       ./cmd/device-usb-camera

New Dependency Instructions (If applicable)

codecov-commenter commented 1 week ago

:warning: Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 4.74%. Comparing base (f54ffb4) to head (b564a46).

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #356 +/- ## ===================================== Coverage 4.74% 4.74% ===================================== Files 9 9 Lines 1308 1308 ===================================== Hits 62 62 Misses 1246 1246 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.