Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932088AbVIDWBA (ORCPT ); Sun, 4 Sep 2005 18:01:00 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932089AbVIDWBA (ORCPT ); Sun, 4 Sep 2005 18:01:00 -0400 Received: from inti.inf.utfsm.cl ([200.1.21.155]:58816 "EHLO inti.inf.utfsm.cl") by vger.kernel.org with ESMTP id S932088AbVIDWA7 (ORCPT ); Sun, 4 Sep 2005 18:00:59 -0400 Message-Id: <200509042147.j84LlSl3020442@laptop11.inf.utfsm.cl> To: Andreas Hartmann cc: linux-kernel@vger.kernel.org Subject: Re: forbid to strace a program In-Reply-To: Message from Andreas Hartmann of "Sun, 04 Sep 2005 00:23:50 +0200." X-Mailer: MH-E 7.4.2; nmh 1.1; XEmacs 21.4 (patch 17) Date: Sun, 04 Sep 2005 17:47:28 -0400 From: Horst von Brand Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1557 Lines: 34 Andreas Hartmann wrote: 1> Alex Riesen wrote: > > On 9/3/05, Andreas Hartmann wrote: > >> Hello! > >> Is it possible to prevent a program to be straced on x86? > >> What do I have to do, eg., to prevent a perl-program to be straced? Look at the contortions shc does for this. > > So that none can see what are you doing? Or because your program is > > breaking because of this? Probably nothing, but someone would like > > to know what it is you are doing and exactly how it breaks (and, if > > you don't mind - > > why it breaks). > That's not really the problem. I want to hide a clear text password in > that program (something like ssh-agent or gpg-agent; the last can be > straced, too :-() which I need for a database when the program runs. Anyone who can read the executable can find that out. In the worst case, by running it in a doctored environment that catches the password. Place it in a file that noone else can read, that way it is also easier to change. -- Dr. Horst H. von Brand User #22616 counter.li.org Departamento de Informatica Fono: +56 32 654431 Universidad Tecnica Federico Santa Maria +56 32 654239 Casilla 110-V, Valparaiso, Chile Fax: +56 32 797513 - 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/