Re: [leaf-devel] Allowing Weblet to change a root file

2002-10-23 Thread Kelly Brown
Brad,

Thank you so much for pointing me in the right direction.

I have my shell script, toggle_udp, which checks to see if 
ip_masq_udp_dloose is set to 0, and if so, it sets it to 1 (and vice-versa).

I also just found a little C code snippet on google that I think should do 
what I want.  This is what I have:

---
#include stdio.h
#include stdlib.h
#include unistd.h
#include string.h

void main(void)
{
  int status;

  status = setuid(0);
  if(status == -1){
  fprintf(stderr, Error setting uid to 0\n);
  exit(1);
  }

  system(/var/sh-www/cgi-bin/toggle_udp);

  exit(0);
}
---

Now my only problem is, how do I compile this to run on Leaf?  Is there a 
compiler available and small enough to work on the system?  Or would I have 
to compile it elsewhere, and then move it over to leaf?  If this is the 
case, I only have access to machines running windows or solaris.  Would 
anyone be willing to compile the small program above for me?

-Kelly

_
Internet access plans that fit your lifestyle -- join MSN. 
http://resourcecenter.msn.com/access/plans/default.asp



---
This sf.net email is sponsored by: Influence the future 
of Java(TM) technology. Join the Java Community 
Process(SM) (JCP(SM)) program now. 
http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0002en


___
leaf-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-devel


Re: [leaf-devel] Allowing Weblet to change a root file

2002-10-23 Thread Jon Clausen
On Wed, Oct 23, 2002 at 01:08:11PM +, Kelly Brown wrote:

 Now my only problem is, how do I compile this to run on Leaf?  Is there a 
 compiler available and small enough to work on the system? i

Not that I know of.

 Or would I have 
 to compile it elsewhere, and then move it over to leaf?  If this is the 
 case, I only have access to machines running windows or solaris. 

I don't know about either of those. I guess it *is* possible to compile
it somehow, though *my* guess is that solaris would be the best bet...

In any case you might want to have a look at:

http://leaf.sourceforge.net/devel/jnilo/uml.html

- though I have no idea whether it will work on solaris...

 Would 
 anyone be willing to compile the small program above for me?

Look in your inbox ;)

It compiles fine in UML, and looks as if it works. At least in that once
it's 

chown root:root wrapper
and 
chmod a+s wrapper

'ered

execution fails with:

jon@a13-8:~/Projekt/blinder/C/src/KellyBrown ./wrapper
sh: /var/sh-www/cgi-bin/toggle_udp: No such file or directory

Let us know how it goes :)

HTH

Jon Clausen


---
This sf.net email is sponsored by: Influence the future 
of Java(TM) technology. Join the Java Community 
Process(SM) (JCP(SM)) program now. 
http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0002en


___
leaf-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-devel



Re: [leaf-devel] Allowing Weblet to change a root file

2002-10-23 Thread Brad Fritz

Kelly,

On Wed, 23 Oct 2002 13:08:11 GMT Kelly Brown wrote:

 Brad,
 
 Thank you so much for pointing me in the right direction.
 
Glad to help.

 I have my shell script, toggle_udp, which checks to see if 
 ip_masq_udp_dloose is set to 0, and if so, it sets it to 1 (and vice-versa).
 
 I also just found a little C code snippet on google that I think should do 
 what I want.  This is what I have:
 

[C code that looks like it will work snipped]

 Now my only problem is, how do I compile this to run on Leaf?  Is there a 
 compiler available and small enough to work on the system?  Or would I have 
 to compile it elsewhere, and then move it over to leaf?

Stock Dachstein and Bering distributions both use glibc 2.0.7 .
Often LEAF developers compile under Debian slink, sometimes
running under UML[1] or VMWare.

 If this is the 
 case, I only have access to machines running windows or solaris.  Would 
 anyone be willing to compile the small program above for me?

That would make it tough.  It's probably possible to cross-compile
from one of those platforms for a x86 glibc 2.0.7 target system,
but just thinking about setting up the development environment
makes my head spin. ;)

Sounds like Jon hooked you up with a compiled version, so
hopefully you're set now.

--Brad

[1] http://leaf.sf.net/devel/jnilo/uml.html



---
This sf.net email is sponsored by: Influence the future 
of Java(TM) technology. Join the Java Community 
Process(SM) (JCP(SM)) program now. 
http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0002en


___
leaf-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-devel




Re: [leaf-devel] Allowing Weblet to change a root file

