Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Paul Tomblin <ptomblin@xcski.com>
To: axp-list@redhat.com
Subject: Re: Linux Programming...
Date: Tue, 27 Oct 1998 15:07:54 -0500	[thread overview]
Message-ID: <19981027150754.A23008@xcski.com> (raw)
In-Reply-To: <Pine.BSI.3.95.981027142710.9960A-100000@shell1.cybercom.net>; from Keith Baker on Tue, Oct 27, 1998 at 02:37:50PM -0500

Quoting Keith Baker (toaster@cybercom.net):
> without doing a loop to slow it down...  Where is all of this wonderfull
> info...  I'd like to have a process which "wakes up" every 1/30 of a
> second or so, does its task which is simple i/o and then goes back to
> sleep.  Oh yeah...  one catch...  The data to output needs to be shared
> with another process.  Is two seperate processes really the way to go?  If
> not, how do I create this non-linear time based jumping?

99.99% of this stuff is NOT linux specific.  Get a copy of "Advanced
Programming in the Unix Environment" by Stevens.  This book (and his other
books "Unix Network Programming" and "TCP/IP Illustrated") were my bibles when
I was doing C and C++.  Although you might want to start with something a
little less heavy, like Marc Rochind's "Advanced Unix Programming".

> linux...  I know I could use a setuid root program and ioperm but I'd like
> to be able to access my device from joe shmoe user...  it is a simple box
> which takes two different inputs...  its a small DMX interface (A lighting

The program is setuid root, which means that anybody who runs it is
running it with all the permissions of root.  Not a problem - you don't need a
kernel patch for this.  However, you need to be DAMN sure that there aren't
any security holes in your program - no unbound reads into fixed buffers, no
use of gets() or scanf, no stack smashing, etc.  Also make sure the sysadmin
on any system you install this in knows what you're doing - they get pretty
nervous about setuid programs from unknown origins.

-- 
Paul Tomblin, ptomblin@xcski.com.
"The Windows NT workstations locked up every 2.58 minutes...The Linux
workstations [which replaced them] haven't had a problem"
 - Randy Kessell, SBC Communications Inc.


  parent reply	other threads:[~1998-10-27 20:18 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-10-27  2:26 NIC's Steve G
1998-10-27  6:36 ` NIC's Maurice Hilarius
1998-10-27 17:09   ` NIC's Steve G
1998-10-27 17:56     ` NIC's Michal Jaegermann
1998-10-27 19:37       ` Linux Programming Keith Baker
1998-10-27 20:02         ` Jeff Noxon
1998-10-27 20:07         ` Paul Tomblin [this message]
     [not found]       ` <Pine.BSI.3.95.981027142710.9960A-100000@shell1.cybercom.ne t>
1998-10-27 21:03         ` Alessio Sangalli
1998-10-27 17:23   ` NIC's Wes Bauske
1998-10-27  8:41 ` NIC's W Darlington
  -- strict thread matches above, loose matches on Subject: below --
1998-02-26 16:02 Linux programming David Tucker
     [not found] <Pine.BSI.3.95.980225224400.10514A-100000@shell1.cybercom.net>
1998-02-26  3:59 ` Michal Jaegermann
     [not found] <19980226032654.25200.qmail@hotmail.com>
1998-02-26  3:46 ` Keith Baker
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox