TRL
TOP PAGETokyo Research LaboratoryEmploymentProjectsRelated InformationIBM Research
Japanese page is not available yet.

How to build RedHat Linux with stack protection



Preparations
  1. install the original RedHat 6.2 with server installation
  2. install the following packages as follows;
    for i in `cat rpmlist`; do rpm -ivh your-rpm-directory/$i; done
  3. build egcs-1.1.2
    1. install the egcs-1.1.2-30.src.rpm
      rpm -ivh egcs-1.1.2-30.src.rpm
    2. apply the spec patch and copy the patch file to /usr/src/redhat/SOURCES directory cd /usr/src/redhat/SPECS; patch -p0 < egcs.spec.patch
    3. build the egcs
      rpm -bb --buildpolicy redhat /usr/src/redhat/SPEC/egcs.spec
    4. install the built egcs system
      rpm -Uvh --force /usr/src/redhat/RPMS/i386/egcs-1.1.2-30p.i386.rpm
Build Steps
  1. upgrade glibc package to propolice version
    • install the source RPM
    • apply the spec patch and copy the file to /usr/src/redhat/SOURCES directory.
    • rpm -bb --target i686-redhat-linux /usr/src/redhat/SPECS/glibc....
    • install the created glibc package in /usr/src/redhat/RPMS/i686 directory
  2. make kernel with propolice protection
    • install the source RPM
    • apply the spec patch and copy the file to /usr/src/redhat/SOURCES directory.
    • rpm -bb --target i686-redhat-linux /usr/src/redhat/SPECS/kernel...
  3. build all packages with the command
    rpm --rebuild --buildpolicy redhat src_package_name
  4. The following packages must be build without buildpolicy option.
    • mkisofs-1.8-2.src.rpm
    • popt-1.4-1.src.rpm
    • usernet-1.0.9-2.src.rpm
    • xpilot-4.1.0-1.src.rpm
Change Log

Research home IBM home Order Privacy Legal Contact IBM
Last modified 5 May 2001