Changeset d035526


Ignore:
Timestamp:
06/04/2007 07:36:27 PM (17 years ago)
Author:
Manuel Canales Esparcia <manuel@…>
Branches:
2.3, 2.3.x, 2.4, ablfs, ablfs-more, legacy, new_features, trunk
Children:
513b259
Parents:
c1f28d5
Message:

HLFS: Added support for additional build features.

Files:
5 edited

Legend:

Unmodified
Added
Removed
  • Config.in

    rc1f28d5 rd035526  
    397397                default "2.6"           if KERNEL_26
    398398                default "2.4"           if KERNEL_24
     399
     400        menu    "HLFS Additional Features"
     401                depends on BOOK_HLFS
     402
     403                config  SET_SSP
     404                bool    "Stack-smashing protector"
     405                default y
     406
     407                config  SET_ASLR
     408                bool    "Address-space layout randomization"
     409                default y
     410
     411                config  SET_PAX
     412                bool    "PaX-aware ELF executables and kernel"
     413                default y
     414
     415                config  SET_HARDENED_TMP
     416                bool    "Hardened temporary files creation"
     417                default y
     418
     419                config  SET_WARNINGS
     420                bool    "Additional warnings"
     421                default y
     422
     423                config  SET_MISC
     424                bool    "Miscellaneous features"
     425                default y
     426
     427                config  SET_BLOWFISH
     428                bool    "Blowfish passwords"
     429                default y
     430        endmenu
     431
     432        config  SSP
     433                depends on SET_SSP
     434                string
     435                default ",ssp,"
     436
     437        config  ASLR
     438                depends on SET_ASLR
     439                string
     440                default ",aslr,"
     441
     442        config  PAX
     443                depends on SET_PAX
     444                string
     445                default ",pax,"
     446
     447        config  HARDENED_TMP
     448                depends on SET_HARDENED_TMP
     449                string
     450                default ",hardened_tmp,"
     451
     452        config  WARNINGS
     453                depends on SET_WARNINGS
     454                string
     455                default ",warnings,"
     456
     457        config  MISC
     458                depends on SET_MISC
     459                string
     460                default ",misc,"
     461
     462        config  BLOWFISH
     463                depends on SET_BLOWFISH
     464                string
     465                default ",blowfish,"
    399466        #--- End HLFS specific params
    400467
  • HLFS/hlfs.xsl

    rc1f28d5 rd035526  
    3636  -->
    3737  <xsl:param name="bomb-testsuite" select="n"/>
     38
     39  <!-- Additional features -->
     40  <xsl:param name="features">,ssp,aslr,pax,hardened_tmp,warnings,misc,blowfish,</xsl:param>
    3841
    3942  <!-- Time zone -->
     
    150153    <xsl:if test="(@condition=$model or not(@condition)) and
    151154                  (@vendor=$kernel or not(@vendor)) and
    152                   child::* = userinput and not(@role = 'nodump')">
     155                  child::* = userinput and (not(@role) or
     156                  (@role and contains($features,concat(',',@role,','))))">
    153157      <xsl:apply-templates select="userinput" mode="screen"/>
    154158    </xsl:if>
  • common/libs/func_book_parser

    rc1f28d5 rd035526  
    126126                 --stringparam testsuite $TEST \
    127127                 --stringparam bomb-testsuite $BOMB_TEST \
     128                 --stringparam features $SSP$ASLR$PAX$HARDENED_TMP$WARNINGS$MISC$BLOWFISH \
    128129                 --stringparam timezone $TIMEZONE \
    129130                 --stringparam page $PAGE \
  • common/libs/func_validate_configs.sh

    rc1f28d5 rd035526  
    3232  # BOOK Settings by book
    3333  local -r   LFS_book="$BOOK_common BLFS_TOOL"
    34   local -r  HLFS_book="$BOOK_common BLFS_TOOL MODEL KERNEL GRSECURITY_HOST"
     34  local -r HLFS_added="SET_SSP SET_ASLR SET_PAX SET_HARDENED_TMP SET_WARNINGS \
     35                       SET_MISC SET_BLOWFISH"
     36  local -r  HLFS_book="$BOOK_common BLFS_TOOL MODEL KERNEL GRSECURITY_HOST $HLFS_added"
    3537  local -r  CLFS_book="$BOOK_common BLFS_TOOL METHOD $BOOK_clfsX TARGET32 BOOT_CONFIG"
    3638  local -r CLFS2_book="$BOOK_common BLFS_TOOL        $BOOK_clfsX"
  • jhalfs

    rc1f28d5 rd035526  
    112112INSTALL_LOG=${INSTALL_LOG:-n}
    113113CLEAN=${CLEAN:=n}
     114SET_SSP=${SET_SSP:=n}
     115SET_ASLR=${SET_ASLR:=n}
     116SET_PAX=${SET_PAX:=n}
     117SET_HARDENED_TMP=${SET_HARDENED_TMP:=n}
     118SET_WARNINGS=${SET_WARNINGS:=n}
     119SET_MISC=${SET_MISC:=n}
     120SET_BLOWFISH=${SET_BLOWFISH:=n}
    114121
    115122# Book surces envars
Note: See TracChangeset for help on using the changeset viewer.