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: | - code: |
sudo less /etc/profile sudo less /etc/profile
!/bin/sh !/bin/sh
suid-limited: suid-enabled:
- code: | - code: |
./less /etc/profile ./less file_to_read
!/bin/sh !/bin/sh
--- ---

View File

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