Fix SUID for less and pg

Only file access is possible in that case.
This commit is contained in:
Andrea Cardaci 2018-08-24 12:25:57 +02:00
parent e310b1f565
commit 41bd75145c
2 changed files with 6 additions and 5 deletions

View File

@ -13,8 +13,8 @@ functions:
- code: |
sudo less /etc/profile
!/bin/sh
suid-limited:
suid-enabled:
- code: |
./less /etc/profile
./less file_to_read
!/bin/sh
---

View File

@ -10,8 +10,9 @@ functions:
- code: |
sudo pg /etc/profile
!/bin/sh
suid-limited:
- code: |
./pg /etc/profile
suid-enabled:
- description:
code: |
./pg file_to_read
!/bin/sh
---