> -----Original Message-----
> From: Chunky Kibbles [mailto:[EMAIL PROTECTED]]
> Sent: 11. december 2001 23:05
> To: [EMAIL PROTECTED]
> Subject: Re: [rtl] make devices ?
> 
> On Tue, Dec 11, 2001 at 03:13:49PM +0100, Lilja, Michael wrote:
> > Hi All,
> >
> > I have started using the RTlinux 3.1 package on Redhat 7.1 but have
a
> > problem when performing 'make devices'.
> >
> > It only works if I log in as root (which I can).
> >
> > I have several other developers who might need to perform the 'make
> > devices' command also, and they do not have root privileges and will
not
> > gain root privileges, so how can I get the 'make devices' run.
> > The problem is that non-root users cannot use the 'mknod' command.
> >
> > Hope someone has an answer (and I'm not interested in fakeroot)
> 
> Well... technically, I guess you could do one of a few things:
> 1) Make mknod setuid root
> 2) give everyone write access to /dev...
> 
> Why do multiple people need to do this? It only needs to be run once
> per filesystem with /dev on it. If you're using devfs, then you can
> just write a script to set up the devices at boot-time.
> 
> Remember: mortal punters should never, ever, ever be allowed to do
> what you're asking to let the mortal punters do.
> 
> And last point: In order for your developers to then run a RT task,
> they need to be able to run insmod. Which is just a downright daft
> thing to allow mortals to do. And running it setuid is hardly a good
> idea...
> 
> If you're going to allow that in any way, the root account on your box
> can be breahched instantly. In fact, slightly worse than root is that
> you're allowing 100% kernel access to anything.
> 
> Gary (-;
> -- [rtl] ---
> To unsubscribe:
> echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
> echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
> --
> For more information on Real-Time Linux see:
> http://www.rtlinux.org/

Hi Gary,

I'm haven't set up a development system for Linux before where the
target would be a linux system. I have been working with proprietary
kernel and OS which didn't have the rootfs scheme which Linux does.

I guess my main problem is that I do not know the 'perfect' way of
developing a Cross-platform Linux/RTLinux kernel + applications on a
Linux server. Due to my lack of knowledge on this subject I try to get a
system incorporated in my server that fulfills my needs, which are:

1) Use RTLinux/Linux make system without having to modify it

2) Get RTLinux/Linux encapsulated in my existing Makefile system
   (I basically call "make -C <path to Linux/RTLinux>)

3) All applications that need start-up scripts etc. will create a
directory structure to satisfy their needs e.g. the RTLinux is called
with:
   make -C DESTDIR=`pwd`/destdir
   make -C devices DESTDIR=`pwd`/destdir
   make -C modules DESTDIR=`pwd`/destdir
   make -C install DESTDIR=`pwd`/destdir
which will create a directory `pwd`/destdir that contains all files
needed in order to the RTLinux to work.
I then make a tarball of that directory and the same for all other
applications.

4) Create a file to be downloaded that contains a loader, kernel and
ramdisk with all applications. The RAMDISK will be created by un-tar all
the tarballs of the applications into e.g. `pwd`/prod_rootfs. This
directory is then converted using genromfs.



Based on the (long) description above I need to, as you suggested make
mknod setuid root in order for multiple developers to create e.g. the
RTLinux.

I could also as you suggest create a startup script in my embedded
environment that create all the devices in /dev (on the embedded system)
but then I need to manually write this script e.g. for RTLinux I need to
know how many fifo's it needs and get the script to create all these
fifo's. Using the RTLinux make system I can just issue the 'make
devices' and voila it creates the needed fifo's.

I thing I will make mknod setuid root, it seems to be the simplest
solution unless you or anyone else can convince we of the opposite.

Thanks for your answer,
Michael
-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
--
For more information on Real-Time Linux see:
http://www.rtlinux.org/

Reply via email to