summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Väth <martin@mvath.de>2016-02-20 09:05:20 +0100
committerMartin Väth <martin@mvath.de>2016-02-20 09:05:20 +0100
commit886102b76fc82b44e363833c222f984ecd5f09c6 (patch)
tree4bd34fb063d5f3289edd075fdddb9376f8f50f94 /app-admin/checksec/files
parentapp-admin/checksec: Fix USE=vanilla. Install provided manpage, completion (diff)
downloadmv-886102b76fc82b44e363833c222f984ecd5f09c6.tar.gz
mv-886102b76fc82b44e363833c222f984ecd5f09c6.tar.bz2
mv-886102b76fc82b44e363833c222f984ecd5f09c6.zip
app-admin/checksec: Version bump, use upstream mechanisms, add test
Diffstat (limited to 'app-admin/checksec/files')
-rw-r--r--app-admin/checksec/files/_checksec38
-rw-r--r--app-admin/checksec/files/path.patch10
2 files changed, 0 insertions, 48 deletions
diff --git a/app-admin/checksec/files/_checksec b/app-admin/checksec/files/_checksec
deleted file mode 100644
index 35b3a6ae..00000000
--- a/app-admin/checksec/files/_checksec
+++ /dev/null
@@ -1,38 +0,0 @@
-#compdef checksec
-local curcontext="$curcontext" state state_descr line
-typeset -A opt_args
-_arguments -C : \
-'--version[print version]' \
-{'(--help)-h','(-h)--help'}'[print help]' \
-'-d[debug mode]' \
-{'(--update)--upgrade','(--upgrade)--update'}'[update program]' \
-{'(--format --output)-o','(-o --output)--format','(-o --format)--output'}'[use specified output format]:output format:->format' \
-{'(--dir)-d','(-d)--dir'}'[\[-v\] check specified DIR]:vdir:->vdir' \
-'--file[check specified FILE]:file to check:_files' \
-'--proc[check specifiec process NAME)]:process name:->procname' \
-'--proc-all[check all processes]' \
-'--proc-libs[check specified ID'\''s process libs)]:process ID to check: _pids' \
-'--kernel[check kernel]' \
-'--fortify-file[check specified FILE for fortify)]:file for fortify:_files' \
-'--fortify-proc[check specied ID'\''s process for fortify)]:process ID for fortify: _pids'
-local ret=$?
-case $state in
-format)
- local formats
- formats=(
- 'cli:use cli output format'
- 'csv:use csv output format'
- 'xml:use xml output format'
- 'json:use json output format'
- )
- _describe -t formats 'output format' formats
- ret=$?;;
-procname)
- compadd "$expl[@]" ${${${${(f)"$(_call_program processes-names ps ${${EUID/(#s)0(#e)/xa}//[0-9]#/}ho command 2> /dev/null)"//[][\(\)]/}:#(ps|COMMAND|-*)}%%\ *}:t}
- ret=$?;;
-vdir)
- compadd "$expl[@]" -v
- _files -/
- ret=0;;
-esac
-return ret
diff --git a/app-admin/checksec/files/path.patch b/app-admin/checksec/files/path.patch
deleted file mode 100644
index 18344610..00000000
--- a/app-admin/checksec/files/path.patch
+++ /dev/null
@@ -1,10 +0,0 @@
---- 1/checksec
-+++ 1/checksec
-@@ -59,6 +59,7 @@
-
- #set global lang to C
- export LC_ALL="C"
-+export PATH="${PATH}:/usr/sbin:/sbin" # for sysctl
-
- # global vars
- debug=false