Switch Linux build to Clang with SafeStack for SDL compliance by mhrachana · Pull Request #21 · NLua/lua · GitHub
Skip to content

Switch Linux build to Clang with SafeStack for SDL compliance - #21

Open
mhrachana wants to merge 1 commit into
NLua:mainfrom
mhrachana:feature/safestack-linux
Open

mhrachana wants to merge 1 commit into
NLua:mainfrom
mhrachana:feature/safestack-linux

Conversation

@mhrachana

Copy link
Copy Markdown

Summary

Switch the Linux Dockerfile from GCC 5 on Ubuntu 18.04 to Clang on Ubuntu 22.04 with SafeStack instrumentation.

Problem

The current build produces liblua54.so that fails BinSkim SDL validation:
error BA2025 : 'liblua54.so' was compiled using Clang but without the SafeStack instrumentation pass.

Organizations with SDL compliance requirements cannot use the current binary in production Linux deployments.

Related issue: NLua/KeraLua#96

Changes

Ubuntu 18.04 -> Ubuntu 22.04 (LTS until 2027)
GCC 5 -> Clang
No security flags -> -fsanitize=safe-stack

@viniciusjarina

Copy link
Copy Markdown
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants