reg a process's ruid and euid

divyesh shah divs_83 at yahoo.com
Sat Feb 18 15:04:30 PST 2006


I have a system call which should kill all processes
for a given uid. Now, I am confused about which uid to
use(real or effecctive) of the processes when killing
them.
Example scenario:
userids A, B, C
A is super-user(root) so using my system call he can
kill  processes of any other user.
Also, user C is running a process with ruid C but euid
B(giving him possibly higher privilege). 
Now if A calls my system call asking to kill all
processes of uid B, should my system call also kill
the process started by C but running as B.

Thanks,
Divyesh Shah.

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


More information about the freebsd-questions mailing list