Remove file-read and file-write from cp and mv

This commit is contained in:
Emilio Pinna 2018-09-05 17:38:32 +01:00
parent aab8e783ec
commit f2ab6a6283
2 changed files with 0 additions and 24 deletions

View File

@ -1,18 +1,6 @@
---
description: This can be used to copy and then read or write files from a restricted file systems or with elevated privileges.
functions:
file-write:
- code: |
LFILE=file_to_write
TF=$(mktemp)
echo "DATA" > $TF
cp $TF $LFILE
file-read:
- code: |
LFILE=file_to_read
TF=$(mktemp)
cp $LFILE $TF
cat $TF
suid-enabled:
- code: |
LFILE=file_to_write

View File

@ -1,18 +1,6 @@
---
description: This can be used to move and then read or write files from a restricted file systems or with elevated privileges.
functions:
file-write:
- code: |
LFILE=file_to_write
TF=$(mktemp)
echo "DATA" > $TF
mv $TF $LFILE
file-read:
- code: |
LFILE=file_to_read
TF=$(mktemp)
mv $LFILE $TF
cat $TF
suid-enabled:
- code: |
LFILE=file_to_write