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.
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.