public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Matt Turner" <mattst88@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/releng:master commit in: tools-hardened/
Date: Sat, 31 Jul 2021 19:41:36 +0000 (UTC)	[thread overview]
Message-ID: <1627760474.13ab05785a432bf6f14873e64f293ed87c95c077.mattst88@gentoo> (raw)

commit:     13ab05785a432bf6f14873e64f293ed87c95c077
Author:     Matt Turner <mattst88 <AT> gentoo <DOT> org>
AuthorDate: Sat Jul 31 01:24:26 2021 +0000
Commit:     Matt Turner <mattst88 <AT> gentoo <DOT> org>
CommitDate: Sat Jul 31 19:41:14 2021 +0000
URL:        https://gitweb.gentoo.org/proj/releng.git/commit/?id=13ab0578

tools-hardened: Remove

Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org>

 tools-hardened/clean.sh                            |  6 --
 tools-hardened/common.sh                           | 61 --------------
 tools-hardened/run-armv7a.sh                       | 96 ----------------------
 .../stage1-armv7a_hardfp-hardened.conf.template    |  7 --
 .../stage2-armv7a_hardfp-hardened.conf.template    |  7 --
 .../stage3-armv7a_hardfp-hardened.conf.template    |  7 --
 6 files changed, 184 deletions(-)

diff --git a/tools-hardened/clean.sh b/tools-hardened/clean.sh
deleted file mode 100755
index 916c4eb4..00000000
--- a/tools-hardened/clean.sh
+++ /dev/null
@@ -1,6 +0,0 @@
-#!/bin/bash
-
-# This just removes the temporary conf err and log
-# files generated during a run
-
-rm -f *conf *err *log

diff --git a/tools-hardened/common.sh b/tools-hardened/common.sh
deleted file mode 100644
index 9a0a03af..00000000
--- a/tools-hardened/common.sh
+++ /dev/null
@@ -1,61 +0,0 @@
-#!/bin/bash
-
-source /etc/catalyst/catalyst.conf
-
-mydate=`date +%Y%m%d`
-
-
-undo_grsec() {
-  [[ -d /proc/sys/kernel/grsecurity ]] || return
-  for i in /proc/sys/kernel/grsecurity/chroot_* ; do
-    echo 0 > $i
-  done
-}
-
-
-banner() {
-cat << EOF | tee -a zzz.log > stage$1-$2-systemd.log
-
-************************************************************************
-*    stage$1-$2-systemd
-************************************************************************"
-
-EOF
-}
-
-
-do_stages() {
-  local arch=$1
-
-  for s in 1 2 3; do
-    local tgpath="${storedir}/builds/systemd/${arch}"
-    local target="stage${s}-${arch}-systemd-${mydate}.tar.bz2"
-    local tglink="stage${s}-${arch}-systemd.tar.bz2"
-
-    if [[ ! -f "${tgpath}/${tglink}" ]]; then
-       touch stage${s}-${arch}-systemd.log
-       echo "!!! ${tglink} at ${tgpath} doesn't exist" \
-         | tee -a zzz.log \
-         > stage${s}-${arch}-systemd.err
-       return 1
-    fi
-
-    banner ${s} ${arch}
-    catalyst -f stage${s}-${arch}-systemd.conf \
-      | tee -a zzz.log \
-      > stage${s}-${arch}-systemd.log \
-      2> stage${s}-${arch}-systemd.err
-
-    if [[ -f "${tgpath}/${target}" ]]; then
-      rm -f "${tgpath}/${tglink}"
-      ln -s ${target} "${tgpath}/${tglink}"
-    else
-      echo "!!! ${target} was not generated" \
-        | tee -a zzz.log \
-        >stage${s}-${arch}-systemd.err
-      return 1
-    fi
-  done
-
-  return 0
-}

