2018-05-27 19:17:14 +02:00
|
|
|
---
|
|
|
|
functions:
|
2018-10-05 19:55:38 +02:00
|
|
|
shell:
|
2018-09-07 01:00:01 +02:00
|
|
|
- code: watch -x sh -c 'reset; exec sh 1>&0 2>&0'
|
2018-10-05 19:55:38 +02:00
|
|
|
suid:
|
2018-07-16 15:01:50 +02:00
|
|
|
- description: This keeps the SUID privileges only if the `-x` option is present.
|
2018-09-07 01:00:01 +02:00
|
|
|
code: ./watch -x sh -c 'reset; exec sh 1>&0 2>&0'
|
2018-10-05 19:55:38 +02:00
|
|
|
sudo:
|
2018-09-07 01:00:01 +02:00
|
|
|
- code: sudo watch -x sh -c 'reset; exec sh 1>&0 2>&0'
|
2018-10-05 19:55:38 +02:00
|
|
|
limited-suid:
|
2018-09-07 01:00:01 +02:00
|
|
|
- code: ./watch 'reset; exec sh 1>&0 2>&0'
|
2018-05-27 19:17:14 +02:00
|
|
|
---
|