2002-10-23 Thread Charles Steinkuehler
  Less secure would be to do the same thing with a setuid shell
  script.

 It's my understanding that shell scripts will not work suid. (I did
try
 that out before turning to C, it never worked, and I seem to remember
 seeing an explanation of why it doesn't work somewhere...) CCMIW

For the record, linux will *NOT* honor the setuid bit on shell
scripts...there's just no practical way to make them secure.

Also on the security front, I would strongly suggest directly modifying
the desired /proc flag with the C code, rather than calling any sort of
shell script.  There are too many ways to manipulate the shell if you're
not careful, and while you probably don't have to worry about a lot of
these problems on LEAF (which typically isn't setup with user accounts),
I never like taking shortcuts with security...it's too easy to build bad
habits and forget yourself when it really *DOES* matter.

Charles Steinkuehler
http://lrp.steinkuehler.net
http://c0wz.steinkuehler.net (lrp.c0wz.com mirror)




---
This sf.net email is sponsored by: Influence the future 
of Java(TM) technology. Join the Java Community 
Process(SM) (JCP(SM)) program now. 
http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0002en


___
leaf-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-devel



RE: [leaf-devel] UML development slink filesystem missing kernel headers

2002-10-23 Thread Eric B Kiser
Hi Fabrice,

The last thing that I read from Jacques on this was, Don't do kernel work
under UML slink. Unfortunately I was unable to find his original message to
refer you to but in a nutshell it said to do your kernel work on a
traditional Linux installation.

Hope this helps,
Eric Kiser

-Original Message-
From: [EMAIL PROTECTED]
[mailto:leaf-devel-admin;lists.sourceforge.net]On Behalf Of Fabrice
LABORIE
Sent: Monday, October 21, 2002 11:38 AM
To: [EMAIL PROTECTED]
Subject: [leaf-devel] UML development slink filesystem missing kernel
headers


Hi,

here are some updates trying to compile a USB-Modem driver ( but still NO
solutions )!

Since the kernel header didn't come in the root_fs_slink,
I decided to download the kernel source into my UML devel box ;-)

Since the kernel source uncompressed didn't fit, I created a
BIG_root_fs_slink
identical to the original but 400MB large
(by basically using dd,mkfs, mount -o loop , cp -a  ,nmount )

Running a make menuconfig and a make dep inside the UML created the
missing /usr/src/linux/include/linux/modversions.h . Great ...
BUT
- trying to compile my USBdrivers show some problems in the kernel header
( /usr/src/linux/include/linux/kernel.h in particular ... but then plenty of
other problem)
-  trying to compilego further in the kernel compilation shows the same
error messages.

