Question: The following code is the C source of the root owned SetUID - program securePasswd which has the file permission 4 7 5 5 .
The following code is the C source of the root owned SetUIDprogram "securePasswd" which has the file permission
When the regular user "seed" UID executes the program "securePasswd", what will be the UID and EUID of this process when "execve" system call being made?
Whether the program "securePasswd" is secure or not. Answer why or why not.
#include #include
void main
int fd; char v;
etcpasswd is an important system file,
and it is owned by root with permission
fd openetcpasswd ORDWR OAPPEND;
if fd
printfCannot open etcpasswd
;
exit;
setuidgetuid;
hneHanAus.ed d Instneture ERnroviouneintOnl ad
Dane A At
Quizzas Proviowl
:
vbinsh; v;
execvev v;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
