[PATCH] capability_plug.c [was Re: Problems with 2.4.6-lsm on SMP]

From: Chris Wright (chrisat_private)
Date: Thu Jul 19 2001 - 12:14:04 PDT

  • Next message: Crispin Cowan: "Re: Names vs. Inodes"

    * Alexander Reelsen (alexat_private) wrote:
    > On Thu, Jul 19, 2001 at 11:03:17AM -0700, Greg KH wrote:
    > > Could you run that oops through ksymoops and post the output somewhere?
    > > 
    > > There's some good information on how to do this in the file:
    > > 	Documentation/oops-tracing.txt
    > > in the kernel source tree.
    > I'm not sure, whether I did it right, but here we go
    > http://tretmine.org/lsm/
    > 
    > The "-orig" file only has the Warnings included which seem to come from
    > the fact that I am running another kernel than the -lsm one, when
    > executing ksymoops (I hope I'm right).
    
    Hi Alexander,
    
    try the patch below, this is relative to a 2.4.6 tree plus the LSM
    patch.
    
    i've checked this into BitKeeper also, but that tree will be merged (i
    hope by the end of the week with 2.4.6, so I didn't generate a new 2.4.6
    patch)
    
    -chris
    
    
    --- linux-2.4.6-lsm/kernel/capability_plug.c.orig	Thu Jul 19 12:02:35 2001
    +++ linux-2.4.6-lsm/kernel/capability_plug.c	Thu Jul 19 12:02:20 2001
    @@ -56,6 +56,7 @@
     
     static int cap_setcapablity	(void)	{return 0;}
     static int cap_acct		(struct file *file) {return 0;}
    +static int cap_sysctl		(ctl_table * table, int op) {return 0;}
     
     static int cap_binprm_alloc_security(struct linux_binprm *bprm)
     {
    @@ -458,6 +459,7 @@
     	ptrace:			cap_ptrace,
     	setcapability:		cap_setcapablity,
     	acct:			cap_acct,
    +	sysctl:			cap_sysctl,
     	capable:		cap_capable,
     
     	bprm_ops:		&cap_binprm_ops,
    
    _______________________________________________
    linux-security-module mailing list
    linux-security-moduleat_private
    http://mail.wirex.com/mailman/listinfo/linux-security-module
    



    This archive was generated by hypermail 2b30 : Thu Jul 19 2001 - 12:17:26 PDT