<feed xmlns='http://www.w3.org/2005/Atom'>
<title>staging/blogic/include/hardening.mk, branch master</title>
<subtitle>John Crispins staging tree</subtitle>
<id>https://git.openwrt.org/openwrt/staging/blogic/atom?h=master</id>
<link rel='self' href='https://git.openwrt.org/openwrt/staging/blogic/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/blogic/'/>
<updated>2018-07-30T12:26:16Z</updated>
<entry>
<title>build: fix ASLR for LTO packages</title>
<updated>2018-07-30T12:26:16Z</updated>
<author>
<name>Julien Dusser</name>
</author>
<published>2018-07-17T16:29:34Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/blogic/commit/?id=4dfa6b7a300188db2d97a291f9c1303286a6bcc5'/>
<id>urn:sha1:4dfa6b7a300188db2d97a291f9c1303286a6bcc5</id>
<content type='text'>
Fix building packages with LTO when CONFIG_PKG_ASLR_PIE is enabled.

Despite comment of PR lto/80838, it seems that GCC needs -fPIC on linker
command line, even if all objects are -fPIC. This may change as PR
lto/80838 is merged into 8.1

compile-tested: ar71xx, ath79

Fix commits:
6dac92a42e052f89971762173daabb7fd84742ef
8c11133c9de632dca69c8464f911d8e2716effe2
07940acc341ee9bb2887359f193625e48f36207e
e7397eef69a20fc630148d0e597523e139d21c0c
ef16a394d2b24a363b50b5b4720cb23fe156c9da
ef96d1e34a990871c912938c336f51a510b1e32f
47b42137ce1e931ae5871952b1f98438396f5e07
73fc67b61480a3430d31de33478a1c0c2c364b9c
154c0c4006daf41e2cbb6c8b7ad5557f83dfea3e
804c51e1e661819c5a7532e66fb8a12166eef9a9

Signed-off-by: Julien Dusser &lt;julien.dusser@free.fr&gt;
</content>
</entry>
<entry>
<title>build: ASLR hardening use $(FPIC)</title>
<updated>2018-07-03T13:19:10Z</updated>
<author>
<name>Kevin Darbyshire-Bryant</name>
</author>
<published>2018-06-09T08:11:24Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/blogic/commit/?id=89b59994eb44b5cd2fac594144c20c63fd05ef25'/>
<id>urn:sha1:89b59994eb44b5cd2fac594144c20c63fd05ef25</id>
<content type='text'>
Signed-off-by: Kevin Darbyshire-Bryant &lt;ldir@darbyshire-bryant.me.uk&gt;
</content>
</entry>
<entry>
<title>build: add hardened builds with PIE (ASLR) support</title>
<updated>2018-01-27T15:46:45Z</updated>
<author>
<name>Julien Dusser</name>
</author>
<published>2018-01-08T22:47:06Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/blogic/commit/?id=df0bd42fdeb76c9bc51b816c3df699db123c0024'/>
<id>urn:sha1:df0bd42fdeb76c9bc51b816c3df699db123c0024</id>
<content type='text'>
Introduce a configuration option to build a "hardened" OpenWrt with
ASLR PIE support.

Add new option PKG_ASLR_PIE to enable Address Space Layout Randomization (ASLR)
by building Position Independent Executables (PIE). This new option protects
against "return-to-text" attacks.

Busybox need a special care, link is done with ld, not gcc, leading to
unknown flags. Set BUSYBOX_DEFAULT_PIE instead and disable PKG_ASLR_PIE.

If other failing packages were found, PKG_ASLR_PIE:=0 should be added to
their Makefiles.

Original Work by: Yongkui Han &lt;yonhan@cisco.com&gt;
Signed-off-by: Julien Dusser &lt;julien.dusser@free.fr&gt;
</content>
</entry>
<entry>
<title>hardening: make override variables more intuitive</title>
<updated>2015-06-24T10:57:14Z</updated>
<author>
<name>Steven Barth</name>
</author>
<published>2015-06-24T10:57:14Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/blogic/commit/?id=6010a1cdb729aefdb1121b29b26347c664e20fff'/>
<id>urn:sha1:6010a1cdb729aefdb1121b29b26347c664e20fff</id>
<content type='text'>
Signed-off-by: Steven Barth &lt;steven@midlink.org&gt;

SVN-Revision: 46119
</content>
</entry>
<entry>
<title>gcc/musl: rework SSP-support</title>
<updated>2015-06-22T10:31:07Z</updated>
<author>
<name>Steven Barth</name>
</author>
<published>2015-06-22T10:31:07Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/blogic/commit/?id=1877bc9d8f2be143fbe530347a945850d0ecd234'/>
<id>urn:sha1:1877bc9d8f2be143fbe530347a945850d0ecd234</id>
<content type='text'>
Make musl provide libssp_nonshared.a and make GCC link it unconditionally
if musl is used. This should be a no-op if SSP is disabled and seems to be
the only reliable way of dealing with SSP over all packages due to the mess
that is linkerflags handling in packages.

Signed-off-by: Steven Barth &lt;steven@midlink.org&gt;

SVN-Revision: 46108
</content>
</entry>
<entry>
<title>buildroot: move hardening options into separate file</title>
<updated>2015-06-20T17:37:18Z</updated>
<author>
<name>Steven Barth</name>
</author>
<published>2015-06-20T17:37:18Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/blogic/commit/?id=fc5f02410f27de8b2b97a8edccb859773094591e'/>
<id>urn:sha1:fc5f02410f27de8b2b97a8edccb859773094591e</id>
<content type='text'>
Signed-off-by: Steven Barth &lt;steven@midlink.org&gt;

SVN-Revision: 46070
</content>
</entry>
</feed>
