synchronous freebsd print
Hi, I have a quick question, and I believe this will be a common requirement. I do a print of some data and then immediately in a next statement there is a crash. But the print is not complete, before it completes there is a crash, the print is about 6-9 lines . Is there anyway to get the complete print before executing the next instruction. like putting a delay before executing the next instruction. Regards, Sanjeev. - Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: synchronous freebsd print
On Wed, Feb 27, 2008 at 12:08:28AM -0800, Sanjeev Kumar.S wrote: I have a quick question, and I believe this will be a common requirement. This is a standard C question. I do a print of some data and then immediately in a next statement there is a crash. ... Is there anyway to get the complete print before executing the next instruction. Look at fflush(3) -- Peter Jeremy Please excuse any delays as the result of my ISP's inability to implement an MTA that is either RFC2821-compliant or matches their claimed behaviour. pgphQFuplx4Je.pgp Description: PGP signature
Re: Security Flaw in Popular Disk Encryption Technologies
You might want to take a look at eNova (http://www.enovatech.net/) who are pointing at interesting hardware using their crypto technology. = the idea of closed-source hardware-based crypto disk drive may appeal to some, but i've seen too many similar things fail through stupidity, malice, etc. Compared to in-core keys which have to stay there while the device is mounted? Yeah. Great disadvantage. one probably wouldn't have to look hard for more examples of secure hardware that isn't secure. I guess you never did a formal evaluation of you security relevant subsystems anyway. there's just no way that hardware crypto can provide the peace of mind that open-source crypto does Let's put it that way: There is no open source solution that doesn't spill its beans too easily - key container and crypto engine should be brought together close enough to force complete destruction of the keys should anyone try to get access to them _or_ to the data path between them. Just take a look at Apple's last failure in this regard (the iPhone) and you'll see an example of not close enough. And no, I'm not talking about a mobile system, I'm more worried about the case of physical security not being strong enough (like in the case of governmental goons breaking down your doors or US customs and immigration staff seizing running machines [turn your machine on and prove to us that it isn't a bomb... Thank you, now it's ours.] as they have already done); emergency shutdown of all systems should reliably render your data inaccessible. The fact that British authorities lost four mobile computers with masses of sensitive data (like a complete list of their military reserve personnel including complete financial details) on their disks since October 2007 rather makes me laugh - they don't deserve crypto solutions but a good flogging with a bundle power cords. Anyway: I don't completely trust any system where keys have to travel across an unprotected bus. I'm still sad about TPMs not having made their way at least into 99% of the server mainboards. Just take a look at ISBN://978-0-7506-7960-2 (you just shouldn't completely hand over the device to your friendly OS vendor) and ISBN://0-387-23916-2 (which will prove your point - even IBM didn't follow the think before crypto rule). (or maybe my tin-foil hat is too tight). You got too close to Theo the Rat, that's all. I guess we should take this off (at least *this* list). And tell me if you want to read the books. Achim Patzner
non-blocking io, EINTR
Hi, I am setting the O_NONBLOCK flag on a socket file descriptor using fcntl, will a read() on the socket return EINTR when the process get a signal? Thanks Mark ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: synchronous freebsd print
This is a standard C question. Sorry, if this clarification is too simple, but I thought freeBSD kernel implemented its own print function. and the man for fflush says it is in the standard C-library. and the kernel source has no defn for fflush. I saw lots of kernel related questions asked in this list, so I posted my question here. Please correct me if I am wrong. and Yes in the kernel code I have a \n at the end of my print, still the print is not complete and the line next to it that causes the crash does not give the result I want. Is this a common scenario or am I doing something wrong. Sanjeev. Peter Jeremy [EMAIL PROTECTED] wrote: On Wed, Feb 27, 2008 at 12:08:28AM -0800, Sanjeev Kumar.S wrote: I have a quick question, and I believe this will be a common requirement. This is a standard C question. I do a print of some data and then immediately in a next statement there is a crash. ... Is there anyway to get the complete print before executing the next instruction. Look at fflush(3) -- Peter Jeremy Please excuse any delays as the result of my ISP's inability to implement an MTA that is either RFC2821-compliant or matches their claimed behaviour. - Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: emulate an end-of-media
On Tue, Feb 26, 2008 at 04:00:00PM -0500, Mike Meyer wrote: On Tue, 26 Feb 2008 21:28:53 +0100 Joerg Sonnenberger [EMAIL PROTECTED] wrote: On Tue, Feb 26, 2008 at 07:44:48PM +0100, Martin Laabs wrote: I also made a comparison between gzip and bzip2 regarding the compression ratio on a dump of my home directory (3.2GB) bzip2 took about 74min to compress, gzip only 11minutes. And in terms of compression ratio bzip2 was only 3% better than gzip. That's not a realistic test case. bzip2 normally takes trice the time and compresses 10% better. I can't comment on compress. Considering we're talking about compression methods to use on dump output, that would seem to be the definition of a realistic test case. Telling us what it normally does without defining what input is considered normal doesn't help much. Source code in my case and various other documents. The test case above certainly was not normal. Joerg ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: non-blocking io, EINTR
* Mark Linn [EMAIL PROTECTED] wrote: I am setting the O_NONBLOCK flag on a socket file descriptor using fcntl, will a read() on the socket return EINTR when the process get a signal? Probably not, because that would only happen if the kernel would call the *sleep() routines, which it won't do, because the O_NONBLOCK flag disables that. -- Ed Schouten [EMAIL PROTECTED] WWW: http://g-rave.nl/ pgpjMwC0P1ZwB.pgp Description: PGP signature
Re: find -lname and -ilname implemented
On Sun, Feb 24, 2008 at 12:43:39PM -0700 M. Warner Losh mentioned: : : Please, don't commit C++ comments, that violates style(9). Also, gnu should be : spelled as GNU. Understood. Not that I'm going to change it, but understood. Why not? You took a good peace of code, and now it looks inconsistent. Because it makes it more compatible with existing de-facto standards. It costs us very little to do so. It costs extra complexity. A very important thing, though... -- Stanislav Sedov ST4096-RIPE ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: synchronous freebsd print
Sanjeev, Wed, Feb 27, 2008 at 03:00:46AM -0800, Sanjeev Kumar.S wrote: and Yes in the kernel code I have a \n at the end of my print, still the print is not complete and the line next to it that causes the crash does not give the result I want. Is this a common scenario or am I doing something wrong. If you're not defining PRINTF_BUFR_SIZE, then, judging by the /sys/kern/subr_prf.c, output will be unbuffered in any case. However, kernel printf is not protected by locks, so it can be interrupted by another thread, if I am correct. May be ddb(4) will become your friend? -- Eygene ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: non-blocking io, EINTR
Mark Linn wrote: I am setting the O_NONBLOCK flag on a socket file descriptor using fcntl, will a read() on the socket return EINTR when the process get a signal? By default, read() will restart itself automatically, regardless of whether the socket is blocking or not, as long as there is data to be read in the socket receive buffer. You can change this behavior by calling sigaction(). For example, the code below will make SIGTERM interrupt system calls. They will return an error code, usually -1, with the global errno set to EINTR. If the socket is non-blocking and the socket receive buffer is empty, then read() will also return an error, but with errno set to EWOULDBLOCK. #include signal.h struct sigaction sigact; sigact.sa_handler = sigterm_handler; sigemptyset( sigact.sa_mask ); sigact.sa_flags = 0; if ( sigaction( SIGTERM, sigact, NULL ) 0 ) { perror( sigaction() ); exit( 1 ); } -- James Bailie [EMAIL PROTECTED] http://www.mammothcheese.ca ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]
OpenBSM Jails
hello i am using OpenBSM on System with jails part of praudit output / action write file in jail -- header,176,10,open(2) - write,creat,trunc,0,Thu Feb 21 13:45:06 2008, + 501 msec,argument,3,0x81ed,mode,argument,2,0x601,flags,path,//site/svn/dev.lineage2.dom/pamm/hooks/post-commit,attribute,755,www,www,88,800911,3234053,subject,lynx,root,wheel,root,wheel,44680,44668,56876,10.15.1.116,return,success,4,trailer,176, -- please add jail-identification in output (cat /dev/auditpipe | praudit -lp) /Vladimir Ermakov ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Security Flaw in Popular Disk Encryption Technologies
Martin Laabs wrote: Preventing the physical access to the memory modules could be done with a light sensor or a simple switch at the computer case. Easily to circumvent, too. If you implement also a temperature- sensor near the memory-modules you could prevent cooling them down before removal. (You'd just overwrite the keys if the temperature falls i.e. below 10°C) Cool ... Then I won't be able to boot my laptop when I have to wait at the train station in winter ... Best regards Oliver -- Oliver Fromme, secnetix GmbH Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd Can the denizens of this group enlighten me about what the advantages of Python are, versus Perl ? python is more likely to pass unharmed through your spelling checker than perl. -- An unknown poster and Fredrik Lundh ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]
cvs tag renaming after repo copy
Can someone point me at a script that does tag renaming after a repo copy? ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: synchronous freebsd print
Use fprintf(stderr, ...) instead, as stderr is unbuffered by default. James Toothman About.com Peter Jeremy wrote: On Wed, Feb 27, 2008 at 12:08:28AM -0800, Sanjeev Kumar.S wrote: I have a quick question, and I believe this will be a common requirement. This is a standard C question. I do a print of some data and then immediately in a next statement there is a crash. ... Is there anyway to get the complete print before executing the next instruction. Look at fflush(3) ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: find -lname and -ilname implemented
In message: [EMAIL PROTECTED] David O'Brien [EMAIL PROTECTED] writes: : On Mon, Feb 25, 2008 at 12:07:44AM -0700, M. Warner Losh wrote: : In message: [EMAIL PROTECTED] : Mike Meyer [EMAIL PROTECTED] writes: : You fail to understand the complex interplay of politics here. These : people do not want to see beyond it. They want to shut you down : because you aren't using their beloved Linux. They use stupid excuses : to not do things. This is about removing barriers to entry. This : isn't about being popular. : .. : : Um, if FreeBSD has to become GNU in order to win GNU users, what's the : : point? Skip the pain, switch to GNU, and get the popularity you want : : and the platform you deserve with no delay. : : Hello? BSDL calling. You left your GPL here and we don't want it. : : For some of these uses of FreeBSD - I really have to wonder if : GNU/kFreeBSD (Debian GNU/kFreeBSD is a port that consists of GNU userland : using the GNU C library on top of FreeBSD's kernel) isn't a better : choice. http://www.debian.org/ports/kfreebsd-gnu/ : : One can keep their kernel changes private IP without worry. I doubt most : companies would claim they have IP that needs protecting in their GNU : userland changes. True, but using the GPL goes beyond just giving out your changes. If you mess up in shipping your product, even once, even by accident, the GPL has a provision that terminates your license, so you are unable to ship that work any more until you go back to the license hold and get it restored. This aspect of the GPL is used by GPL-trolls to extract payments from companies. It is also little enforced by other IP holders if you make it right. Warner ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: emulate an end-of-media
On Wed, 27 Feb 2008 13:50:48 +0100 Joerg Sonnenberger [EMAIL PROTECTED] wrote: On Tue, Feb 26, 2008 at 04:00:00PM -0500, Mike Meyer wrote: On Tue, 26 Feb 2008 21:28:53 +0100 Joerg Sonnenberger [EMAIL PROTECTED] wrote: On Tue, Feb 26, 2008 at 07:44:48PM +0100, Martin Laabs wrote: I also made a comparison between gzip and bzip2 regarding the compression ratio on a dump of my home directory (3.2GB) bzip2 took about 74min to compress, gzip only 11minutes. And in terms of compression ratio bzip2 was only 3% better than gzip. That's not a realistic test case. bzip2 normally takes trice the time and compresses 10% better. I can't comment on compress. Considering we're talking about compression methods to use on dump output, that would seem to be the definition of a realistic test case. Telling us what it normally does without defining what input is considered normal doesn't help much. Source code in my case and various other documents. The test case above certainly was not normal. So it sounds like your normal is mostly text documents of various kinds. I would expect such data to be a relatively small part of any dump data set, which, as you say, means that such data isn't normal. Given that the use case under discussion is abnormal, any tests using normal data are pretty much irrelevant. mike -- Mike Meyer [EMAIL PROTECTED] http://www.mired.org/consulting.html Independent Network/Unix/Perforce consultant, email for more information. ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: find -lname and -ilname implemented
On Mon, Feb 25, 2008 at 10:33:41PM +0200, Giorgos Keramidas wrote: On 2008-02-23 16:48, M. Warner Losh [EMAIL PROTECTED] wrote: This knee-jerk reaction against gnu find functionality baffles me. The changes are trivial and make FreeBSD more compatible. It is such an obvious no-brainer that I frankly didn't expect anybody to bat an eye. So should I expect similar knee-jerk reactions to the just committed `finger compatibility' option to implement du -l for hardlinks? You added a new useful feature - and you based the option letter on prior-art (and resumable doen't conflict with POSIX). -- -- David ([EMAIL PROTECTED]) ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: non-blocking io, EINTR
On Wed, Feb 27, 2008 at 5:25 AM, James Bailie [EMAIL PROTECTED] wrote: Mark Linn wrote: I am setting the O_NONBLOCK flag on a socket file descriptor using fcntl, will a read() on the socket return EINTR when the process get a signal? By default, read() will restart itself automatically, regardless of whether the socket is blocking or not, as long as there is data to be read in the socket receive buffer. You can change this behavior by calling sigaction(). For example, the code below will make SIGTERM interrupt system calls. They will return an error code, usually -1, with the global errno set to EINTR. If the socket is non-blocking and the socket receive buffer is empty, then read() will also return an error, but with errno set to EWOULDBLOCK. #include signal.h struct sigaction sigact; sigact.sa_handler = sigterm_handler; sigemptyset( sigact.sa_mask ); sigact.sa_flags = 0; if ( sigaction( SIGTERM, sigact, NULL ) 0 ) { perror( sigaction() ); exit( 1 ); } -- James Bailie [EMAIL PROTECTED] http://www.mammothcheese.ca Thanks, Ed and James, Then why in the world the sample code in this acm paper would test EINTR in read and write? link is here. http://delivery.acm.org/10.1145/135/1344155/9815.html?key1=1344155key2=2950393021coll=GUIDEdl=CFID=15151515CFTOKEN=6184618 ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: find -lname and -ilname implemented
David O'Brien wrote: On Mon, Feb 25, 2008 at 10:33:41PM +0200, Giorgos Keramidas wrote: On 2008-02-23 16:48, M. Warner Losh [EMAIL PROTECTED] wrote: This knee-jerk reaction against gnu find functionality baffles me. The changes are trivial and make FreeBSD more compatible. It is such an obvious no-brainer that I frankly didn't expect anybody to bat an eye. So should I expect similar knee-jerk reactions to the just committed `finger compatibility' option to implement du -l for hardlinks? You added a new useful feature - and you based the option letter on prior-art (and resumable doen't conflict with POSIX). can we form an anti-knee-jerk cabal that can get a quorum when needed? ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: synchronous freebsd print
Sanjeev Kumar.S wrote: Hi, I have a quick question, and I believe this will be a common requirement. I do a print of some data and then immediately in a next statement there is a crash. But the print is not complete, before it completes there is a crash, the print is about 6-9 lines . Is there anyway to get the complete print before executing the next instruction. like putting a delay before executing the next instruction. in the kernel or in a program? Regards, Sanjeev. - Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: OpenBSM Jails
On Thu, 21 Feb 2008, sam wrote: i am using OpenBSM on System with jails part of praudit output / action write file in jail -- header,176,10,open(2) - write,creat,trunc,0,Thu Feb 21 13:45:06 2008, + 501 msec,argument,3,0x81ed,mode,argument,2,0x601,flags,path,//site/svn/dev.lineage2.dom/pamm/hooks/post-commit,attribute,755,www,www,88,800911,3234053,subject,lynx,root,wheel,root,wheel,44680,44668,56876,10.15.1.116,return,success,4,trailer,176, -- please add jail-identification in output (cat /dev/auditpipe | praudit -lp) Vladimir, I believe Christian has plans to use the Solaris zone BSM token to this end, as well as plans to enhance our support for hostid header fields so that when audit trails are aggregated from many sources, they can be processed with awareness of which source they came from. I've added him to the CC line, and he may be able to expand on this. Robert N M Watson Computer Laboratory University of Cambridge ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: cvs tag renaming after repo copy
On 2008-02-27 08:36, John Hein [EMAIL PROTECTED] wrote: Can someone point me at a script that does tag renaming after a repo copy? You don't really need a `script' to do this. Tags in CVS are not versioned, so you can force-tag the repo-copied files and move the tag to its new place. For example if you have two files: foo.c,v bar.c,v and bar.c,v is a repo-copy of foo.c,v then you move the tag only for the bar.c file by checking it out, and running: cvs tag -f -r 1.2 bar.c This should force/move the tag to point revision 1.2. ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: cvs tag renaming after repo copy
Giorgos Keramidas wrote at 21:04 +0200 on Feb 27, 2008: On 2008-02-27 08:36, John Hein [EMAIL PROTECTED] wrote: Can someone point me at a script that does tag renaming after a repo copy? You don't really need a `script' to do this. Tags in CVS are not versioned, so you can force-tag the repo-copied files and move the tag to its new place. For example if you have two files: foo.c,v bar.c,v and bar.c,v is a repo-copy of foo.c,v then you move the tag only for the bar.c file by checking it out, and running: cvs tag -f -r 1.2 bar.c ^^^ you're missing the tag name in this example, but... This should force/move the tag to point revision 1.2. I don't want to move the tag... I want to invalidate old tags by renaming them to something else (like foo-1-2-3 - old_foo-1-2-3). Note that just using cvs to rename a tag (by tagging with the new name and then removing the former name) has issues when you try to do that with branch tags. Anyway, I'm pretty sure the FreeBSD cvs-meisters run something to invalidate tags after doing a repo copy. That's the information I was looking for. ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Modular type GENERIC?
On Tue, Feb 26, 2008 at 01:56:28PM +0900, Adrian Chadd wrote: On 26/02/2008, David O'Brien [EMAIL PROTECTED] wrote: As you've shown the magic is in the loader.conf. I don't know a good way to handle this other than attempt to load every module (like Microsoft NT installer does) - and hope the probe of a driver that doesn't claim a device doesn't leave that device in a bad state. Have you tried putting every module in /boot/kernel into loader.conf in a load statement? I'm going to try doing that tonight. Cool. Please let us(me) know how it goes. -- -- David ([EMAIL PROTECTED]) ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: find -lname and -ilname implemented
On 2008-02-27 10:31, David O'Brien [EMAIL PROTECTED] wrote: On Mon, Feb 25, 2008 at 10:33:41PM +0200, Giorgos Keramidas wrote: On 2008-02-23 16:48, M. Warner Losh [EMAIL PROTECTED] wrote: This knee-jerk reaction against gnu find functionality baffles me. The changes are trivial and make FreeBSD more compatible. It is such an obvious no-brainer that I frankly didn't expect anybody to bat an eye. So should I expect similar knee-jerk reactions to the just committed `finger compatibility' option to implement du -l for hardlinks? You added a new useful feature - and you based the option letter on prior-art (and resumable doen't conflict with POSIX). Fortunately, no, there is no conflict :-) The du(1) manpage at the online version of SUSv3 http://www.opengroup.org/onlinepubs/95399/utilities/du.html mentions only the -L option, for dereferencing symlinks. I should have probably mentioned this in the commit log, now that I think about it. ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: cvs tag renaming after repo copy
On 2008-02-27 12:21, John Hein [EMAIL PROTECTED] wrote: Giorgos Keramidas wrote at 21:04 +0200 on Feb 27, 2008: On 2008-02-27 08:36, John Hein [EMAIL PROTECTED] wrote: Can someone point me at a script that does tag renaming after a repo copy? You don't really need a `script' to do this. Tags in CVS are not versioned, so you can force-tag the repo-copied files and move the tag to its new place. For example if you have two files: foo.c,v bar.c,v and bar.c,v is a repo-copy of foo.c,v then you move the tag only for the bar.c file by checking it out, and running: cvs tag -f -r 1.2 bar.c ^^^ you're missing the tag name in this example, but... This should force/move the tag to point revision 1.2. I don't want to move the tag... I want to invalidate old tags by renaming them to something else (like foo-1-2-3 - old_foo-1-2-3). Ah, now I see. Sorry for the confusion :/ Note that just using cvs to rename a tag (by tagging with the new name and then removing the former name) has issues when you try to do that with branch tags. Anyway, I'm pretty sure the FreeBSD cvs-meisters run something to invalidate tags after doing a repo copy. That's the information I was looking for. Scripting is probably risky for this sort of thing, but I'll let the CVS meisters reply :) ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: cvs tag renaming after repo copy
Amol Dharmadhikar i ?? ? wrote at 11:47 -0800 on Feb 27, 2008: On Wed, Feb 27, 2008 at 11:21 AM, John Hein [EMAIL PROTECTED] wrote: I don't want to move the tag... I want to invalidate old tags by renaming them to something else (like foo-1-2-3 - old_foo-1-2-3). Note that just using cvs to rename a tag (by tagging with the new name and then removing the former name) has issues when you try to do that with branch tags. [*] Anyway, I'm pretty sure the FreeBSD cvs-meisters run something to invalidate tags after doing a repo copy. That's the information I was looking for. I dont think you can rename tags using a single command. What you can do instead is create a new tag at the same point as the old tag, and then delete the old tag. eg - cvs rtag -r old-foo-1-2-3 new-foo-1-2-3 module_name cvs rtag -d old-foo-1-2-3 module_name Yes, I mentioned that above [*]. You can't do that with branch tags. You can use cvs admin -n or -N with branch tags. Anyway, I'm wondering if anyone has a script which iterates over existing tags and renames them to old_*. Maybe that will make it more clear what I'm looking for? ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: cvs tag renaming after repo copy
On Wed, Feb 27, 2008 at 11:21 AM, John Hein [EMAIL PROTECTED] wrote: Giorgos Keramidas wrote at 21:04 +0200 on Feb 27, 2008: On 2008-02-27 08:36, John Hein [EMAIL PROTECTED] wrote: Can someone point me at a script that does tag renaming after a repo copy? You don't really need a `script' to do this. Tags in CVS are not versioned, so you can force-tag the repo-copied files and move the tag to its new place. For example if you have two files: foo.c,v bar.c,v and bar.c,v is a repo-copy of foo.c,v then you move the tag only for the bar.c file by checking it out, and running: cvs tag -f -r 1.2 bar.c ^^^ you're missing the tag name in this example, but... This should force/move the tag to point revision 1.2. I don't want to move the tag... I want to invalidate old tags by renaming them to something else (like foo-1-2-3 - old_foo-1-2-3). Note that just using cvs to rename a tag (by tagging with the new name and then removing the former name) has issues when you try to do that with branch tags. Anyway, I'm pretty sure the FreeBSD cvs-meisters run something to invalidate tags after doing a repo copy. That's the information I was looking for. I dont think you can rename tags using a single command. What you can do instead is create a new tag at the same point as the old tag, and then delete the old tag. eg - cvs rtag -r old-foo-1-2-3 new-foo-1-2-3 module_name cvs rtag -d old-foo-1-2-3 module_name Amol ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: cvs tag renaming after repo copy
On 2008.02.27 08:36:30 -0700, John Hein wrote: Can someone point me at a script that does tag renaming after a repo copy? John Polstra has made a script (Fixtags) for it which we use for the FreeBSD repository. I don't think he has any problems with it being distributed, but as it doesn't have a copyright statement i just want to ask before I distribute it... -- Simon L. Nielsen Hat: FreeBSD.org cvsmeister ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]
Is it possible that modern wireless card only supports WPA and not WEP or this is a bug in the driver?
I have a Linksys PCI wireless card that is being attached by ral driver: ral0: Ralink Technology RT2561S mem 0xcffe8000-0xcffe irq 17 at device 10.0 on pci0 ral0: MAC/BBP RT2561C, RF RT2527 ral0: Ethernet address: 00:18:f8:2e:40:25 ral0: [ITHREAD] But when I do 'ifconfig ral0 list caps' it returns: ral0=2181e500IBSS,HOSTAP,TXPMGT,SHSLOT,SHPREAMBLE,MONITOR,WPA1,WPA2,BGSCAN and WEP isn't there. This looks amazing since WEP is older and very widespread. So how can I tell if this card can't really support WEP or it's the driver that can't support it? Also command: ifconfig ral0 inet 192.168.0.1 netmask 255.255.255.0 ssid freebsdap wepmode on weptxkey 3 wepkey 3:0x3456789012 authmode open mode 11g mediaopt hostap succeeds though CAPS doesn't have WEP. Isn't this a bug? Yuri ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]
Is it possible that modern wireless card only supports WPA and not WEP or this is a bug in the driver?
I have a Linksys PCI wireless card that is being attached by ral driver: ral0: Ralink Technology RT2561S mem 0xcffe8000-0xcffe irq 17 at device 10.0 on pci0 ral0: MAC/BBP RT2561C, RF RT2527 ral0: Ethernet address: 00:18:f8:2e:40:25 ral0: [ITHREAD] But when I do 'ifconfig ral0 list caps' it returns: ral0=2181e500IBSS,HOSTAP,TXPMGT,SHSLOT,SHPREAMBLE,MONITOR,WPA1,WPA2,BGSCAN and WEP isn't there. This looks amazing since WEP is older and very widespread. So how can I tell if this card can't really support WEP or it's the driver that can't support it? Also command: ifconfig ral0 inet 192.168.0.1 netmask 255.255.255.0 ssid freebsdap wepmode on weptxkey 3 wepkey 3:0x3456789012 authmode open mode 11g mediaopt hostap succeeds though CAPS doesn't have WEP. Isn't this a bug? Yuri ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Is it possible that modern wireless card only supports WPA and not WEP or this is a bug in the driver?
Yuri wrote: I have a Linksys PCI wireless card that is being attached by ral driver: ral0: Ralink Technology RT2561S mem 0xcffe8000-0xcffe irq 17 at device 10.0 on pci0 ral0: MAC/BBP RT2561C, RF RT2527 ral0: Ethernet address: 00:18:f8:2e:40:25 ral0: [ITHREAD] But when I do 'ifconfig ral0 list caps' it returns: ral0=2181e500IBSS,HOSTAP,TXPMGT,SHSLOT,SHPREAMBLE,MONITOR,WPA1,WPA2,BGSCAN and WEP isn't there. This looks amazing since WEP is older and very widespread. So how can I tell if this card can't really support WEP or it's the driver that can't support it? WEP is always supported. The WEP capability bit means the driver uses the hardware. Many driver writers were too lazy to implement full driver support and just fall back on the host to do crypto. Also command: ifconfig ral0 inet 192.168.0.1 netmask 255.255.255.0 ssid freebsdap wepmode on weptxkey 3 wepkey 3:0x3456789012 authmode open mode 11g mediaopt hostap succeeds though CAPS doesn't have WEP. Isn't this a bug? No, see above. Sam ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Is it possible that modern wireless card only supports WPA and not WEP or this is a bug in the driver?
WEP is always supported. The WEP capability bit means the driver uses the hardware. Many driver writers were too lazy to implement full driver support and just fall back on the host to do crypto. I see. I am sure anybody who doesn't know this will get confused and will have the same question. Isn't it better to have 2 separate flags in CAPS: for example WEP and WEPHW? WEP would mean that WEP is supported and WEPHW would mean that it's supported through hardware. Yuri ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Is it possible that modern wireless card only supports WPA and not WEP or this is a bug in the driver?
On Wed, 27 Feb 2008, Sam Leffler wrote: Yuri wrote: I have a Linksys PCI wireless card that is being attached by ral driver: ral0: Ralink Technology RT2561S mem 0xcffe8000-0xcffe irq 17 at device 10.0 on pci0 ral0: MAC/BBP RT2561C, RF RT2527 ral0: Ethernet address: 00:18:f8:2e:40:25 ral0: [ITHREAD] But when I do 'ifconfig ral0 list caps' it returns: ral0=2181e500IBSS,HOSTAP,TXPMGT,SHSLOT,SHPREAMBLE,MONITOR,WPA1,WPA2,BGSCAN and WEP isn't there. This looks amazing since WEP is older and very widespread. I am about to do a talk on WEP versus WPA for a course in internet security. I became acquainted with the protocols through a 60 minutes story. http://tinyurl.com/2wucm3 WEP is not fully secure. WPA or WPA2 is the improvement. The above story notes that American businesses are in arears with respect to properly upgrading the wireless routers that they use for financial processing. So how can I tell if this card can't really support WEP or it's the driver that can't support it? WEP is always supported. The WEP capability bit means the driver uses the hardware. Many driver writers were too lazy to implement full driver support and just fall back on the host to do crypto. Also command: ifconfig ral0 inet 192.168.0.1 netmask 255.255.255.0 ssid freebsdap wepmode on weptxkey 3 wepkey 3:0x3456789012 authmode open mode 11g mediaopt hostap succeeds though CAPS doesn't have WEP. Isn't this a bug? No, see above. Sam ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED] *--* Kayven Riese, BSCS, MS (Physiology and Biophysics) (415) 902 5513 cellular http://kayve.net Webmaster http://ChessYoga.org *--* ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Re: non-blocking io, EINTR
The author is just trying to make his reads and w rites robust. The functions he has written have no kno= wledge whether or not signals have been set to interrupt system = calls, so he makes sure they test for EINTR in case they have been. On Feb 27, 2008, [EMAIL PROTECTED] wro= te: Thanks, E= d and James, Then why in the world the sample code in this acm p= aper would test EINTR in read and write? link is here. [1]http://delivery.acm.org/10.1145/135/ 1344155/9815.html?key1=1344155key2=2950393021coll=GUIDE ;dl=CFID=15151515CFTOKEN=6184618 References 1. 3Dhttp://delivery.acm.org/10.1145/135/1344155/9815.html___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Is it possible that modern wireless card only supports WPA and not WEP or this is a bug in the driver?
KAYVEN RIESE wrote: I am about to do a talk on WEP versus WPA for a course in internet security. I became acquainted with the protocols through a 60 minutes story. http://tinyurl.com/2wucm3 WEP is not fully secure. WPA or WPA2 is the improvement. The above story notes that American businesses are in arears with respect to properly upgrading the wireless routers that they use for financial processing. Sorry, Your response has nothing to do with the question. Yuri ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Is it possible that modern wireless card only supports WPA and not WEP or this is a bug in the driver?
Pietro Cerutti wrote: It wouldn't make sense. Flags are used to specify capabilities of the interface, not things provided by the operating system. This is very confusing to user. User is assumed to have this bit of knowledge that WEP flag actually means only hardware support, not support in general. On another note WEP is actually supported by interface but driver authors didn't bother to use it. So WEP flag doesn't represent actual capabilities of the interface and this is again confusing. When I type 'ifconfig iface ...' I am mostly interested what can I use from that side, not what is supported by hardware. Is there any way to know what is logically supported by network interface as passed to 'ifconfig' vs. what is supported by hardware interface? Yuri ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Is it possible that modern wireless card only supports WPA and not WEP or this is a bug in the driver?
On Wed, 27 Feb 2008, Yuri wrote: KAYVEN RIESE wrote: WEP is not fully secure. WPA or WPA2 is the improvement. The above story notes that American businesses are in arears with respect to properly upgrading the wireless routers that they use for financial processing. Sorry, Your response has nothing to do with the question. I tend to beg to differ. Backward compatibility standards imply the answer to your question (that was actually already answered anyway). I considered it relevant to realize the importance of WPA upgrade. Sorry if you already knew that and I wasted your time. Yuri *--* Kayven Riese, BSCS, MS (Physiology and Biophysics) (415) 902 5513 cellular http://kayve.net Webmaster http://ChessYoga.org *--* ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Is it possible that modern wireless card only supports WPA and not WEP or this is a bug in the driver?
Yuri wrote: Pietro Cerutti wrote: It wouldn't make sense. Flags are used to specify capabilities of the interface, not things provided by the operating system. This is very confusing to user. User is assumed to have this bit of knowledge that WEP flag actually means only hardware support, not support in general. On another note WEP is actually supported by interface but driver authors didn't bother to use it. So WEP flag doesn't represent actual capabilities of the interface and this is again confusing. When I type 'ifconfig iface ...' I am mostly interested what can I use from that side, not what is supported by hardware. Is there any way to know what is logically supported by network interface as passed to 'ifconfig' vs. what is supported by hardware interface? If you cannot use a feature you'll get an error when you try to use it. There simply are not enough capability bits around to waste on features that are always true. If I reorg this stuff (and I intend to to split crypto out into a separate features word because we are out of bits) then I can look into expanding the status. To be honest you're the first person that's even noticed you can list capabilities in the 3+ years that's been in place (or at least made public mention). Hardly seems like something that's constantly confused people. Sam ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Is it possible that modern wireless card only supports WPA and not WEP or this is a bug in the driver?
Sam Leffler wrote: If you cannot use a feature you'll get an error when you try to use it. There simply are not enough capability bits around to waste on features that are always true. If I reorg this stuff (and I intend to to split crypto out into a separate features word because we are out of bits) then I can look into expanding the status. Exactly, I got errors while trying to use WEP with FreeBSD-based wireless access point. And I looked in four eyes at all options and capabilities. And I first thought that WEP support is a problem. Basically AP with WEP encryption doesn't work with this card. Now I wonder if this software-based WEP support can be responsible for this failure. To be honest you're the first person that's even noticed you can list capabilities in the 3+ years that's been in place (or at least made public mention). Hardly seems like something that's constantly confused people. Ok I will correct myself: this is very confusing to people who look and notice. Though there are not too many obviously. But caps are mentioned in the handbook. And it particularly says there: ifconfig /ath0/ list caps skip This output displays the card capabilities skip Various supported ciphers are also mentioned: WEP, TKIP, WPA2, etc., these informations are important to know what security protocols could be set on the Access Point. So from this one can conclude that WEP isn't supported. I guess it's good to mention here that WEP is always supported no matter what WEP flag says. Yuri ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]
Java 1.6 Berkeley Oracle DB XML Bioinformatics
I am in a whirlwind of re(?)installation confusion revolving around making sure I have prerequisites for a Bioinformatics progam. Here is that program's installation page: http://www.fruitfly.org/annot/apollo/install.html I selected the Any UNIX to get this script called apolloinst.bin that seems to just set up a bunch of environment variables. I got a JVM error [:: clip command line ::] zip232.tar.gz kv_bsd#sh ./apolloinst.bin Preparing to install... Extracting the installation resources from the installer archive... Configuring the installer for this system's environment... No Java virtual machine could be found from your PATH environment variable. You must install a VM prior to running this program. kv_bsd#echo $PATH /sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin:/root/bin kv_bsd#cp apolloinst.bin /usr/home/kayve kv_bsd#uname -a FreeBSD kv_bsd 6.2-RELEASE FreeBSD 6.2-RELEASE #0: Fri Jan 12 10:40:27 UTC 2007 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC i386 kv_bsd# [EMAIL PROTECTED] ~]$ java sdf Exception in thread main java.lang.NoClassDefFoundError: sdf [EMAIL PROTECTED] ~]$ [::end clip::] kv_bsd# is root prompt [EMAIL PROTECTED] ~]$ is user prompt. I was told to add the line JAVA_HOME=/usr/local/bin/java to the script, but in the meantime I have been distracted by reinstalling java. Since my error message diagnostic java [garbage] above shows that I do have a java, the JVM error made me feel like reinstalling java (spurious and impulsive, I know). My Java 1.6 port installation has been proceeding for over 30 hours now! In the meanwhile, I decided to add the Berkeley Oracle DB port, but got distracted by the possibilities 1)vanilla (??) 2) Java DB or 3) XML DB Are these three possibilities to all be installed, or only one of them? Anyway, with the java 1.6 make still running (I know, nuts.. but fatal?) I decided to make install clean /usr/ports/databases/dbXML and got this message: kv_bsd#cd dbXML/ kv_bsd#make install clean === Vulnerability check disabled, database not found = dbXML-Core-1.0b2.tar.gz doesn't seem to exist in /usr/ports/distfiles/. = Attempting to fetch from http://heanet.dl.sourceforge.net/sourceforge/dbxml-core/. dbXML-Core-1.0b2.tar.gz 100% of 4799 kB 293 kBps 00m00s === Extracting for dbXML-1.0b2_2 = MD5 Checksum OK for dbXML-Core-1.0b2.tar.gz. = SHA256 Checksum OK for dbXML-Core-1.0b2.tar.gz. === Patching for dbXML-1.0b2_2 === Applying FreeBSD patches for dbXML-1.0b2_2 === Configuring for dbXML-1.0b2_2 === Installing for dbXML-1.0b2_2 === dbXML-1.0b2_2 depends on file: /usr/local/jdk1.3.1/bin/java - not found ===Verifying install for /usr/local/jdk1.3.1/bin/java in /usr/ports/java/jdk13 === jdk-1.3.1p9_8 : Due to licensing restrictions, certain files must be fetched manually. Please open http://www.sun.com/software/communitysource/j2se/java2/download.xml in a web browser and follow the Download link for the Java(TM) 2 SDK 1.3.1. You will be required to log in and register, but you can create an account on this page. After registration and accepting the Sun Community Source License, download the SCSL Source file, j2sdk-1_3_1-src.tar.gz. In addition, please download the patchset, bsd-jdk131-patches-9.tar.gz, from http://www.eyesbeyond.com/freebsddom/java/jdk13.html. Then place the downloaded files in /usr/ports/distfiles and restart the build. .*** Error code 1 Stop in /usr/ports/java/jdk13. *** Error code 1 Stop in /usr/ports/databases/dbXML. kv_bsd#pwd /usr/ports/databases/dbXML kv_bsd# Okay. To boil it down, what is happening with Java 1.6, should I kill it, and is it the right thing to get these older patches and put them in /usr/ports/distfiles.. Oh, also, here are the patches I currently have for the jdks: [EMAIL PROTECTED] ~]$ ls /usr/ports/distfiles/bsd* /usr/ports/distfiles/bsd-jdk14-patches-8.tar.gz /usr/ports/distfiles/bsd-jdk16-patches-3.tar.bz2 /usr/ports/distfiles/bsd-jdk16-patches-4.tar.bz2 [EMAIL PROTECTED] ~]$ Does it make sense to keep patches for different versions, and e.g. the jdk patch 3 and patch4 both being there, does that make sense? Is it okay to just get all that patches? Is it best to only have the most recent patch? Does this depend on other ports like dbXML that may NEED something in PARTICULAR from a older patch from the current version or from an older version? *--* Kayven Riese, BSCS, MS (Physiology and Biophysics) (415) 902 5513 cellular http://kayve.net Webmaster http://ChessYoga.org *--* ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Modular type GENERIC?
On 28/02/2008, David O'Brien [EMAIL PROTECTED] wrote: On Tue, Feb 26, 2008 at 01:56:28PM +0900, Adrian Chadd wrote: On 26/02/2008, David O'Brien [EMAIL PROTECTED] wrote: As you've shown the magic is in the loader.conf. I don't know a good way to handle this other than attempt to load every module (like Microsoft NT installer does) - and hope the probe of a driver that doesn't claim a device doesn't leave that device in a bad state. Have you tried putting every module in /boot/kernel into loader.conf in a load statement? I'm going to try doing that tonight. Cool. Please let us(me) know how it goes. Is there some sane-ish way of auto-generating a list of modules given a config file? The device statements don't match up with the module name in all bar 4 or 5 places. Is there some chain of files I can munge to match things up? Adrian -- Adrian Chadd - [EMAIL PROTECTED] ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Modular type GENERIC?
On Thu, Feb 28, 2008 at 03:26:55PM +0900, Adrian Chadd wrote: Is there some sane-ish way of auto-generating a list of modules given a config file? The device statements don't match up with the module name in all bar 4 or 5 places. Is there some chain of files I can munge to match things up? Not that I know of. :-( -- -- David ([EMAIL PROTECTED]) ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Modular type GENERIC?
On 28/02/2008, David O'Brien [EMAIL PROTECTED] wrote: On Thu, Feb 28, 2008 at 03:26:55PM +0900, Adrian Chadd wrote: Is there some sane-ish way of auto-generating a list of modules given a config file? The device statements don't match up with the module name in all bar 4 or 5 places. Is there some chain of files I can munge to match things up? Not that I know of. :-( Crap. I may have to hand-massage something together just for testing then. Adrian -- Adrian Chadd - [EMAIL PROTECTED] ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]