Skip to content

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

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

Switch Linux build to Clang with SafeStack for SDL compliance#21
mhrachana wants to merge 1 commit intoNLua:mainfrom
mhrachana:feature/safestack-linux

Conversation

@mhrachana
Copy link

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
Member

Hi @mhrachana I appreciate the effort and the PR. However distributing binaries on Linux was always a source of pain, there a lot of issues with glib incompatibility.

Lua is distribute with KeraLua for convenience, that works fine on most platforms. If you have a specific requirement for yours you could just build locally on your pipeline and replace on the final output.

KeraLua doesn't use any modified version of Lua. In fact I try to keep this repo as close as possible from what is on www.lua.org/download.html

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