diff --git a/tools-hardened/run-armv7a.sh b/tools-hardened/run-armv7a.sh
deleted file mode 100755
index 8daccdf8..00000000
--- a/tools-hardened/run-armv7a.sh
+++ /dev/null
@@ -1,96 +0,0 @@
-#!/bin/bash
-
-source /etc/catalyst/catalyst.conf
-
-mydate=`date +%Y%m%d`
-
-prepare_confs() {
-  local arch=$1
-  local flavor=$2
-
-  for s in 1 2 3; do
-    cat stage${s}-${arch}_hardfp-${flavor}.conf.template | \
-      sed -e "s/\(^version_stamp.*$\)/\1-${mydate}/" >  stage${s}-${arch}_hardfp-${flavor}.conf
-  done
-}
-
-banner() {
-cat << EOF | tee -a zzz.log > stage$1-$2_hardfp-$3.log
-
-************************************************************************
-*    stage$1-$2_hardfp-$3
-************************************************************************"
-
-EOF
-}
-
-
-do_stages() {
-  local arch=$1
-  local flavor=$2
-
-  for s in 1 2 3; do
-    local tgpath="${storedir}/builds/${flavor}/${arch}"
-    local target="stage${s}-${arch}_hardfp-${flavor}-${mydate}.tar.bz2"
-    local tglink="stage${s}-${arch}_hardfp-${flavor}.tar.bz2"
-
-    if [[ ! -f "${tgpath}/${tglink}" ]]; then
-       touch stage${s}-${arch}_hardfp-${flavor}.log
-       echo "!!! ${target} at ${tgpath} doesn't exit" \
-         | tee -a zzz.log \
-         > stage${s}-${arch}_hardfp-${flavor}.err
-       return 1
-    fi
-
-    banner ${s} ${arch} ${flavor}
-    catalyst -f stage${s}-${arch}_hardfp-${flavor}.conf \
-      | tee -a zzz.log \
-      > stage${s}-${arch}_hardfp-${flavor}.log \
-      2> stage${s}-${arch}_hardfp-${flavor}.err
-
-    if [[ -f "${tgpath}/${target}" ]]; then
-      rm -f "${tgpath}/${tglink}"
-      ln -s ${target} "${tgpath}/${tglink}"
-    else
-      echo "!!! ${target} was not generated" \
-        | tee -a zzz.log \
-        >stage${s}-${arch}_hardfp-${flavor}.err
-      return 1
-    fi
-  done
-
-  return 0
-}
-
-
-#
-# approximate timings:
-#
-# catalyst -s current	3 minutes
-# catalyst -f stage1  130 minutes
-#
-
-main() {
-  >zzz.log
-
-  catalyst -s current | tee -a zzz.log >snapshot.log 2>snapshot.err
-
-  for arch in armv7a; do
-    for flavor in hardened; do
-      prepare_confs ${arch} ${flavor}
-    done
-  done
-  
-  for arch in armv7a; do
-    for flavor in hardened; do
-      do_stages ${arch} ${flavor}
-      ret=$?
-      if [[ $? == 1 ]]; then
-         echo "FAILURE at ${arch} ${flavor}" | tee zzz.log
-         return 1
-      fi
-    done
-  done
-}
-
-main $1 &

diff --git a/tools-hardened/stage1-armv7a_hardfp-hardened.conf.template b/tools-hardened/stage1-armv7a_hardfp-hardened.conf.template
deleted file mode 100644
index c21db83d..00000000
--- a/tools-hardened/stage1-armv7a_hardfp-hardened.conf.template
+++ /dev/null
@@ -1,7 +0,0 @@
-subarch: armv7a_hardfp
-target: stage1
-version_stamp: hardened
-rel_type: hardened/armv7a
-profile: hardened/linux/arm/armv7a
-snapshot: current
-source_subpath: hardened/armv7a/stage3-armv7a_hardfp-hardened

diff --git a/tools-hardened/stage2-armv7a_hardfp-hardened.conf.template b/tools-hardened/stage2-armv7a_hardfp-hardened.conf.template
deleted file mode 100644
index 30110c1a..00000000
--- a/tools-hardened/stage2-armv7a_hardfp-hardened.conf.template
+++ /dev/null
@@ -1,7 +0,0 @@
-subarch: armv7a_hardfp
-target: stage2
-version_stamp: hardened
-rel_type: hardened/armv7a
-profile: hardened/linux/arm/armv7a
-snapshot: current
-source_subpath: hardened/armv7a/stage1-armv7a_hardfp-hardened

diff --git a/tools-hardened/stage3-armv7a_hardfp-hardened.conf.template b/tools-hardened/stage3-armv7a_hardfp-hardened.conf.template
deleted file mode 100644
index b52059b8..00000000
--- a/tools-hardened/stage3-armv7a_hardfp-hardened.conf.template
+++ /dev/null
@@ -1,7 +0,0 @@
-subarch: armv7a_hardfp
-target: stage3
-version_stamp: hardened
-rel_type: hardened/armv7a
-profile: hardened/linux/arm/armv7a
-snapshot: current
-source_subpath: hardened/armv7a/stage2-armv7a_hardfp-hardened


             reply	other threads:[~2021-07-31 19:41 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-31 19:41 Matt Turner [this message]
  -- strict thread matches above, loose matches on Subject: below --
2016-03-04  2:28 [gentoo-commits] proj/releng:master commit in: tools-hardened/ Anthony G. Basile
2016-03-02 20:41 Anthony G. Basile
2013-01-19 23:21 Anthony G. Basile
2013-01-07  3:14 Anthony G. Basile
2013-01-07  2:25 Anthony G. Basile
2013-01-05 13:44 Anthony G. Basile

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1627760474.13ab05785a432bf6f14873e64f293ed87c95c077.mattst88@gentoo \
    --to=mattst88@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox