checksec: update to 2.1.0.
This commit is contained in:
parent
2dbaca107b
commit
cbab0eee04
2 changed files with 3 additions and 53 deletions
|
@ -1,50 +0,0 @@
|
|||
--- checksec.orig 2019-07-24 11:58:00.684761937 +0200
|
||||
+++ checksec 2019-07-24 11:57:40.744760376 +0200
|
||||
@@ -1568,11 +1568,11 @@ chk_proc_all () {
|
||||
(( currpid++ ))
|
||||
name=$(head -1 "${N}"/status | cut -b 7-)
|
||||
if [[ $format == "cli" ]]; then
|
||||
- printf "%16s" "${N}ame"
|
||||
+ printf "%16s" "${name}"
|
||||
printf "%7d " "${N}"
|
||||
else
|
||||
echo_message "" "${N}," " <proc pid='${N}'" " \"${N}\": { "
|
||||
- echo_message "" "${N}ame," " name='${N}ame'" "\"name\":\"${N}ame\","
|
||||
+ echo_message "" "${name}," " name='${name}'" "\"name\":\"${name}\","
|
||||
fi
|
||||
proccheck "${N}"
|
||||
if [[ "${lastpid}" == "${currpid}" ]]; then
|
||||
@@ -1616,11 +1616,11 @@ chk_proc () {
|
||||
if [[ -d "${N}" ]] ; then
|
||||
name=$(head -1 "${N}"/status | cut -b 7-)
|
||||
if [[ $format == "cli" ]]; then
|
||||
- printf "%16s" "${N}ame"
|
||||
+ printf "%16s" "${name}"
|
||||
printf "%7d " "${N}"
|
||||
else
|
||||
echo_message "" "${N}," "<proc pid='${N}'" " \"${N}\": {"
|
||||
- echo_message "" "${N}ame," " name='${N}ame'" "\"name\":\"${N}ame\","
|
||||
+ echo_message "" "${name}," " name='${name}'" "\"name\":\"${name}\","
|
||||
fi
|
||||
if [[ ! -r "${N}/exe" ]] ; then
|
||||
if ! (root_privs) ; then
|
||||
@@ -1664,10 +1664,10 @@ chk_proc_libs () {
|
||||
if [[ -d "${N}" ]] ; then
|
||||
name=$(head -1 "${N}/status" | cut -b 7-)
|
||||
if [[ "${format}" == "cli" ]]; then
|
||||
- printf "%16s" "${N}ame"
|
||||
+ printf "%16s" "${name}"
|
||||
printf "%7d " "${N}"
|
||||
else
|
||||
- echo_message "" "${N}ame," "<proc name='${N}ame'" "{ \"proc\": { \"name\":\"${N}ame\", "
|
||||
+ echo_message "" "${name}," "<proc name='${name}'" "{ \"proc\": { \"name\":\"${name}\", "
|
||||
echo_message "" "${N}," " pid='${N}'" "\"pid\":\"${N}\","
|
||||
fi
|
||||
# read permissions?
|
||||
@@ -1906,4 +1906,4 @@ for variable in CHK_DIR CHK_FILE CHK_FOR
|
||||
done
|
||||
|
||||
# call the function
|
||||
-${CHK_FUNCTION}
|
||||
\ No newline at end of file
|
||||
+${CHK_FUNCTION}
|
|
@ -1,7 +1,7 @@
|
|||
# Template file for 'checksec'
|
||||
pkgname=checksec
|
||||
version=2.0.1
|
||||
revision=2
|
||||
version=2.1.0
|
||||
revision=1
|
||||
archs=noarch
|
||||
wrksrc="checksec.sh-${version}"
|
||||
depends="binutils"
|
||||
|
@ -10,7 +10,7 @@ maintainer="Leah Neukirchen <leah@vuxu.org>"
|
|||
license="BSD-3-Clause"
|
||||
homepage="https://github.com/slimm609/checksec.sh"
|
||||
distfiles="https://github.com/slimm609/checksec.sh/archive/${version}.tar.gz"
|
||||
checksum=16ac66217cfdced5e07ce193826cd8c92bd9e1d6048511134149270d39b4ee44
|
||||
checksum=e50a92a2bb22d40d1aa297cd011209ab5ad0b620236dfb9a7afe4c29744260a9
|
||||
|
||||
do_install() {
|
||||
vbin checksec
|
||||
|
|
Loading…
Reference in a new issue