grsec and xfs

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

grsec and xfs

Postby msi » Wed Sep 03, 2003 11:31 am

Hello i'm trying to patch my linux 2.4.22 with grsecurity and xfs.
firstly i applied the xfs patch and after that the grsecurity patch.
in sysctl.c i have a problem: this is the .rej file:
Code: Select all
*** 272,280 ****
        {KERN_EXCEPTION_TRACE,"exception-trace",
         &exception_trace,sizeof(int),0644,NULL,&proc_dointvec},
  #endif
        {0}
  };

  static ctl_table vm_table[] = {
        {VM_BDFLUSH, "bdflush", &bdf_prm, 9*sizeof(int), 0644, NULL,
         &proc_dointvec_minmax, &sysctl_intvec, NULL,
--- 283,477 ----
        {KERN_EXCEPTION_TRACE,"exception-trace",
         &exception_trace,sizeof(int),0644,NULL,&proc_dointvec},
  #endif
+ #ifdef CONFIG_GRKERNSEC
+       {KERN_GRSECURITY, "grsecurity", NULL, 0, 0500, grsecurity_table},
+ #endif
        {0}
  };
....
but my sysctl.c file:
Code: Select all
        {KERN_EXCEPTION_TRACE,"exception-trace",
         &exception_trace,sizeof(int),0644,NULL,&proc_dointvec},
#endif
#ifdef  CONFIG_KDB
        {KERN_KDB, "kdb", &kdb_on, sizeof(int),
         0644, NULL, &proc_dointvec},
#endif  /* CONFIG_KDB */

        {0}
...


shall i put the grsecurity stuff after CONFIG_KDB or before it??
i heared that sysctl.c is hard coded, so do i need to adjust some assembly code too after the possition of the grsecurity stuff changed? (when i put the code after CONFIG_KDB)
msi
 
Posts: 29
Joined: Fri Sep 13, 2002 2:37 pm

Postby bse » Wed Sep 03, 2003 3:05 pm

sorry, cant help you on that one, but if you don't need the KDB skip it. Download the -split patch files. You only need

split-only (only adds new files)
split-kernel (only patches existing files)

The other files are optional. I patched my kernel with split-misc, split-acl and split-quota32, that works fine with grsec - no failed hunks.

Usually you don't need KDB and DMAPI.

[OT]
found that one looking for xfs features on sgi website, *lol*
http://verein.lst.de/~hch/talks/ukuug2003/mgp00005.html
[/OT]
bse
 
Posts: 9
Joined: Tue Sep 02, 2003 11:07 am

Postby msi » Wed Sep 03, 2003 6:27 pm

ok thanks i'll try this.
msi
 
Posts: 29
Joined: Fri Sep 13, 2002 2:37 pm

Postby Sleight of Mind » Thu Sep 04, 2003 5:57 am

i'll post a -xfs-grsec patch for 2.4.22 later today or tomorrow. Check other thread for the URL.
Sleight of Mind
 
Posts: 92
Joined: Tue Apr 08, 2003 10:41 am

Postby msi » Fri Sep 05, 2003 7:04 pm

fine, then i can compare my one with yours.
thank you!!
msi
 
Posts: 29
Joined: Fri Sep 13, 2002 2:37 pm


Return to grsecurity support