Re: Strange instructions in compiler output

2004-03-07 Thread Anthony Schneider
On Sat, Mar 06, 2004 at 09:31:51PM +0100, Dag-Erling Smørgrav wrote: Anthony Schneider [EMAIL PROTECTED] writes: On Sat, Mar 06, 2004 at 02:26:51PM +, chungwei Hsiung wrote: gcc -o shellcode -ggdb -static shellcode.c try compiling with the -static flag the gcc. Reading is fast

Re: Strange instructions in compiler output (was: A simple question)

2004-03-06 Thread Anthony Schneider
try compiling with the -static flag the gcc. then 'disassemble execve'. -Anthony. On Sat, Mar 06, 2004 at 02:26:51PM +, chungwei Hsiung wrote: Hello everyone Thanks for fellows' previous helps. I actually have a further question. I read an article that it says if I compile the

Re: freebsd smp - linux up

2003-11-26 Thread Anthony Schneider
: Anthony Schneider [EMAIL PROTECTED] writes: is there a way to have linux emulation report that its kernel is running on a UP system even though the freebsd box it's running on is SMP? i would like to get vmware running on my smp -current box, but vmmon_smp.ko is broken, and with vmmon_up.ko

freebsd smp - linux up

2003-11-25 Thread Anthony Schneider
is there a way to have linux emulation report that its kernel is running on a UP system even though the freebsd box it's running on is SMP? i would like to get vmware running on my smp -current box, but vmmon_smp.ko is broken, and with vmmon_up.ko loaded i get a message about needing to be

Re: Sound Blaster Audigy LS problem

2003-11-04 Thread Anthony Schneider
Well, it appears from your page that this driver will not work on 5.1-RELEASE (as stated from i guess 2003-10-19). I tried building your driver (on 5.1-RELEASE-p10), and it seemed that i just needed to add #define PCIR_BARS 0x10 #define PCIR_BAR(x)(PCIR_BARS + (x) * 4) and also strip (yes, bad)

Sound Blaster Audigy LS problem

2003-11-03 Thread Anthony Schneider
Dear @hackers, i recently bought a soundblaster audigy ls card hoping that it would just work with freebsd, but sadly this is not the case. at boot, i see that we recognize that there is a sound card, but that's not adequate. pciconf -l -v: [EMAIL PROTECTED]:7:0: class=0x040100

Re: Replacing GNU grep revisited

2003-06-23 Thread Anthony Schneider
Interesting. I found that GNU's grep actually finds a match for grep -ail freebsd /usr/ports/distfiles/*: /usr/ports/distfiles/ezm3 ezm3 is a directory with a filename that contains FreeBSD in it. the * will expand /usr/ports/distfiles/* into full path names to each file in

Re: boot without user and password

2003-03-20 Thread Anthony Schneider
if you are trying to do what i think you're trying to do, you can put something like the following in /etc/rc.local or in a script in /usr/local/etc/rc.d: su username -c xinit where username is the name of the user you want to start X with. -Anthony. On Thu, Mar 20, 2003 at 04:18:43PM +,

Re: arc4random() range

2003-02-18 Thread Anthony Schneider
an issue of arc4random return u_int32_t and rand* returning int (ie unsigned vs signed)? -Anthony. On Tue, Feb 18, 2003 at 04:04:57PM -0800, Paul Herman wrote: Hi, ...a potential quick commit for someone. :-) What's the concesus that arc4random() should be a drop-in replacement for

Re: Some security questions.

2003-02-10 Thread Anthony Schneider
#2 sounds like a great DOS to me.. operatorCR CR operatorCR CR operatorCR CR put a two (ten???) second delay after each failed login? as for the commands, you could hack sys/kern_acct.c to include command arguments and acct.h for struct acct and all the dependent utilities and libraries

Re: what causes a userland to stop, but allows kernel to continue ?

2002-05-05 Thread Anthony Schneider
FWIW, I've very recently had something similar happen to a 4.5-STABLE box. The machine was NOT SMP, and the cause, as far as we know, was that /var had been filled by apache's error_log -- a funky new mod_throttle install with lots of critical_acquire() failed: Permission denied

Adaptec 2903b SCSI card

2002-04-29 Thread Anthony Schneider
It appears that there is no support for the Adaptec 2903b SCSI card, but of course I could be wrong. I would like to get this card to work, so if anyone could point me to a painfully obvious url or some documentation on how to get it to work that I have clearly overlooked, I would be forever

Re: Bison

