ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
i am required to keep database of hash of files to ensure integriety.
someone told me to go for kernel data structure .
again i need to secure the databse also from users other than root
This part of my final year engg. project.
So guys plz help me. My project design is struck there.
So plz help me out !!1
Thankx in advance.
I'd suggest that you ask the person who suggested "Kernel Data Structures" what they were thinking of, and which data structures in particular. However you can solve your problem without having to play around with them.
Write a program that obtains a hash of the files you are concerned with.
Write a details of the file and its hash to a root file
Write a program that read in the details of the hash file
Check that the hash is consistent
Flag any file that have a different hash
You'll need to determine how to generate the hash but an MD5 would be one approach.
ok i will go somewhat details in my project.
i want give access to files only that are trusted ( keeping hash and checking it bf executing it or opening or writing to it)
Just to avoid executation of tampered files.
Now how to maintain the database?
So i need to use kernel data structures?
The database also shud be also secured ( in term of access rights ).
First get the concept working before worrying about the kernel.
Next how will the integrity actually be checked? How will you know that the use who wishes to open the file can be trusted? I think this needs to be thought about before you jump into tweaking the kernel. Because you appear to be talking about something beyond the normal file permissions.