summaryrefslogtreecommitdiffstats
path: root/documentation/dev-manual
diff options
context:
space:
mode:
authorScott Rifenbark <scott.m.rifenbark@intel.com>2014-04-02 12:41:02 -0600
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-04-04 15:20:17 +0100
commit6ff92a69662a23794732113be7f761b8d5fb9a65 (patch)
treec9578b1da24d424b412f934fc4998b8e6edf0de9 /documentation/dev-manual
parentef7f9aba96c508dc5e4deca0f26db784c66298e3 (diff)
downloadpoky-6ff92a69662a23794732113be7f761b8d5fb9a65.tar.gz
dev-manual, ref-manual: Additions for making an image more secure.
Fixes [YOCTO #3686] In the dev-manual, I created a new section called "Making Images More Secure." The section explains in general how to enable the security flags. In the ref-manual, I updated the CFLAGS variable to point to the new section. (From yocto-docs rev: 3ed91a46eaf5c1fdf84369ea69951775d87a42da) Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'documentation/dev-manual')
-rw-r--r--documentation/dev-manual/dev-manual-common-tasks.xml32
1 files changed, 32 insertions, 0 deletions
diff --git a/documentation/dev-manual/dev-manual-common-tasks.xml b/documentation/dev-manual/dev-manual-common-tasks.xml
index 3d5a9b6cad..c6e4efd6d9 100644
--- a/documentation/dev-manual/dev-manual-common-tasks.xml
+++ b/documentation/dev-manual/dev-manual-common-tasks.xml
@@ -3534,6 +3534,38 @@
3534 </section> 3534 </section>
3535 </section> 3535 </section>
3536 3536
3537 <section id='making-images-more-secure'>
3538 <title>Making Images More Secure</title>
3539
3540 <para>
3541 The Yocto Project has security flags that you can enable that
3542 help make your build output more secure.
3543 The security flags are in the
3544 <filename>meta/conf/distro/include/security_flags.inc</filename>
3545 file in your
3546 <link linkend='source-directory'>Source Directory</link>
3547 (e.g. <filename>poky</filename>).
3548 </para>
3549
3550 <para>
3551 These GCC/LD flags enable more secure code generation.
3552 By including the <filename>security_flags.inc</filename>
3553 file, you enable flags to the compiler and linker that cause
3554 them to generate more secure code.
3555 <note>
3556 These flags are enabled by default in the
3557 <filename>poky-lsb</filename> distribution.
3558 </note>
3559 Use the following line in your
3560 <filename>local.conf</filename> file
3561 to enable the security compiler and
3562 linker flags to your build:
3563 <literallayout class='monospaced'>
3564 require conf/distro/include/security_flags.inc
3565 </literallayout>
3566 </para>
3567 </section>
3568
3537 <section id='creating-your-own-distribution'> 3569 <section id='creating-your-own-distribution'>
3538 <title>Creating Your Own Distribution</title> 3570 <title>Creating Your Own Distribution</title>
3539 3571