A.)Assume that /abc/file_one is a program which attempts to create a file in /ab
ID: 3801780 • Letter: A
Question
A.)Assume that /abc/file_one is a program which attempts to create a file in /abc called file_x. If process B uses the execl() system call to load and run /abc/file_one , can process B succeed in creating file_x in /abc ?? Explain.
B. Can process A send process E a termination signal ? Explain.
C. Can process E send process C a termination signal ? Explain.
D. Can process B write on /abc/file_one ? Explain
E. Can process C write on /abc/file_two ? Explain
1. Consider the following details regarding a collection of UNIX objects: Process A Directory uid 0 Euid 0 Egid 1 Permissions d rwx r-x r-x Directory abc Process B Euid 300 uid 310 gid 20 Egid 20 Permissions d rwx r-x File /abc/ one Process C uid 310 Euid 310 gid 20 Egid 20 Permissions File /abc/ two Process D uid 310 Euid 320 gid 30 Egid 30 Permissions File /abc/ three Process E Euid 330 uid 330 gid 20 Egid 20 Permissions rW rWExplanation / Answer
A) Yes Process B will succeed in creating file_x in /abc. As we can see from the access list of the process B it has the all three (read, write and execute ) access on the directory /abc. The Access list is given as rwx r-x --- as we can the first access rights are for owner. So process B will succeed.
B) No Process A can not send a termination signal to process E because as we can see from the access list of process E, it has given read, write access to owner , read access to group members and read, write access to others. As we can see both process A and E are in different groups and from the access list we can see others do not have execution rights, So Process A can not send termination signal to process E.
C) Yes Process E can send a termination signal to process C as we can see from the access list of process C, it provides the all three read, write and execution access for group member and as we can see both the process C and E are in same group, so it can send a termination signal to process C.
D) Yes process B can write on /abc/file_one. As we can see from the access list of process B it has the write acces to the directory /abc so it is able to write in the directory /abc but that does not mean it is able to write in the file /abc/file_one but as we can process B has the same group id as of file /abc/file_one and as we can see from the access list of /abc/file_one all group has all three access rights that's why process B can write on /abc/file_one.
E) Yes process C can write on abc/file_two. As we can see from the access list of /abc/file_two it has given the access to others for read and write ,so process C can write on /abc/file_two
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.