Add patch for string

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

I am using RHEL4AS and iptables-1.2.11-3.1.RHEL4. I want to know how to
add -m string option .. if it needs patching pls help me how to do that
in pom as I am very new to Patch-O-Magic ..


Re: Add patch for string


Quoted text here. Click to load it

Yes, you do need to patch to use the STRING match.  AFAIK, no distro
includes it by default.  Be darn sure STRING is the only way because
it is a bitch to figure out a match that will work without shooting
yourself in the foot.

NOTE:  The string to match may not contain any white space.  Don't
know for sure, but it likely it cannot contain a hyphen either.
Everything else is a literal, so don't put the string inside " or '.

The instructions in the POM are thorough enough that you should be
able to follow them, but an overview is:
Pur kernel source and .config in
ln -s /usr/src/linux-VERSION /usr/src/linux

Make sure .config matches your running kernel!

Put iptables source in
ln -s /usr/src/iptables-VERSION /usr/src/iptables

Download (it is not easy to find) a POM that contains STRING.  Extract
it into /usr/src
cd /usr/src/patch-o-matic
./runme extra

That's all the help you're going to get from me <smile>.

Site Timeline