Skip to contentSkip to conversation

is there any plan to support BSD accept filter?

DISCUSSION KyoungSoo Park 3 participants 4 messages Jan 14, 2005 – Jan 16, 2005

Subsystems (2)
lore
Share & tools
lore
#2 lore raw

yes. I agree that maybe an ugly hack to put that in the kernel.
What I want to do is to support such feature leaving as little footprint
as possible in the kernel, but specify whatever flexible policy you want
in the user level. I'm not sure netfilter module is the right place because it seems I need to do packet by packet processing, but I want to deal with a little higher level than that as a start. (I'm not familar with netfilter, so please correct
me if I'm wrong.)

Anyway, thanks for your response.

KyoungSoo

Quoted 6 lines · Stephen Hemminger

If you want to do these kind of stateful hacks, why not build a netfilter module to do it?

#3 lore raw

Seems easy to do if you can muck with the security hooks. The selinux folkk already have a monopoly on all those hooks. Look at selinux and security_socket_accept() and how you can hook up to it. You probably wanna worry about security_socket_recvmsg() and security_socket_post_accept()
Dont ask me - look at the code and visit their docs. As a warning those hooks are pretty stupid (what a waste of potential) so you will have to sweat a little hacking them to maintain state.

cheers,
jamal

Quoted 25 lines · KyoungSoo Park

yes. I agree that maybe an ugly hack to put that in the kernel. What I want to do is to support such feature leaving as little footprint as possible in the kernel, but specify whatever flexible policy you want in the user level.
I'm not sure netfilter module is the right place because it seems I need to do packet by packet processing, but I want to deal with a little higher level than that as a start. (I'm not familar with netfilter, so please correct me if I'm wrong.)

Anyway, thanks for your response.

KyoungSoo

Quoted 6 lines · Stephen Hemminger

If you want to do these kind of stateful hacks, why not build a netfilter module to do it?