Comments (8)
Building 0.8.0 just gives a warning regarding _FORTIFY_SOURCE
:
-- The C compiler identification is GNU 4.9.2
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
-- Configuring done
-- Generating done
-- Build files have been written to: /build/src/tini-0.8.0
Scanning dependencies of target tini-staticScanning dependencies of target tini
[ 50%] [100%] Building C object CMakeFiles/tini.dir/src/tini.c.oBuilding C object CMakeFiles/tini-static.dir/src/tini.c.o
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined
<built-in>: note: this is the location of the previous definition
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined
<built-in>: note: this is the location of the previous definition
Linking C executable tiniLinking C executable tini-static
[100%] Built target tini
from tini.
This is probably because I made warnings fatal in cd23c4c
It looks like -D_FORTIFY_SOURCE=2
isn't needed on alpine because it's default: http://git.alpinelinux.org/cgit/aports/plain/main/gcc/010_all_default-fortify-source.patch.
Not sure how best to address this. Thoughts? You could drop add_definitions (-D_FORTIFY_SOURCE=2)
in CMakeLists.txt
in a patch (which would be consistent with what Alpine does for GCC), but that's more work for you.
Otherwise, I could make this warning non-fatal.
from tini.
I dont know much about it, but judging the comment i would assume that building would now fail on every distro that has fortify source enabled by default? If that is the case, i think a solution would be better suited here to not get frustrated user from distro XY posting issues about it here.
from tini.
Fair enough. I'll add a test for it being a builtin instead.
from tini.
@danilobuerger can you try this branch: https://github.com/krallin/tini/tree/fix-22?
(I tested it with the official Alpine Docker image and it seems to work, but I'd appreciate it if you could confirm it :) )
from tini.
Confirmed ๐
from tini.
Awesome; thanks!
I'm going to try and add a check for hardening being enabled in the CI script before I merge this (to make sure we still enable fortify source outside of Alpine!)
from tini.
I added the tests in a separate branch (blocked on travis-ci/apt-package-safelist#1654 though), but I merged the fix now in #23 (version 0.8.3).
Thanks for the report!
from tini.
Related Issues (20)
- Supress TRACE but show DEBUG HOT 1
- Event not generated when File change happens HOT 1
- About Tini version planning๏ผ HOT 2
- aarch64 version available? HOT 3
- Non-terminal signals are killing containers running with --init flag HOT 3
- stack-protector not work HOT 4
- [FATAL tini (7)] exec bash failed: No such file or directory HOT 3
- [CVE-2023-25139]tini-static executable seems vulnerable HOT 1
- example / explanation HOT 1
- How can I confirm that tini is running? HOT 1
- prctl(PR_SET_PDEATHSIG, ...) should be called after fork(), not before HOT 4
- MI6&termux&clang-16 build failed HOT 2
- Using "docker run --init" with arguments to tini HOT 3
- tini docker windows container HOT 1
- Command-line parsing is broken if compiled with TINI_MINIMAL
- tini not running as child subreaper on AWS Lambda HOT 4
- dnf/rpm install -y tini not working HOT 1
- Latest release changed to 0.18. then switched back to 0.19 HOT 2
- Ubuntu 22.04 LTS tini install not working HOT 2
- Use Tini to ignore some signals and not pass them down.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tini.