Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Wed, 28 Mar 2001 09:17:09 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Wed, 28 Mar 2001 09:16:58 -0500 Received: from tomcat.admin.navo.hpc.mil ([204.222.179.33]:30793 "EHLO tomcat.admin.navo.hpc.mil") by vger.kernel.org with ESMTP id ; Wed, 28 Mar 2001 09:16:50 -0500 Date: Wed, 28 Mar 2001 08:15:57 -0600 (CST) From: Jesse Pollard Message-Id: <200103281415.IAA47715@tomcat.admin.navo.hpc.mil> To: kaos@ocs.com.au, jesse@cats-chateau.net cc: linux-kernel@vger.kernel.org Subject: Re: Disturbing news.. X-Mailer: [XMailTool v3.1.2b] Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1387 Lines: 35 Keith Owens > > On Wed, 28 Mar 2001 06:08:15 -0600, > Jesse Pollard wrote: > >Sure - very simple. If the execute bit is set on a file, don't allow > >ANY write to the file. This does modify the permission bits slightly > >but I don't think it is an unreasonable thing to have. > > man strip > man objcopy > man ld Thought of theses already (well, at least ld...) strip - not used that much (most executables still have their symbol table but could be handled by removing the execute bit, stripping, then putting it back. Or just use the ld option -s. objcopy - copies object files. Object files are not marked executable... ld - on other UNIX systems (Cray/IRIX), I think the output file (-o) specified is first deleted. Whenever I can cause a link error, the output is not marked executable. If the GNU ld doesn't delete it first, then it most likely should. I was expecting shell scripts to be the complaint first... :-) ------------------------------------------------------------------------- Jesse I Pollard, II Email: pollard@navo.hpc.mil Any opinions expressed are solely my own. - 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/