Skip to contentSkip to conversation

adding new lsm hooks

DISCUSSION umesh chandak 2 participants 4 messages Sep 15, 2005

lore
Share & tools
lore
#0 lore raw

hi
i want to add new lsm hooks in linux kernel.
Can anybody tell me ,what steps should i follow to do this. or a appropriate link .

                                  thank you!!!!!!!!!

__________________________________
Yahoo! Mail - PC Magazine Editors' Choice 2005
http://mail.yahoo.com

#1 lore raw
Quoted 4 lines · umesh chandak

hi
i want to add new lsm hooks in linux kernel.
Can anybody tell me ,what steps should i follow to do this. or a appropriate link .

What kind of hooks ?

I've been idling around the LSM hooks for quite a while and I never had the need to add any... So, I'm quite puzzled to know what kind of hooks do you need. :)

Regards

Signature · 7 lines
Emmanuel Fleury

Assistant Professor          | Office: B1-201
Computer Science Department, | Phone:  +45 96 35 72 23
Aalborg University,          | Mobile: +45 26 22 98 03
Fredriks Bajersvej 7E,       | E-mail: [email protected]
9220 Aalborg East, Denmark   | URL: www.cs.aau.dk/~fleury
#2 lore raw

respected sir ,
Thank you for reply.
Basically i want to add hooks at mac layer .But for time being as a practice i want to add new hooks of any type for playing purpose .so can you tell me a procedure or appropriate link

                 thank you !!!!!!                     
Quoted 9 lines · --- Emmanuel Fleury
Quoted 3 lines · umesh chandak

hi
i want to add new lsm hooks in linux kernel.
Can anybody tell me ,what steps should i follow to

do

Quoted 1 line

this. or a appropriate link .

What kind of hooks ?

Quoted 27 lines

I've been idling around the LSM hooks for quite a
while and
I never had the need to add any... So, I'm quite
puzzled to
know what kind of hooks do you need. :)

Regards

Signature · 18 lines
Emmanuel Fleury

Assistant Professor          | Office: B1-201
Computer Science Department, | Phone:  +45 96 35 72
23
Aalborg University,          | Mobile: +45 26 22 98
03
Fredriks Bajersvej 7E,       | E-mail:
[email protected]
9220 Aalborg East, Denmark   | URL:
www.cs.aau.dk/~fleury
-
To unsubscribe from this list: send the line
"unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at 
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

__________________________________
Yahoo! Mail - PC Magazine Editors' Choice 2005
http://mail.yahoo.com

#3 lore raw
Quoted 1 line · umesh chandak

respected sir ,

Hum, you should skip this or my ego will blow up.

Quoted 4 lines

Basically i want to add hooks at mac layer .But for time being as a practice i want to add new hooks of any type for playing purpose .so can you tell me a procedure or appropriate link

Sorry, but I don't see your point here...

You want to be able to restrict the access to a network card on the basis of the MAC address ?

But, why don't you consider using the socket_create (and more generally, the socket_* family) in place of adding new hooks ?

The point of a hook is to insert check-points to prevent people to access features/data on the system. I hardly see the mac layer as a feature/data by itself as it is part of "can I access network or not ?".

I might as well have missed your point, respected Sir (may I call you respected Sir ?). :)

Regards

Signature · 4 lines
Emmanuel Fleury

Elegance is not optional.
  -- Richard O'Keefe