ReviewEssays.com - Term Papers, Book Reports, Research Papers and College Essays
Search

Minix Security

Essay by   •  December 1, 2010  •  Study Guide  •  437 Words (2 Pages)  •  724 Views

Essay Preview: Minix Security

Report this essay
Page 1 of 2

To Design and implement the set- Random UID mechanism.

Lab Report .

Step 1.

The unused sticky bit in the permission field of the I-node data structure (defined in /usr/src/fs/inode.h) is used. This sticky bit is disabled in the usr/include/minix/const.h

To enable set random uid mechanism :

We have to enable the sticky bit , say, for a file

chmod +t filename

I made a file fd.c in which I was editing another text file named tested txt.

Both fd and tested.txt are owned by a normal user t2.

chmod +t fd

Following is the code for the program, with permissions 765 which can write malicious data into a text file tested.txt

-----------------------------------------------------------------------------------------------------------

fd.c

#include

#include

#include

#include

#include

#include

main(void)

{

int fd;

setuid(getuid());

/*setgid(getgid());*/

fd=open(ÐŽ§/cs/tested.txtЎЁ, O_RDWR | O_APPEND);

if (fork())

{

close(fd);

exit(0);

}

else

{

write (fd, ÐŽ§n yes I can write

...

...

Download as:   txt (1.9 Kb)   pdf (54.4 Kb)   docx (9.4 Kb)  
Continue for 1 more page »
Only available on ReviewEssays.com
Citation Generator

(2010, 12). Minix Security. ReviewEssays.com. Retrieved 12, 2010, from https://www.reviewessays.com/essay/Minix-Security/17353.html

"Minix Security" ReviewEssays.com. 12 2010. 2010. 12 2010 <https://www.reviewessays.com/essay/Minix-Security/17353.html>.

"Minix Security." ReviewEssays.com. ReviewEssays.com, 12 2010. Web. 12 2010. <https://www.reviewessays.com/essay/Minix-Security/17353.html>.

"Minix Security." ReviewEssays.com. 12, 2010. Accessed 12, 2010. https://www.reviewessays.com/essay/Minix-Security/17353.html.