aboutsummaryrefslogtreecommitdiff
path: root/sntp/harden/linux
diff options
context:
space:
mode:
Diffstat (limited to 'sntp/harden/linux')
-rw-r--r--sntp/harden/linux4
1 files changed, 4 insertions, 0 deletions
diff --git a/sntp/harden/linux b/sntp/harden/linux
new file mode 100644
index 0000000000000..db235446e1dbd
--- /dev/null
+++ b/sntp/harden/linux
@@ -0,0 +1,4 @@
+# generic linux hardening flags
+NTP_HARD_CFLAGS="-pie -fPIE -fPIC -fstack-protector-all -O1"
+NTP_HARD_CPPFLAGS="-D_FORTIFY_SOURCE=2"
+NTP_HARD_LDFLAGS="-z relro -z now"