Changeset 102
- Timestamp:
- 10/31/07 14:38:32
(1 year ago)
- Author:
- jjarrett
- Message:
added STIG modification scripts into clip rpm
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r85 |
r102 |
|
| 48 | 48 | /usr/share/clip/wrappers/scripts |
|---|
| 49 | 49 | /usr/share/clip/man/man8/xar.8 |
|---|
| | 50 | /usr/share/clip/scripts/stig-fix |
|---|
| 50 | 51 | /etc/security/pam_env.conf |
|---|
| 51 | 52 | /%{_lib}/security/pam_tally3.so |
|---|
| r76 |
r102 |
|
| 9 | 9 | cp /usr/src/redhat/RPMS/$ARCH/clip-$VERSION-$RELEASE.$ARCH.rpm RPM/ |
|---|
| 10 | 10 | cp /usr/src/redhat/SRPMS/clip-$VERSION-$RELEASE.src.rpm RPM/ |
|---|
| | 11 | |
|---|
| | 12 | sha1sum RPM/*.rpm > SHA1_$ARCH.txt |
|---|
| | 13 | |
|---|
| r54 |
r102 |
|
| 11 | 11 | test -d $(DESTDIR)$(SHAREDIR)/wrappers || install -m 755 -d \ |
|---|
| 12 | 12 | $(DESTDIR)$(SHAREDIR)/wrappers |
|---|
| 13 | | #install -m 644 *.conf $(DESTDIR)$(SYSCONFDIR) |
|---|
| | 13 | test -d $(DESTDIR)$(SHAREDIR)/scripts/ || install -m 755 -d \ |
|---|
| | 14 | $(DESTDIR)$(SHAREDIR)/scripts |
|---|
| | 15 | test -d $(DESTDIR)$(SHAREDIR)/scripts/stig-fix || install -m 755 -d \ |
|---|
| | 16 | $(DESTDIR)$(SHAREDIR)/scripts/stig-fix |
|---|
| | 17 | test -d $(DESTDIR)$(SHAREDIR)/scripts/stig-fix/cat1 || install -m 755 -d \ |
|---|
| | 18 | $(DESTDIR)$(SHAREDIR)/scripts/stig-fix/cat1 |
|---|
| | 19 | test -d $(DESTDIR)$(SHAREDIR)/scripts/stig-fix/cat2 || install -m 755 -d \ |
|---|
| | 20 | $(DESTDIR)$(SHAREDIR)/scripts/stig-fix/cat2 |
|---|
| | 21 | test -d $(DESTDIR)$(SHAREDIR)/scripts/stig-fix/cat3 || install -m 755 -d \ |
|---|
| | 22 | $(DESTDIR)$(SHAREDIR)/scripts/stig-fix/cat3 |
|---|
| | 23 | # test -d *.conf || install -m 644 *.conf \ |
|---|
| | 24 | #$(DESTDIR)$(SYSCONFDIR) |
|---|
| 14 | 25 | |
|---|
| 15 | 26 | # Install scripts and data directories |
|---|
| … | … | |
| 22 | 33 | install -m 644 wrappers/wrapper.c $(DESTDIR)$(SHAREDIR)/wrappers |
|---|
| 23 | 34 | |
|---|
| | 35 | # Install scripts |
|---|
| | 36 | install -m 700 stig-fix/run-fixes.sh $(DESTDIR)$(SHAREDIR)/scripts/stig-fix |
|---|
| | 37 | install -m 700 stig-fix/cat1/*.sh $(DESTDIR)$(SHAREDIR)/scripts/stig-fix/cat1 |
|---|
| | 38 | install -m 700 stig-fix/cat2/*.sh $(DESTDIR)$(SHAREDIR)/scripts/stig-fix/cat2 |
|---|
| | 39 | install -m 700 stig-fix/cat3/*.sh $(DESTDIR)$(SHAREDIR)/scripts/stig-fix/cat3 |
|---|
| | 40 | |
|---|
| 24 | 41 | # Patch installer |
|---|
| 25 | 42 | perl -pe s!--BASE--!$(PREFIX)/share! < $(INSTALLER).in > \ |
|---|
| r64 |
r102 |
|
| 55 | 55 | } |
|---|
| 56 | 56 | |
|---|
| | 57 | # Install a collection of scripts to make CLIP |
|---|
| | 58 | # STIG-compliant. |
|---|
| | 59 | # Since these scripts are not likely to be found on the system, |
|---|
| | 60 | # cp and not Copy() is used to install these files. |
|---|
| | 61 | InstallStig() { |
|---|
| | 62 | for d in $(ls -R STIGFIXDIR); do |
|---|
| | 63 | cp -r $d /usr/share/clip/scripts/stig-fix &2>/dev/null |
|---|
| | 64 | done |
|---|
| | 65 | } |
|---|
| | 66 | |
|---|
| | 67 | # Run the scripts installed in InstallStig. |
|---|
| | 68 | # This function assumes that a file named run-fixes.sh has been installed |
|---|
| | 69 | # in STIGFIXDIR, and is executable by root; this happens in InstallStig. |
|---|
| | 70 | # run-fixes.sh is used to launch the individual scripts. |
|---|
| | 71 | RunStigFixes() { |
|---|
| | 72 | if [ -x $STIGFIXDIR/run-fixes.sh ]; then |
|---|
| | 73 | echo "Running STIG fix script." |
|---|
| | 74 | $STIGFIXDIR/run-fixes.sh |
|---|
| | 75 | else |
|---|
| | 76 | echo "Could not locate STIG fix script." |
|---|
| | 77 | fi |
|---|
| | 78 | } |
|---|
| | 79 | |
|---|
| | 80 | |
|---|
| 57 | 81 | cat <<EOM |
|---|
| 58 | 82 | Certifiable Linux Integration Platform Installation Log |
|---|
| … | … | |
| 67 | 91 | InstallPam |
|---|
| 68 | 92 | InstallMan |
|---|
| | 93 | InstallStig |
|---|
| | 94 | RunStigFixes |
|---|
Download in other formats:
* Generating other formats may take time.