LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 01-05-2006, 05:12 AM   #1
vishalbutte
Member
 
Registered: Dec 2005
Posts: 80

Rep: Reputation: 15
Question kernel data structures


what is kernel data structure? How we can implement it?
how does it stores data?
 
Old 01-05-2006, 05:20 AM   #2
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,506

Rep: Reputation: 360Reputation: 360Reputation: 360Reputation: 360
homework ?
 
Old 01-05-2006, 10:59 AM   #3
vishalbutte
Member
 
Registered: Dec 2005
Posts: 80

Original Poster
Rep: Reputation: 15
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
administrator.
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.
 
Old 01-05-2006, 11:26 AM   #4
graemef
Senior Member
 
Registered: Nov 2005
Location: Hanoi
Distribution: Fedora 13, Ubuntu 10.04
Posts: 2,379

Rep: Reputation: 148Reputation: 148
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.
  1. Write a program that obtains a hash of the files you are concerned with.
  2. Write a details of the file and its hash to a root file
  3. Write a program that read in the details of the hash file
  4. Check that the hash is consistent
  5. 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.

graeme.
 
Old 01-05-2006, 11:32 AM   #5
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,506

Rep: Reputation: 360Reputation: 360Reputation: 360Reputation: 360
Quote:
someone told me to go for kernel data structure .
Find that guy, and ask him why he suggested that !
This is far too vague ...
It looks like he wants the O/S to check file integrity by storing a hash internally, is this what you need ?
 
Old 01-05-2006, 02:23 PM   #6
vishalbutte
Member
 
Registered: Dec 2005
Posts: 80

Original Poster
Rep: Reputation: 15
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 ).

=========================================================================

wrote by jlliagre

It looks like he wants the O/S to check file integrity by storing a hash internally, is this what you need ?

========================================================================

whatever code i am writing is directly writing in the linux kernel 2.6.10
 
Old 01-05-2006, 02:26 PM   #7
vishalbutte
Member
 
Registered: Dec 2005
Posts: 80

Original Poster
Rep: Reputation: 15
TO graemef
I am writing the same program but inseted of calling it as program
i am directly changing the linux kernel 2.6.10 to satisfy me needs.
 
Old 01-05-2006, 02:39 PM   #8
graemef
Senior Member
 
Registered: Nov 2005
Location: Hanoi
Distribution: Fedora 13, Ubuntu 10.04
Posts: 2,379

Rep: Reputation: 148Reputation: 148
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.

graeme.
 
Old 01-05-2006, 03:19 PM   #9
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,506

Rep: Reputation: 360Reputation: 360Reputation: 360Reputation: 360
Having file integrity checked by the kernel is an OpenSolaris ZFS feature, perhaps implementing it to Linux would help you in your project ...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Data structures - Trees rahul_kulkarni Programming 1 05-16-2005 05:45 AM
regarding structures eshwar_ind Programming 2 04-25-2005 09:18 AM
perl->large data structures->copying lackluster Programming 0 08-20-2003 10:27 AM
java data structures tunedLow Programming 4 12-17-2002 11:51 AM
Are there man pages for data structures? concoran Programming 3 07-05-2002 03:07 PM


All times are GMT -5. The time now is 10:37 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration