Page 1 of 1

Automatically fetch latest patch in shell script

PostPosted: Mon Jul 07, 2014 8:28 am
by alan.d
Hi,

I am a person that loves to automate repetitive tasks and therefore I love to write shell/bash scripts to save me work.

I would like to write a script that does the following:

1.) fetch latest stable grsecurity patch
2.) extract version of target linux kernel
3.) get that version of the linux kernel
4.) patch the linux kernel with grsecurity according to my preferences

The critical step is step one, since you do not allow access to https://grsecurity.net/stable/ where my script could determine the latest version. I tried some wget guessing but it does not work quite well. Am I missing something? Could you suggest an auto way of fetching the patch?

Thank you in advance for your support, great project btw!

Re: Automatically fetch latest patch in shell script

PostPosted: Mon Jul 07, 2014 8:42 am
by PaX Team

Re: Automatically fetch latest patch in shell script

PostPosted: Mon Jul 07, 2014 8:51 am
by alan.d
Wow, thank you very much for that quick reply! Great

Re: Automatically fetch latest patch in shell script

PostPosted: Mon Oct 27, 2014 6:55 am
by alan.d
Is there a similar link for gradm? I have switched distro and gradm is not in the repos there :-(. I want my script to fetch the latest code without manual intervention. This makes using grsecurity as convenient as using a prebuild kernel, without getting out of sync.
Thanks for your amazing work!

Re: Automatically fetch latest patch in shell script

PostPosted: Mon Oct 27, 2014 8:11 am
by spender

Re: Automatically fetch latest patch in shell script

PostPosted: Mon Oct 27, 2014 9:16 am
by alan.d
Thanks Brad, you are amazing.

Re: Automatically fetch latest patch in shell script

PostPosted: Sat Mar 28, 2015 1:16 pm
by alan.d
Brad, could I just wish one time again? "latest_paxctld" would be awesome too, simply containing the version number. My script can then fetch the appropriate source/binary package.
Thanks for your awesome work!