so i was wondering if I should follow the steps given in chapter 5 How to
build an UML kernel for LEAF
it would make sense ..: maybe the problem above was that I was tring to
build a i386 kernel ( or at least get
the matching headers ) in a ARCH=um environment...
trying to follow those steps, I applied all the patched ( bering+uml)  (
replaced the make xgo in freeswan-X.XX by make menugo
root_fs_slink didn't come with wish)  ... but as soon as you save the
.config file from the freeswan error message started to flow :(
and also error messages when typing the make linux ARCH=um ...

I also tried to skip the freeswan part  going directly to the make linux
ARCH=um but no luck same kind of error message :(

bottom line ... i am a bit stuck now :(

any suggestion ?

thanks

fabrice.

- Original Message -
From: Fabrice LABORIE [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, October 21, 2002 1:49 PM
Subject: UML development slink filesystem missing kernel headers


 Hi guys,

 I am trying to compile the drivers for a Aztech 56K USB modem...
 This is my 1st attempt to play with UML

 the USB/linux drivers from http://www.smlink.com/download were working on
my
 previous
 machine RH7.3 ( I also gave it a try with the compilation on RH80. make
 succedded ... )

 it seems that the Leaf_UML Debian slink recommended in the
  Using a Virtual Debian/slink development box doesn't include kernel
 include/header...

 downloading the kernel2.4.18.bz2 to extract the source  didn't help much
...
 (a file is still missing mod_versions.h that I believe is created when you
 compile the kernel...)

 any suggestions on how to be able to compile kernel modules under Leaf_UML
?
 - a bigger uml filesystem with the full development environment?
 - a debian package to install ( similar to rh8.0
 glibc-kernheaders-2.4-7.20 ) that
 would install the 2.4.18 headers for slink ? ( I am no debian specialist
...
 and my search on the debian site wasn't really successfull ...
 - ?

 (alternatively, i'd accept the drivers for my USB modem is someone can
 compile them ...
 but I'd also like to learn the process to be more independant in the
future)

 thanks for your help.

 Fabrice



---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf

___
leaf-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-devel



---
This sf.net email is sponsored by: Influence the future 
of Java(TM) technology. Join the Java Community 
Process(SM) (JCP(SM)) program now. 
http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0002en


___
leaf-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-devel



Re: [leaf-devel] Multimedia Design at 5$ per hour

2002-10-23 Thread Mike Noyes
Everyone,
I apologize for the spam. I'm now blocking Content-Type:
multipart/related on our mailing lists.

We should have better control of allowed mime types when Mailman 2.1 is
released.

-- 
Mike Noyes mhnoyes at users.sourceforge.net
http://sourceforge.net/users/mhnoyes/
http://leaf-project.org/  http://sitedocs.sf.net/  http://ffl.sf.net/



---
This sf.net email is sponsored by: Influence the future 
of Java(TM) technology. Join the Java Community 
Process(SM) (JCP(SM)) program now. 
http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0002en


___
leaf-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-devel



Re: [leaf-devel] Bering v1.0-rc4 available

2002-10-23 Thread Larry Platzek

 Hi Jacques,
 can we have a module for 3c509 cards usually 3c509.o or can some other
 driver work? I hope was not blind when I looked for it. I found 3c59x.o,
 I think that would not work.

 in bipack2.html section 12.7 how many other pcmcia kernals are there? you
 said three I found two others for a total of three modules.
 pcmcia.lrp, pcmcia_xicom.lrp, and pcmcia_ornoco.lrp.

 I will look at the butime.html maybe later today.


 Larry Platzek  [EMAIL PROTECTED]


 On Wed, 23 Oct 2002, Jacques Nilo wrote:


 This should be the last rc version before 1.0 final. So please report any
 remaining bug in the distro and/or the documentation to the leaf-devel list

 Enjoy!

 Jacques  Eric




---
This sf.net email is sponsored by: Influence the future 
of Java(TM) technology. Join the Java Community 
Process(SM) (JCP(SM)) program now. 
http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0002en


___
leaf-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-devel



Re: [leaf-devel] Multimedia Design at 5$ per hour

2002-10-23 Thread Erich Titl
Mike

Mike Noyes wrote the following at 22:17 23.10.2002:

Erich,
Was there something you wanted to make me aware of? I didn't notice any
text from you in the message below.


too dumb to control my mail client :-(

I was wondering if they used an obl at sourceforge

Erich


THINK
Püntenstrasse 39
8143 Stallikon
mailto:erich.titl;think.ch
PGP Fingerprint: BC9A 25BC 3954 3BC8 C024  8D8A B7D4 FF9D 05B8 0A16



---
This sf.net email is sponsored by: Influence the future
of Java(TM) technology. Join the Java Community
Process(SM) (JCP(SM)) program now.
http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0002en


___
leaf-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-devel



[leaf-devel] Multimedia Design at 5$ per hour

2002-10-23 Thread Creativeskulls
Title: Dear Friend




  
Dear Friend,
We would like to introduce ourselves 
Creativeskulls, We are a new media concern having a setup of 11 high end 
workstations. We are looking for business partners/clients who are interested in 
offloading their work. Our rate is only 5 US$ for an hour of working. We 
have 2 master level flash certificate holders and 3 multimedia Ex. Faculty on 
our rolls. Our clients include Daewoo, LG India, NIIT, Modi Group (India) and 
now we are planning a foray in the foreign market.
Please read

economicaldesign.creativeskulls.com/faq.htm 
on the process that we follow to ensure quality, timely deliveries and 
economical 
pricing. 
Please visit www.creativeskulls.com/skullworks.html 
to see our portfolio.
For further information regarding this offer please write us at
[EMAIL PROTECTED]
Here are some of our recent creations. Please 
click on the image to see a detailed view.


  
  

  
  

  One of our most interesting works. The photograph is of Aishwarya 
  Rai (Miss World 1994) one of the most beautiful woman in the world. The 
  picture that you see is made up of Approximately 10,000 individual 
  images.
  

  
  

  Flash work is what we love to do. We have master level certificate 
  holder from 'Brainbench' on our rolls. Our expertise in flash speaks for 
  itself in our works. Scripting happens to be our strength. 
  
  

  
  

  Having two ex multimedia faculty on our team gives us that edge in 
  3d. The samples of our work speak for themselves. We have special 
  interest and expertise in character animation.
  

  
  

  Websites, 3d Work, Print Graphics, Corporate Presentations/Video, 
  Flash Work, CD Rom Presentations all done at an incredible rate and 
  incredible quality. The sample work speaks for itself. 
  

This is not a spam 
mail. It is a one time offer, sent to only those people, who were listed in 
Graphic Design sites. Just reply to us with the subject line 
"remove" and you 
will never be sent another offer mail.We did not purchase your Email id's 
nor do we sell any Email id's.

  





[leaf-devel] Re: draft Bering DiskOnChip user guide chapter

2002-10-23 Thread Brad Fritz

Marck,

On Tue, 22 Oct 2002 10:32:58 -0400 Mark Meade wrote:

 Hi Brad,
 
 Your instructions look great -- well written and concise.

Thank you for taking the time to read my work and make
suggestions.
 
 One suggestion:  the mtd modules in 2.4.18 won't work with any DiskOnChip 
 devices formatted with newer revisions of the M-Sys DFORMAT utility (5.x or 
 later).  An earlier version (4.2 -- still available at www.m-sys.com) is 
 needed to insure compatibility with 2.4.18 modules.
 
 The failure occurs when loading the nftl.o module.  This issue has been
 fixed in newer versions of the DiskOnChip modules.

I will note this in the instructions.  Do you know if partitioning
and formatting a DFORMAT 5.x formatted DoC with fdisk/mkfs makes
any difference?  Will using GRUB eliminate this issue?

 The DFORMAT command creates one FAT partition by default, so running fdisk 
 and mkfs.msdos may not be necessary.

That is what I figured.  My DoC was already formatted.  I will
add a note to that section to say it may not be necessary.
 
 Regarding the mounting twice problem:  I tried this today (with newer 
 versions of the modules), and it seems to work fine.  I'm assuming that 
 simply mounting the DoC twice, in two different places, is similar to what's 
 going on in the root.linuxrc script; for instance:
 
   mount /dev/nftla1 /mnt/doc1
   mount /dev/nftla2 /mnt/doc2

Actually, the same partition is mounted twice like this:

mount /dev/nftla1 /mnt/doc1
mount /dev/nftla1 /mnt/doc2

If you are able to test that scenario with newer drivers than are
included with 2.4.18, I would like to hear what happens.  Can you
also tell me what version of the the modules you're using.


 Also, it's possible to replace the proprietary M-Sys DoC firmware with the 
 GNU GRUB bootloader.  There are two compelling reasons to consider this 
 option:
 
   1)  GNU GRUB is licensed under the GPL
   2)  The M-Sys firmware takes up considerably more memory than Grub
 
 Disadvantages to this option include the additional steps required to build 
 and burn the Grub firmware, and also the DoC support is not yet part of the 
 main Grub source tree.
 
 If anyone is interested, the procedure to do this is documented at:
 
 http://lists.infradead.org/pipermail/linux-mtd/2002-October/006166.html

It appears the linux-mtd archives are unavailable right now.  At
the least I will add a link for the curious as a footnote in my
instructions.  If I can make time to try it out, I will
incorporate the GRUB instructions into optional steps in the
DocBook instructions.

Thanks again, Mark.

--Brad



---
This sf.net emial is sponsored by: Influence the future 
of Java(TM) technology. Join the Java Community 
Process(SM) (JCP(SM)) program now. 
http://ad.doubleclick.net/clk;4699841;7576301;v?http://www.sun.com/javavote

___
leaf-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-devel



Re: [leaf-devel] Bering v1.0-rc4 available

2002-10-23 Thread Jacques Nilo
Le Jeudi 24 Octobre 2002 05:50, Eric B Kiser a écrit :
 Jacques,

 I was just about to compile a new UML kernel and found that the patches and
 patch sequence for -rc4 have not been posted yet. Also I noticed that the
 patch sequence file that the documentation references is no longer there.

 Could you send me a copy of the old one?
 When do you expect that these files will be available for -rc4?

The are:
http://leaf.sf.net/devel/jnilo/bering/latest/development/kernel/2.4.18
REDAME, Config and patches are in there

Jacques


---
This sf.net email is sponsored by: Influence the future 
of Java(TM) technology. Join the Java Community 
Process(SM) (JCP(SM)) program now. 
http://ad.doubleclick.net/clk;4729346;7592162;s?http://www.sun.com/javavote

___
leaf-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-devel