RHEL4 and GRSecurity Installation?

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

RHEL4 and GRSecurity Installation?

Postby Comnenus » Tue Feb 02, 2010 11:19 am

Hello,

I am using RHEL 4.6 and need to implement GRSecurity for root auditing (and later on probably other features that GRSecurity offers). However, there are no RHEL4 packages, and I don't know how to patch kernel source.

I've spent most of the morning googling instructions on how to patch the RHEL4 kernel source with the grsecurity.patch file, but I haven't found anything yet that has been relevant. It looks like there's a lot more debian specific howto's on this.

Can anyone point me to a guide?
Comnenus
 
Posts: 3
Joined: Tue Feb 02, 2010 10:39 am

Re: RHEL4 and GRSecurity Installation?

Postby specs » Tue Feb 02, 2010 1:39 pm

The patching is the simple part, unpack the (vanilla) kernel and use "patch":
http://en.wikibooks.org/wiki/Grsecurity ... grsecurity

The patch is only made for vanilla kernels.

For more RedHat like HOWTO's:
http://wiki.centos.org/HowTos/Custom_Kernel
http://fedoraproject.org/wiki/Docs/CustomKernel
But even if you make an RPM you should use vanilla kernels.
specs
 
Posts: 190
Joined: Sun Mar 26, 2006 7:00 am

Re: RHEL4 and GRSecurity Installation?

Postby Comnenus » Tue Feb 02, 2010 1:45 pm

Does that mean it isn't possible to patch the backported RHEL source?
Comnenus
 
Posts: 3
Joined: Tue Feb 02, 2010 10:39 am

Re: RHEL4 and GRSecurity Installation?

Postby PaX Team » Tue Feb 02, 2010 5:42 pm

Comnenus wrote:Does that mean it isn't possible to patch the backported RHEL source?
not without backporting grsecurity itself as well which would be a very non-trivial exercise for such an old and much-patched kernel that you find in RHEL.
PaX Team
 
Posts: 2310
Joined: Mon Mar 18, 2002 4:35 pm

Re: RHEL4 and GRSecurity Installation?

Postby Comnenus » Tue Feb 02, 2010 7:28 pm

I think if we used a new vanilla kernel we'd lose support. I'll have to look into that.

Are the packages for RHEL5 a patched RHEL kernel or vanilla as well?
Comnenus
 
Posts: 3
Joined: Tue Feb 02, 2010 10:39 am

Re: RHEL4 and GRSecurity Installation?

Postby PaX Team » Wed Feb 03, 2010 9:44 am

Comnenus wrote:I think if we used a new vanilla kernel we'd lose support. I'll have to look into that.
don't you already lose support if you use anything but their own kernels?
Are the packages for RHEL5 a patched RHEL kernel or vanilla as well?
all RHEL kernels are heavily patched, more so as the years pass by and they backport stuff.
PaX Team
 
Posts: 2310
Joined: Mon Mar 18, 2002 4:35 pm


Return to grsecurity support