Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S262097AbVDRPSJ (ORCPT ); Mon, 18 Apr 2005 11:18:09 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262101AbVDRPSJ (ORCPT ); Mon, 18 Apr 2005 11:18:09 -0400 Received: from fire.osdl.org ([65.172.181.4]:47592 "EHLO smtp.osdl.org") by vger.kernel.org with ESMTP id S262097AbVDRPRy (ORCPT ); Mon, 18 Apr 2005 11:17:54 -0400 Date: Mon, 18 Apr 2005 08:17:26 -0700 From: "Randy.Dunlap" To: Igor Shmukler Cc: riel@redhat.com, thehazard@gmail.com, arjan@infradead.org, linux-kernel@vger.kernel.org Subject: Re: intercepting syscalls Message-Id: <20050418081726.7d3125bd.rddunlap@osdl.org> In-Reply-To: <6533c1c905041807487a872025@mail.gmail.com> References: <6533c1c905041511041b846967@mail.gmail.com> <1113588694.6694.75.camel@laptopd505.fenrus.org> <6533c1c905041512411ec2a8db@mail.gmail.com> <6533c1c905041512594bb7abb4@mail.gmail.com> <6533c1c905041807487a872025@mail.gmail.com> Organization: OSDL X-Mailer: Sylpheed version 1.0.4 (GTK+ 1.2.10; i686-pc-linux-gnu) X-Face: SvC&!/v_Hr`MvpQ*|}uez16KH[#EmO2Tn~(r-y+&Jb}?Zhn}c:Eee&zq`cMb_[5`tT(22ms (.P84,bq_GBdk@Kgplnrbj;Y`9IF`Q4;Iys|#3\?*[:ixU(UR.7qJT665DxUP%K}kC0j5,UI+"y-Sw mn?l6JGvyI^f~2sSJ8vd7s[/CDY]apD`a;s1Wf)K[,.|-yOLmBl0 wrote: | > On Fri, 15 Apr 2005, Igor Shmukler wrote: | > | > > Thank you very much. I will check this out. | > > A thanks to everyone else who contributed. I would still love to know | > > why this is a bad idea. | > | > Because there is no safe way in which you could have multiple | > of these modules loaded simultaneously - say one security | > module and AFS. There is an SMP race during the installing | > of the hooks, and the modules can still wreak havoc if they | > get unloaded in the wrong order... | > | > There just isn't a good way to hook into the syscall table. --- ~Randy - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/