Automatically fetch latest patch in shell script

Discuss usability issues, general maintenance, and general support issues for a grsecurity-enabled system.

Automatically fetch latest patch in shell script

Postby alan.d » Mon Jul 07, 2014 8:28 am

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!
alan.d
 
Posts: 34
Joined: Mon Jul 07, 2014 8:20 am


Re: Automatically fetch latest patch in shell script

Postby alan.d » Mon Jul 07, 2014 8:51 am

Wow, thank you very much for that quick reply! Great
alan.d
 
Posts: 34
Joined: Mon Jul 07, 2014 8:20 am

Re: Automatically fetch latest patch in shell script

Postby alan.d » Mon Oct 27, 2014 6:55 am

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!
alan.d
 
Posts: 34
Joined: Mon Jul 07, 2014 8:20 am

Re: Automatically fetch latest patch in shell script

Postby spender » Mon Oct 27, 2014 8:11 am

spender
 
Posts: 2185
Joined: Wed Feb 20, 2002 8:00 pm

Re: Automatically fetch latest patch in shell script

Postby alan.d » Mon Oct 27, 2014 9:16 am

Thanks Brad, you are amazing.
alan.d
 
Posts: 34
Joined: Mon Jul 07, 2014 8:20 am

Re: Automatically fetch latest patch in shell script

Postby alan.d » Sat Mar 28, 2015 1:16 pm

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!
alan.d
 
Posts: 34
Joined: Mon Jul 07, 2014 8:20 am


Return to grsecurity support