From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 6396 invoked from network); 18 Aug 1999 23:11:13 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 18 Aug 1999 23:11:13 -0000 Received: from piglet.twiddle.net (root@piglet.twiddle.net [207.104.6.26]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id TAA13618 for ; Wed, 18 Aug 1999 19:11:12 -0400 Received: (from rth@localhost) by piglet.twiddle.net (8.8.7/8.8.7) id QAA16301; Wed, 18 Aug 1999 16:11:06 -0700 Date: Wed, 18 Aug 1999 16:11:05 -0700 From: Richard Henderson To: Michal Jaegermann , axp-list@redhat.com Subject: Re: Unaligned traps et al Message-ID: <19990818161105.B15520@twiddle.net> References: <19990818144755.T28508@henry.uncarved.co.uk> <199908181556.JAA28448@ellpspace.math.ualberta.ca> <19990818222349.W28508@henry.uncarved.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.5i In-Reply-To: <19990818222349.W28508@henry.uncarved.co.uk>; from Sean Hunter on Wed, Aug 18, 1999 at 10:23:49PM +0100 On Wed, Aug 18, 1999 at 10:23:49PM +0100, Sean Hunter wrote: > The trouble is, you need to use setsysinfo to get your program to do > this, which is fine for stuff you're writing, but a pain for other > programs. What I propose is to set up a sysctl so that it will > automatically set this behaviour as desired. This means that normally > you just leave this as is, bit if you feel like doing a spot o' > debugging you can echo "some_magic" >> /proc/sys/kernel/uac_control... The DU syscall allows to set the system default too -- #define SSIN_UACSYS 4 /* set system printing on/off */ #define SSIN_UACPARNT 5 /* set parent proc on/off */ #define SSIN_UACPROC 6 /* set current proc on/off */ I only implemented the SSIN_UACPROC case. If you'd like to implement the rest, be my guest. ;-) I don't remember at the moment, but I believe that the value is (or should be) inherited across exec. (Guessed from SSIN_UACPARNT -- you run a program which changes your shell's default, then run another program which inherits the value.) r~