![]() |
suid bit / setuid() does not work?
Take the simplest program which executes command as root:
Code:
/dev/shm/suid # cat setuid.c Code:
/dev/shm/suid # gcc setuid.c -o /usr/bin/setuid Code:
/dev/shm/suid # whoami Code:
~ $ mount|grep nosuid | grep usr |
Re: suid bit / setuid() does not work?
You need to give right capas to the binary, for example with refhashlist or putting binary inside installable deb package with the capas.
|
Re: suid bit / setuid() does not work?
Please give the link to manual about refhashlist or how to build deb package with setuid capability.
|
Re: suid bit / setuid() does not work?
Quote:
http://maemo.cloud-7.de/HARM/N9/open...h/develsh.diff main() basicly just calls setuid and setgid before opening shell. You only need the right .aegis file to gain the capas. With opensh you can test your selfbuild binary with: opensh -c 'aegis-exec -c -a CAP::setuid /usr/bin/setuid' For refhashlist you just use google :) |
Re: suid bit / setuid() does not work?
Excellent example on the Power of aegis (I hate it lol)
|
Re: suid bit / setuid() does not work?
For longer manual http://mirror.thecust.net/meego_1.2_..._security.html
|
All times are GMT. The time now is 10:35. |
vBulletin® Version 3.8.8