2002-04-28 Thread Anthony Schneider
i suggest you read the info pages on bison. they are very informative, even somewhat about non-bison exclusive material (i.e. there's a bit of information about LALR parsing, BNF, etc.). It works on FreeBSD just like it does on any other UNIX clone that it runs on. You should read the info

Re: ssh + compiled-in SKEY support considered harmful?

2002-04-22 Thread Anthony Schneider
On Mon, Apr 22, 2002 at 08:04:43PM -0500, Mike Meyer wrote: In [EMAIL PROTECTED], Jordan Hubbard [EMAIL PROTECTED] typed: My question: Who's wrong here, FreeBSD or Mac OS X? If the latter, Someone decided that FreeBSD should do challengeresponse authentication by default. You can fix it

Re: Security through obscurity? (was: ssh + compiled-in SKEY support considered harmful?)

2002-04-22 Thread Anthony Schneider
be able to use it too. I'd suggest that we do the following: 1. Give the user the choice of these additional features at installation time. Recommend the procedures, but explain that you need to understand the differences. 2. Document these things very well. Both this ssh

make world .depend error?

2002-04-05 Thread Anthony Schneider
system: 4.2-release, generic kernel src tree: -stable via cvsup, 4.5-release via sysinstall...same problem: snip === gnu/usr.bin/binutils/gdbserver .depend, line 23: Need an operator .depend, line 282: Need an operator make: fatal errors encountered -- cannot continue *** Error code 1

Re: Help with getting load information

2002-03-26 Thread Anthony Schneider
Also, I want to get the information about the load, and also process information. you may get the load averages through getloadavg(3) or through kvm_getloadavg(3). process information may be retrieved through kvm_getprocs(3). Good luck, -Anthony.

Re: A question about timecounters

2002-02-05 Thread Anthony Schneider
PS: Chances are most people don't have cdecl any more. You can get it like this: cd /usr/ports/devel/cdecl make install :) -Anthony. msg31489/pgp0.pgp Description: PGP signature

Re: fork rate limit

2002-02-04 Thread Anthony Schneider
I've actually wanted something like this for a while and have considered coding it myself. Perhaps this could go into a login.conf variable (which I would have to create myself), but originally my plan was basically kill off parent processes with the uid of the user who is fork()'ing too often

Re: fork rate limit

2002-02-04 Thread Anthony Schneider
04), Anthony Schneider said: I've actually wanted something like this for a while and have considered coding it myself. Perhaps this could go into a login.conf variable (which I would have to create myself), but originally my plan was basically kill off parent processes with the uid

Re: aps2file doesn't work on FreeBSD

2001-12-17 Thread Anthony Schneider
: On Sun, 16 Dec 2001, Anthony Schneider wrote: Well, the reason I brought up $USER inheritance is that on linux, $USER is root after an su to root, whereas on FreeBSD, the $USER is the same as before the su. [Line wrap at 72, please] Excerpt from su(1): --- By default, the environment

Re: aps2file doesn't work on FreeBSD

2001-12-16 Thread Anthony Schneider
Well, I'm not sure if you really want to be creating /dev/stdout, but the $USER variable after an su is still your login name before the su. anthony:/home/anthony:24% su Password: flack# echo $USER anthony flack# try it with an su -l, or explicitly set $USER to 'root', or even replace -n$USER

Re: aps2file doesn't work on FreeBSD

2001-12-16 Thread Anthony Schneider
Well, the reason I brought up $USER inheritance is that on linux, $USER is root after an su to root, whereas on FreeBSD, the $USER is the same as before the su. Not really thinking, I thought that perhaps that refleted the inherited $UID, which I was wrong about. Sorry for that. You might

Re: [SUGGESTION] - JFS for FreeBSD

2001-12-10 Thread Anthony Schneider
I'm no expert on journaled filesystems, but isn't the freebsd softupdates option similar? perhaps there could be an upgrade to offer options SOFTERUPDATES as an equal-but-different alternative to jfs? -Anthony. On Mon, Dec 10, 2001 at 05:39:35PM -0500, Matthew Emmerton wrote: * Hiten

Re: [SUGGESTION] - JFS for FreeBSD

2001-12-10 Thread Anthony Schneider
On Monday, 10 December 2001 at 17:47:11 -0500, Anthony Schneider wrote: I'm no expert on journaled filesystems, but isn't the freebsd softupdates option similar? No, at least not from a technical standpoint. From a user standpoint, they both try to make things faster and more reliable