diff options
author | pyllyukko <pyllyukko AT maimed dot org> | 2013-02-18 00:10:14 -0600 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2013-02-22 22:27:45 -0600 |
commit | ea6d780f59e9c947cfe6feffc121927b135ad933 (patch) | |
tree | 4e8234315c7fc1e35b906cc04f93bf515780f62d /system/gradm/doinst.sh | |
parent | 1f6e7facf0d059f385cf38b73da10d674f2ec330 (diff) | |
download | slackbuilds-ea6d780f59e9c947cfe6feffc121927b135ad933.tar.gz |
system/gradm: Added (Grsecurity Administration Utility)
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'system/gradm/doinst.sh')
-rw-r--r-- | system/gradm/doinst.sh | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/system/gradm/doinst.sh b/system/gradm/doinst.sh new file mode 100644 index 0000000000..2f09e5c808 --- /dev/null +++ b/system/gradm/doinst.sh @@ -0,0 +1,16 @@ +config() { + NEW="$1" + OLD="$(dirname $NEW)/$(basename $NEW .new)" + # If there's no config file by that name, mv it over: + if [ ! -r $OLD ]; then + mv $NEW $OLD + elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then + # toss the redundant copy + rm $NEW + fi + # Otherwise, we leave the .new copy for the admin to consider... +} + +config etc/grsec/learn_config.new +config etc/grsec/policy.new + |