summaryrefslogtreecommitdiffstats
path: root/contrib/ntp/sntp/harden/linux
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/ntp/sntp/harden/linux')
-rw-r--r--contrib/ntp/sntp/harden/linux4
1 files changed, 4 insertions, 0 deletions
diff --git a/contrib/ntp/sntp/harden/linux b/contrib/ntp/sntp/harden/linux
new file mode 100644
index 0000000..db23544
--- /dev/null
+++ b/contrib/ntp/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"
OpenPOWER on IntegriCloud