Re: A New FreeBSD Server

2006-06-25 Thread Robert Watson
On Sat, 24 Jun 2006, Mike Meyer wrote: Swap drive, should probably be a piece of one of the 17GB drives (NO RAID) the Box has 500MB ram.. Why not RAID your swap? The extra reliability might not be worth very much, but the extra performance couldn't hurt - unless you don't plan on

Re: NVIDIA FreeBSD kernel feature requests

2006-07-03 Thread Robert Watson
On Sun, 2 Jul 2006, M. Warner Losh wrote: In message: [EMAIL PROTECTED] Kip Macy [EMAIL PROTECTED] writes: : IIRC lack of per instance cdevs also limits Freebsd to one vmware instance. Can you describe the proper semantics here? A cdev is a cdev, and when we do things like dup we

Re: NVIDIA FreeBSD kernel feature requests

2006-07-03 Thread Robert Watson
On Sun, 2 Jul 2006, Sam Smith wrote: On Sun, 2 Jul 2006, Michal Mertl wrote: And - again - it will probably take a couple of very skilled programmers' years' time to write good driver from scratch. It took someone far less than that

Re: Re: Programs not accepting input?

2006-07-21 Thread Robert Watson
On Fri, 21 Jul 2006, Greg 'groggy' Lehey wrote: I've been keeping a closer eye on my problem. I'm using fvwm1 with click-to-focus and lose-focus-on-screen-switch. If I move from one screen to another and quickly click on a window, the border changes colour to indicate that it has focus but

Re: A question about ipcperm() call?

2006-07-24 Thread Robert Watson
On Mon, 24 Jul 2006, Xin LI wrote: On 7/24/06, 李尚杰 [EMAIL PROTECTED] wrote: The code for ipcperm() call : 78 ipcperm(td, perm, mode) 79 struct thread *td; 80 struct ipc_perm *perm; 81 int mode; 82 { 83 struct ucred *cred = td-td_ucred; 84 int

Re: A question about ipcperm() call?

2006-07-24 Thread Robert Watson
On Mon, 24 Jul 2006, Xin LI wrote: why not directly return the error in line 94? I think it makes sense to remove the assignment and the 'error' variable. Let's see Robert's opinion. I'm sorry, my previous answer was based on a mis-reading of the question -- you're not suggesting

Re: cvs commit: www/en/projects/ideas index.sgml

2006-07-28 Thread Robert Watson
On Fri, 28 Jul 2006, Alexander Leidinger wrote: BTW, a problem that has occurred a number of times in the past is that people have approached us with implementations of ideas in the idea list that it has later transpired we aren't actually interested in (sometimes at all). I think it might

Re: _getlogin()

2006-08-01 Thread Robert Watson
On Mon, 31 Jul 2006, Joseph Koshy wrote: Where can i find source of subj? /usr/src/lib/libc/gen/getlogin.c has the declaration of this function, but i'm unable to find its definition. Its generated as part of the C library build. See: src/lib/libc/i386/sys/Makefile.inc

Re: getting interface MAC addr from C

2006-08-04 Thread Robert Watson
On Fri, 4 Aug 2006, Mario Lobo wrote: Would anyone have a tip on how to get the MAC from a C program? I tried: struct ifreq ifreq; unsigned char *hw; strcpy(ifreq.ifr_name, rl0); ioctl(fd, SIOCGIFMAC, ifreq); hw = ifreq.ifr_ifru.ifru_data; but i don't know if this is

Re: Packet filtering on tap interfaces

2006-08-13 Thread Robert Watson
On Sat, 12 Aug 2006, mal content wrote: Can tap interfaces reliably be filtered? Max has provided a detailed answer, but I wanted to answer a more general question here: a tap interface plugs into the normal kernel network interface and ethernet layers, and as such, packets sent and

Re: Is it possible to trace the routing socket messages going from the kernel to a particular daemon

2006-08-17 Thread Robert Watson
On Thu, 17 Aug 2006, Shriek wrote: Is it possible that we can add some loadable module into the kernel to get a pid of a daemon-process and then somehow trace routing socket messages coming in / going out from the kernel to that particular daemon ? The thing why I am in need of this is that

Re: SOCK_DGRAM optimization needed...

2006-08-18 Thread Robert Watson
On Fri, 18 Aug 2006, Martin Eugen wrote: I have a simple application, that deals with lots of dgram sockets (UDP). Thousands of them. Basically, its purpose is to maintain pairs of sockets and when data is received on one of the sockets it peeks through it (doing some simple statistic

Re: The nature of kernel of the FreeBSD

2006-09-09 Thread Robert Watson
On Wed, 6 Sep 2006, Julian Elischer wrote: Eder wrote: Kernel of the FreeBSD is monolithic, correct !!! The MacOS is derived from kernel of the FreeBSD, correct !!! no, wrong. The MacOS kernel is related distantly to the FreeBSD kernel. It has been derived from MACH 3 and MACH 2.5 which

Re: How to find a certain socket?

2006-09-21 Thread Robert Watson
On Thu, 21 Sep 2006, Maxim Konovalov wrote: [...] you're interested only in closing TCP sockets, then the existing tcpkill command may well do what you want. It's tcpdrop(8). Er, yes, so it is. Thanks :-). Robert N M Watson Computer Laboratory University of Cambridge

Re: 6.1-STABLE hangs, ddb shows 'acpi_timer_read'?

2006-10-20 Thread Robert Watson
On Fri, 20 Oct 2006, Karl Pielorz wrote: On Fri, Oct 20, 2006 at 11:56:33AM +0100, Karl Pielorz wrote: I have a crash dump from it - which I've saved (I'm moderately familiar with working with dumps, but this one is split into two?) If anyone has any pointers, or can do some hand holding

Re: Process arguments

2006-10-30 Thread Robert Watson
On Mon, 30 Oct 2006, Dave Clausen wrote: I'm a n00b to the FreeBSD kernel and I'm trying to log all commands run on the command line from within the kernel for security purposes by loading a kernel module which redefines execve(). I've successfully created the KLD and have it working, but

Re: Process Debugging questions

2006-11-11 Thread Robert Watson
On Sun, 12 Nov 2006, trowa-4 wrote: FreeBSD provides the ptrace system call for controlling and debugging the execution of a process. An alternative to the ptrace system call is the /proc filesystem. The functionality provided by the /proc filesystem is the same as that provided by ptrace;

Re: Kqueue write event position?

2006-11-23 Thread Robert Watson
On Wed, 22 Nov 2006, Ivan Voras wrote: From the kqueue(2) manual: EVFILT_VNODE Takes a file descriptor as the identifier and the events to watch for in fflags, and returns when one or more of the requested events occurs on the descriptor. The

Re: vn_fullpath question.

2006-11-28 Thread Robert Watson
On Mon, 27 Nov 2006, Nikolay Pavlov wrote: Hi. I am trying to extend fstat utility, so that it can use name cache to recreate full path at least for text. I have found vn_fullpath function usefull in this case. I am newbe in C, so it could be stupid question, but could someone explaine what

Re: Unable to stop a jail

2006-12-01 Thread Robert Watson
On Fri, 1 Dec 2006, Bjoern A. Zeeb wrote: On Fri, 1 Dec 2006, Steven Hartland wrote: We've got a jail here which we cant stop with either killall jexec or jkill all return success but jls still reports the jail as running. The machines running several other jails which I cant restart at

Re: Unable to stop a jail

2006-12-01 Thread Robert Watson
On Fri, 1 Dec 2006, Steven Hartland wrote: In essence, this would move to having two reference counts on the prison: a strong reference that has to do with having process members, and a weak reference that has to do with ucreds pointing at the prison. The proposal sounds like a good idea

Re: tracing AND intercepting syscalls?

2006-12-03 Thread Robert Watson
On Sat, 2 Dec 2006, Stanislav Ochotnicky wrote: trustedbsd's MAC framework: i've read manual, looked at source etc. And I couldn't find a way to stop at every syscall certain process has made. There is mac_syscall() function but as far as I could tell, it only registers new syscall. All in

Re: Tools for FreeBSD development

2006-12-03 Thread Robert Watson
On Sat, 2 Dec 2006, Kevin Sanders wrote: On 12/2/06, Alexander Kabaev [EMAIL PROTECTED] wrote: I personally think that having a dedicated box in disk-less configuration is the best option out there. The ability to quickly go through series of hands/reboots without any associated fsck runs

Re: Tools for FreeBSD development

2006-12-03 Thread Robert Watson
On Sun, 3 Dec 2006, Garrett Cooper wrote: Giorgos Keramidas wrote: On 2006-12-02 20:05, Kevin Sanders [EMAIL PROTECTED] wrote: On 12/2/06, Alexander Kabaev [EMAIL PROTECTED] wrote: I personally think that having a dedicated box in disk-less configuration is the best option out there. [...]

Re: Example network protocol implementation

2006-12-11 Thread Robert Watson
On Sun, 10 Dec 2006, M. Warner Losh wrote: In message: [EMAIL PROTECTED] Vishal Patil [EMAIL PROTECTED] writes: : Would like to thank you all folks. These conversations are really good way : of learning things...Also it is good to know different perspectives for : solving the same

Re: Example network protocol implementation

2006-12-11 Thread Robert Watson
On Sat, 9 Dec 2006, Vishal Patil wrote: Could someone point me to an example that shows a SIMPLE network protocol implemented over TCP/IP inside the FreeBSD kernel. I think I could look at the NFS client driver but is there an example simpler than that. Also is there a guide explaining how to

Re: Locking fundamentals

2006-12-22 Thread Robert Watson
On Thu, 21 Dec 2006, Attilio Rao wrote: I disagree. There are many uses of atomic operations in the kernel that are not for locks or refcounts. It's a bad idea to use locks if you can achieve the same thing locklessly, with atomic operations. I can agree with you about this but atomic

Re: 6.1-RELEASE / 6.2 Kernel Crash...

2006-12-29 Thread Robert Watson
On Thu, 28 Dec 2006, Jan Knepper wrote: Sounds like a bug in the support for your ATA hardware, or your hardware is broken. The very least you'll need to do is to obtain a crashdump and debugging backtrace (see the developers handbook) and CC it to sos@ This is getting funnier... I added:

Re: Init.c, making it chroot

2006-12-30 Thread Robert Watson
On Sat, 30 Dec 2006, Oliver Fromme wrote: In particular, there is no /dev, so I still get this one from the kernel: Lookup of /dev for devfs, error: 2 But then init and everything starts up fine, so it doesn't seem to cause any harm. That raises two questions: 1- Why does the kernel

Re: Init.c, making it chroot

2006-12-30 Thread Robert Watson
On Sat, 30 Dec 2006, M. Warner Losh wrote: In message: [EMAIL PROTECTED] Robert Watson [EMAIL PROTECTED] writes: : Mounting a second devfs instance is undesirable for a number of : reasons, not least that you end up with an extra file system : floating around (although not reachable

Re: Modified version of jexec allows non-root access into jails

2006-12-31 Thread Robert Watson
On Sat, 30 Dec 2006, Colin Percival wrote: Bill Moran wrote: You also describe a scenerio where a user can create a jail of his own design and give himself root inside it, thus allowing him to use the setuid trick to get root on the host as well. The place this falls down is that the user

Re: Init.c, making it chroot

2006-12-31 Thread Robert Watson
On Sun, 31 Dec 2006, Tim Kientzle wrote: Robert Watson wrote: ... It used to be that only certain file systems could be used as a root file system, because only they knew how to bypass the lookup procedure to find their device node, short-circuiting to the in-kernel device list. So why

Re: a question regarding sys/shm.h

2007-01-31 Thread Robert Watson
On Wed, 31 Jan 2007, Dag-Erling Smørgrav wrote: Pascal Hofstee [EMAIL PROTECTED] writes: Any additional sugestions/objections are always greatly appreciated. On 32-bit platforms (i386, powerpc), int is a 32-bit signed integer while size_t is a 32-bit unsigned integer. On 64-bit platforms

Re: a question regarding sys/shm.h

2007-02-15 Thread Robert Watson
On Thu, 15 Feb 2007, Pascal Hofstee wrote: On 1/31/07, Robert Watson [EMAIL PROTECTED] wrote: If we do decide to go ahead with the ABI change, there are a number of other things that should be done simultaneously, such as changing the uid and gid fields to uid_t and gid_t. I would very much

Re: nullfs and named pipes.

2007-02-16 Thread Robert Watson
On Thu, 15 Feb 2007, Kostik Belousov wrote: On Thu, Feb 15, 2007 at 03:22:59PM +, Josef Karthauser wrote: On Thu, Feb 15, 2007 at 02:57:50PM +0100, Jeremie Le Hen wrote: Note that all processes within a jail can only intefere with processes from another jail or host as if they were on

Re: a question regarding sys/shm.h

2007-02-16 Thread Robert Watson
On Thu, 15 Feb 2007, Pascal Hofstee wrote: On Thu, 2007-02-15 at 13:41 +, Robert Watson wrote: Unfortunately, things are a bit more tricky. The problem is not so much the API, where converting size_t/int is a relative non-event, rather, the ABI. By changing the size of a field in a data

Re: nullfs and named pipes.

2007-02-19 Thread Robert Watson
On Sun, 18 Feb 2007, Josef Karthauser wrote: On Fri, Feb 16, 2007 at 04:36:56PM +0200, Kostik Belousov wrote: cvs diff: Diffing . Index: null_subr.c === RCS file: /home/ncvs/src/sys/fs/nullfs/null_subr.c,v

Re: nullfs and named pipes.

2007-02-19 Thread Robert Watson
On Mon, 19 Feb 2007, Robert Watson wrote: On Sun, 18 Feb 2007, Josef Karthauser wrote: Well, the worry would be that you would be replacing a clean error on failure with an occasional panic, the normal symptom of a race condition. I think I'm alright with the VFIFO case above, but I'm quite

Re: nullfs and named pipes.

2007-02-19 Thread Robert Watson
On Mon, 19 Feb 2007, Robert Watson wrote: On Mon, 19 Feb 2007, Robert Watson wrote: On Sun, 18 Feb 2007, Josef Karthauser wrote: Well, the worry would be that you would be replacing a clean error on failure with an occasional panic, the normal symptom of a race condition. I think I'm

Re: Progress on scaling of FreeBSD on 8 CPU systems

2007-02-25 Thread Robert Watson
On Sun, 25 Feb 2007, Kris Kennaway wrote: On Sat, Feb 24, 2007 at 10:00:35PM -0700, Coleman Kane wrote: What does the performance curve look like for the in-CVS 7-CURRENT tree with 4BSD or ULE ? How do those stand up against the Linux SMP scheduler for scalability. It would be nice to see

Re: Progress on scaling of FreeBSD on 8 CPU systems

2007-02-25 Thread Robert Watson
On Sun, 25 Feb 2007, Martin Blapp wrote: It would be really great if we could find workload owners who would maintain easy-to-run benchmark configurations and also run them regularly on a fixed hardware configuration over a long time publishing results and testing patches. Kris has done this

Re: inconsistency in using vn_fullpath1()

2007-03-04 Thread Robert Watson
On Sun, 4 Mar 2007, Divacky Roman wrote: I noticed that kern___getcwd() calls vn_fullpath1() with Giant held like this: mtx_lock(Giant); FILEDESC_LOCK(fdp); error = vn_fullpath1(td, fdp-fd_cdir, fdp-fd_rdir, tmpbuf, bp, buflen); FILEDESC_UNLOCK(fdp);

Re: investigation of Giant usage in kernel

2007-03-05 Thread Robert Watson
On Sun, 4 Mar 2007, Divacky Roman wrote: I looked at where Giant is held in the kernel and I found these interesting things: 1) in fs/fifofs/fifo_vnops.c we lock Giant when calling sorecieve()/sosend() this is a bandaid for fixing a race that doesnt have to exist anymore. ie. it needs some

Re: Fwd: user-space locks

2007-03-09 Thread Robert Watson
On Fri, 9 Mar 2007, Kip Macy wrote: Do you think that the umtx KPI may have reached the appropriate level of maturity for writing up a man page? The KSE equivalent has had a substantive man page for quite some time. I would be more than happy to do any of the necessary technical copy-editing

Re: user-space locks

2007-03-09 Thread Robert Watson
On Sat, 10 Mar 2007, Vlad GALU wrote: On 3/10/07, Kip Macy [EMAIL PROTECTED] wrote: umtx Is it safe/recommended to use spinlocks, like in jemalloc, for very small portions of code? I'm particularly interested in protecting writes to a couple of word sized ints on amd64, so the critical

Re: One method to recover a lost root password

2007-03-17 Thread Robert Watson
On Fri, 16 Mar 2007, Garrett Cooper wrote: David S. Madole wrote: From Derekj Tourneo on Friday, March 16, 2007 4:46 PM How I recovered a lost root password in FreeBSD Luckily I did know one user name and it had no password. cgadmin going to the repair mode with CDROM/DVD option off the

Re: Locking etc. (Long, boring, redundant, newbie questions)

2007-03-28 Thread Robert Watson
On Wed, 28 Mar 2007, Duane Whitty wrote: I know this is trivial material but I believe I have finally come to an understanding about some things that I have been struggling with. Maybe by putting this in words I can help some other newbies like myself who are hoping to eventually understand

Re: kevent and unix dgram socket problem

2007-04-03 Thread Robert Watson
On Tue, 3 Apr 2007, Jason Carroll wrote: // create the local address, bind listen struct sockaddr_un addr; memset(addr, 0, sizeof(addr)); addr.sun_family = AF_LOCAL; strncpy(addr.sun_path, usock, UN_PATH_LEN - 1); assert(bind(fd, (sockaddr*) addr, sizeof(sockaddr_un)) == 0);

Re: Mac OS underlying FreeBSD - does it run Linux emulation?

2007-04-04 Thread Robert Watson
On Wed, 4 Apr 2007, Mike Meyer wrote: In [EMAIL PROTECTED], Christoph P. Kukulies [EMAIL PROTECTED] typed: does anyone know whether one can run Linux applications under the underlying FreeBSD of the MAC OS (on an Intel Core Duo mini Mac)? No, you can't. The underlying FreeBSD is userland

Re: Mac OS underlying FreeBSD - does it run Linux emulation?

2007-04-05 Thread Robert Watson
On Wed, 4 Apr 2007, Coleman Kane wrote: While it's true you can't run Linux binaries on Mac OS X, it's not for the reason you're suggesting, and your statement regarding FreeBSD kernel code in Mac OS X is simply incorrect. The Mac OS X kernel, XNU, contains significant quantities of FreeBSD

Re: msleep() on recursivly locked mutexes

2007-04-28 Thread Robert Watson
On Thu, 26 Apr 2007, Julian Elischer wrote: Further the idea that holding a mutex except for when we sleep is a generally bright idea is also a bit odd to me.. If you hold a mutex and release it during sleep you probably should invalidate all assumptions you made during the period before you

Re: msleep() on recursivly locked mutexes

2007-04-28 Thread Robert Watson
On Fri, 27 Apr 2007, Julian Elischer wrote: Basically you shouldn't have a recursed mutex FULL STOP. We have a couple of instances in the kernel where we allow a mutex to recurse, but they had to be hard fought, and the general rule is Don't. If you are recursing on a mutex you need to

Re: Experiences with 7.0-CURRENT and vmware.

2007-05-10 Thread Robert Watson
On Thu, 10 May 2007, Darren Reed wrote: I'm using FreeBSD 7.0-CURRENT under vmware and there are a few issues. Generally speaking, I would suggest sending this post to current@, not hackers@, since your comments largely have to do between differences between -STABLE and -CURRENT, making it

Re: My PPP timer PR [nag]

2007-05-11 Thread Robert Watson
On Thu, 10 May 2007, Sergey Zaharchenko wrote: bin/102747 has been sitting there for about 8 months, with no activity since it was assigned to brian@, all my mail to whom bounces [CC'd just in case]. The patch attached in the PR has been working for me since, so it not being fixed in the

Re: SoC: Distributed Audit Daemon project

2007-05-28 Thread Robert Watson
On Sat, 26 May 2007, M. Warner Losh wrote: In message: [EMAIL PROTECTED] Benjamin Lutz [EMAIL PROTECTED] writes: : On Friday 25 May 2007 01:22:21 Alexey Mikhailov wrote: : [...] : 2. As I said before initial subject of this project was Distributed : audit daemon. But after some

Re: p_vmspace in syscall

2007-07-04 Thread Robert Watson
On Mon, 2 Jul 2007, Nicolas Cormier wrote: I am trying to map some data allocated in kernel to a user process (via a syscall). I need the proc's vmspace, but the value of p_vmspace of the input proc argument is NULL ... How can I get a valid vmspace ? When operating in a system call, the

Re: p_vmspace in syscall

2007-07-04 Thread Robert Watson
On Wed, 4 Jul 2007, Nicolas Cormier wrote: On 7/4/07, Robert Watson [EMAIL PROTECTED] wrote: On Mon, 2 Jul 2007, Nicolas Cormier wrote: I am trying to map some data allocated in kernel to a user process (via a syscall). I need the proc's vmspace, but the value of p_vmspace of the input

Re: p_vmspace in syscall

2007-07-04 Thread Robert Watson
On Wed, 4 Jul 2007, Nicolas Cormier wrote: Currently I'm just trying to play with kernel/modules/vm ... I'm a newbie in kernel development and I just want to make a little prototype of an in-kernel network allocator. To start I only need to map a page (1024 bytes) from kernel to user

Re: add closefrom() call

2007-07-06 Thread Robert Watson
On Fri, 6 Jul 2007, Julian Elischer wrote: Ed Schouten wrote: * LI Xin [EMAIL PROTECTED] wrote: Here is my implementation for FreeBSD. Some difference between my and DragonFly's implementation: - closefrom(-1) would be no-op on DragonFly, my version would close all open files (From my

Re: add closefrom() call

2007-07-10 Thread Robert Watson
On Fri, 6 Jul 2007, LI Xin wrote: To RW: I have not found a suitable audit event for this, should I create a new event? BTW, I can add an AUE_CLOSEFROM event to OpenBSM. This may require a little work by event consumers who will now need to know about an additional source of implicit

Re: [panic]Fatal trap 12: page fault while in kernel mode

2007-08-02 Thread Robert Watson
On Tue, 31 Jul 2007, ytriffy wrote: Trap 12 occured when I rebooted PC. Sending you backtrace. My system: amd64 3200+ Venice, MB ECS nForce4 A939,Samsung 250GB and WD 250 GB, 2 memory banks 512MB each, videocard: Geforce 6600gt 128MB, NIC on realtek chip, sound card cirrus logic cs4281. It's

Re: work praudit with tee grep

2007-08-21 Thread Robert Watson
On Mon, 20 Aug 2007, sam wrote: I am installed AUDIT http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/audit.html # praudit /etc/auditpipe | grep xxx # praudit /etc/auditpipe | tee file.log # praudit /etc/auditpipe file.log this is not work please help me Vladimir, Could you

Re: work praudit with tee grep

2007-08-21 Thread Robert Watson
On Tue, 21 Aug 2007, Eric Crist wrote: thx this not working wite up buffer-pipe to 4096 bytes Can I ask what is in the /etc/auditpipe file? I believe what is meant is /dev/auditpipe, which provides a live event stream from the kernel's audit subsystem in FreeBSD 6.2 and later. You can

Re: praudit parse with gnu grep

2007-08-28 Thread Robert Watson
On Wed, 22 Aug 2007, sam wrote: Index: praudit.c === RCS file: /data/fbsd-cvs/ncvs/src/contrib/openbsm/bin/praudit/praudit.c,v retrieving revision 1.1.1.3 diff -u -r1.1.1.3 praudit.c --- praudit.c16 Apr 2007 15:36:57 -

Re: Exclusive binary files

2007-09-02 Thread Robert Watson
On Sun, 2 Sep 2007, Max Laier wrote: On Saturday 01 September 2007, Klaus Schneider wrote: Well, anybody know a way to make the FreeBSD run just binaries that I have compiled? For example: A hacker get a access to a shell into my server, and then it put a exploit code, but on the machine

Re: How to get filename of an open file descriptor

2007-11-12 Thread Robert Watson
On Mon, 12 Nov 2007, Yuri wrote: I am looking for functionality similar to Linux's /proc/PID/fd/FD. I need to know what is the file name of an open file descriptor. /proc/PID/fd is missing on FreeBSD. There's something called 'fdescfs'. In /dev/fd/ it shows the list of file descriptors. But

Re: How to get filename of an open file descriptor

2007-11-12 Thread Robert Watson
problems, do let me know. Robert N M Watson Computer Laboratory University of Cambridge Yuri Quoting Robert Watson [EMAIL PROTECTED]: On Mon, 12 Nov 2007, Yuri wrote: I am looking for functionality similar to Linux's /proc/PID/fd/FD. I need to know what is the file name of an open file

Re: How to get filename of an open file descriptor

2007-11-12 Thread Robert Watson
On Mon, 12 Nov 2007, Yuri wrote: I looked at the patch. It retrieves file description information through 'sysctl' calls with proprietary keys. Isn't it better architecturally to expose the same information through procfs interface? At least from the filesystem level and up standard tools

Re: How to get filename of an open file descriptor

2007-11-14 Thread Robert Watson
, so it is a fairly straight forward MFC. Robert N M Watson Computer Laboratory University of Cambridge Yuri Quoting Robert Watson [EMAIL PROTECTED]: On Mon, 12 Nov 2007, Yuri wrote: Thank you for your response. I attempted to compile procstat but procstat.h seems to be missing in tgz

Re: How to get filename of an open file descriptor

2007-11-14 Thread Robert Watson
On Wed, 14 Nov 2007, Skip Ford wrote: Robert Watson wrote: On Tue, 13 Nov 2007, Yuri wrote: Thank you for letting me know about this new feature procstat. But is there any workaround in 6.3? I need to port one package that needs to lookup file names by FDs to the current FreeBSD and need

Re: A TrustedBSD voluntary sandbox policy.

2007-11-16 Thread Robert Watson
On Thu, 8 Nov 2007, Andrea Campi wrote: On Wed, Nov 07, 2007 at 10:20:28PM -0500, [EMAIL PROTECTED] wrote: I'm considering developing a policy/module for TrustedBSD loosely based on the systrace concept - A process loads a policy and then executes another program in a sandbox with fine

Re: How to get filename of an open file descriptor

2007-11-16 Thread Robert Watson
On Wed, 14 Nov 2007, Skip Ford wrote: I agree regarding the duplication with ps(1) -- however, I'm generally of the opinion that ps(1) is overburdened as tools go, and that the goals are actually somehwat different--procstat(1) intentionally doesn't have the ability to generate a list of

Re: How to get filename of an open file descriptor

2007-11-18 Thread Robert Watson
On Sun, 18 Nov 2007, Skip Ford wrote: Thomas Hurst wrote: * Skip Ford ([EMAIL PROTECTED]) wrote: It would be interesting to know for sure, though, if Solaris uses hardlinks and, if so, what their utility is called. Nope. They *do* use hardlinks in that they have 32bit wrappers in /usr/bin

Re: How to get filename of an open file descriptor

2007-11-19 Thread Robert Watson
On Sun, 18 Nov 2007, Skip Ford wrote: 1) procstat_args() doesn't use a local variable and the buffer doesn't get cleared between calls: $ procstat -a 797 PID ARGS 797 audacious $ procstat -a 795 797 PID ARGS 795 xterm -xtsessionID 11c0a801030001185368263000768 797 audacious essionID

Re: peak mbuf stat missing ... and needed ...

2007-11-22 Thread Robert Watson
On Mon, 19 Nov 2007, Juri Mianovich wrote: I am sorry to repost, but I cannot get any answer on this from -net or -questions ... is there any answer to getting this stat ? (see below) Juri, I recognize the importance of your point, and can shed a little light on why things are the way

Re: a strange/stupid question

2007-11-24 Thread Robert Watson
On Sat, 24 Nov 2007, Aryeh Friedman wrote: Where do I find the main() [and/or other entery point] for the kernel I tend to understand stuff better if I follow the flow of exec from the start Everyone else is suggesting very earlier in the boot, but I think the point where the kernel

Re: Before After Under The Giant Lock

2007-11-25 Thread Robert Watson
On Sun, 25 Nov 2007, binto wrote: From what I read in The Design and Implementation of the FreeBSD Operating System,said: 'However, most of the heavily used parts of the kernel have been moved out from under the giant lock, including much of the virtual memory system, the networking stack,

Re: Before After Under The Giant Lock

2007-11-25 Thread Robert Watson
On Sun, 25 Nov 2007, Christopher Chen wrote: On Nov 25, 2007 12:05 PM, Christopher Chen [EMAIL PROTECTED] wrote: On Nov 25, 2007 3:13 AM, Robert Watson [EMAIL PROTECTED] wrote: At this point, Giant is gradually becoming a lock around the tty, newbus, usb, and msdosfs code, and we're largely

Re: Before After Under The Giant Lock

2007-11-26 Thread Robert Watson
On Sun, 25 Nov 2007, Stephen Montgomery-Smith wrote: (Also when I run 4 threads with 2 cpus, each with hyperthreading, it goes 2.5 to 3 times faster - surprising since hyperthreading gets quite bad press for its performance improvements - I should add that Linux didn't do at all well at

Re: find_symdef() returns invalid value.

2007-11-27 Thread Robert Watson
On Tue, 27 Nov 2007, vasanth raonaik wrote: Is any one looking into this issue. Please mail me for more info. Vasanth, Could you file a problem report using send-pr on this problem? FreeBSD hackers@ has a somewhat mixed subscription, and may not catch all the relevant developers, and

Updated procstat(1)

2007-11-27 Thread Robert Watson
Dear all, I've updated the procstat(1) kernel patch and userland tool; the updated version can be found at: http://www.watson.org/~robert/freebsd/20071127-procstat.tgz The new version includes a number of changes from the old version, including: - A number of bug fixes and cleanliness

Re: Updated procstat(1)

2007-11-28 Thread Robert Watson
On Tue, 27 Nov 2007, Wesley Shields wrote: Here's an updated patch to sys/amd64/amd64/db_trace.c (it's a diff against revision 1.81). It changes register rbp to be register_t rbp and fixes the extra W in TD_IS_SWAPPED. The kernel built fine after these changes. I'll test it out tomorrow.

Re: Updated procstat(1)

2007-11-28 Thread Robert Watson
On Wed, 28 Nov 2007, Skip Ford wrote: - -a now means all processes, Thanks. :-) I'm a little surprised. You seemed pretty dedicated to a per-process tool. I was, but then I read your e-mail and became convinced that the first patch that would be submitted against procstat(1) would be a

Re: Updated procstat(1)

2007-11-28 Thread Robert Watson
On Wed, 28 Nov 2007, Skip Ford wrote: Skip Ford wrote: Robert Watson wrote: On Wed, 28 Nov 2007, Skip Ford wrote: - -a now means all processes, Thanks. :-) I'm a little surprised. You seemed pretty dedicated to a per-process tool. I was, but then I read your e-mail and became

Re: Updated procstat(1)

2007-11-28 Thread Robert Watson
On Wed, 28 Nov 2007, Bert JW Regeer wrote: Have the licensing issues been resolved with regards to DTrace? This is a feature I was looking forward to in 7.0-RELEASE but it had been delayed because of the licensing. The problems had to do with non-alignment of the licensing vs. software

Re: Clipboard Daemon - thinking of writing one :)

1999-07-08 Thread Robert Watson
On Thu, 8 Jul 1999, Mikhail Ramendik wrote: Hello! I am new to FreeBSD and Unix, but not new to programming and TCP/IP. I have noticed that there is no good clipboard system in FreeBSD. X has only a rudimentary clipboard, and outside X there is no clipboard that would be shared between

Re: InterMezzo: Project for kernel/FS hackers

1999-07-23 Thread Robert Watson
On Thu, 22 Jul 1999, Nik Clayton wrote: Hi chaps, Not entirely sure which list to post this too, so I figured that -hackers was probably most appropriate. Has anyone had the chance to look at InterMezzo, website at http://www.inter-mezzo.org/ It's main claim to fame is that it

Paper: Kernel-Supported Speculative Process Execution for Transparent File System Prefetching

1999-07-23 Thread Robert Watson
-- Title Kernel-Supported Speculative Process Execution for Transparent File System Prefetching CMU 15-712 Software Systems Authors Ted Pham and Robert Watson Date May 7, 1999 Abstract This paper explores the feasibility of an operating system kernel performing

yet more ways to attack executing binaries (was Re: deny ktrace without read permissions? )

1999-07-26 Thread Robert Watson
Another cool attack on this mechanism is if the binary uses shared libraries: modify LD_LIBRARY_PATH so that its favorite shared library is your own version of the library, that proceeds to dump the entire application to disk when executed. The challenge of adding additional

Re: Proposal: Add generic username for 3rd-party MTA's

1999-09-06 Thread Robert Watson
Both postmaster and mailer-daemon seem to have some amount of historical precedent. On Thu, 2 Sep 1999, Warner Losh wrote: In message [EMAIL PROTECTED] Mike Smith writes: : If we do this, I hope a more obvious name is chosen; something like : "mailman" might be a start. Or "mailperson",

IETF gettogether (was: Re: ISA Plug 'n Play support / kernel -c bug / IETF)

1999-10-18 Thread Robert Watson
Can't help you with the PnP stuff, but I will be at the Washington, DC IETF meeting in November :-). Would be great to do a FreeBSD-oriented get-together... That said, people are rapidly claiming the evenings for a variety of get-togethers, so claim one soon. On Fri, 15 Oct 1999, Graham

Re: IETF gettogether

1999-10-20 Thread Robert Watson
On Tue, 19 Oct 1999, Graham Wheeler wrote: On Mon, 18 Oct 1999, Robert Watson wrote: Can't help you with the PnP stuff, but I will be at the Washington, DC IETF meeting in November :-). Would be great to do a FreeBSD-oriented get-together... That said, people are rapidly claiming

Re: IETF gettogether

1999-10-21 Thread Robert Watson
On Wed, 20 Oct 1999, Jonathan M. Bresler wrote: sounds great! let me know which day you all pick and i'll do my best to meet you there. It has been pointed out to me that Tuesday night is the night of the Social and therefore another evening might be a better choice. How about Wednesday

Re: Finer-grained securelevel: proof of concept

1999-10-21 Thread Robert Watson
Good grief, there are a lot of weird gramatical things in that email I sent. I guess that's what I get for not getting enough sleep and then expecting to generate cogent and comprehensible emails first thing in the morning.. The meaning of the email makes it across, though, I think :-)

Re: Finer-grained securelevel: proof of concept

1999-10-21 Thread Robert Watson
On 21 Oct 1999, Dag-Erling Smorgrav wrote: Robert Watson [EMAIL PROTECTED] writes: Very clean, pretty, etc -- only one object: please call it something other than capabilities :-). [deletia] Please read the thread on -security and -arch that lead to these patches. I did--hence my

Staroffice 5.1 on 3.3-RELEASE (how I ended up getting it to work)

1999-10-21 Thread Robert Watson
This morning I decided to install Staroffice 5.1 on one of my 3.3-RELEASE machines -- previously I had only used the StarDivision version of StarOffice, and only on 4.0. Needless to say, I ran into some bumps, but I figured I'd let people know how I ended up getting it working for me based on

Re: Finer-grained securelevel: proof of concept

1999-10-21 Thread Robert Watson
On Fri, 22 Oct 1999, Poul-Henning Kamp wrote: In message [EMAIL PROTECTED], Robert Watson writes: On 21 Oct 1999, Dag-Erling Smorgrav wrote: Patches are available from http://www.freebsd.org/~des/. This is strictly proof-of-concept; the patches demonstrate that fine-grained security

Re: FreeBSD at IETF (was: Re: IETF gettogether)

1999-11-02 Thread Robert Watson
On Tue, 2 Nov 1999, Jonathan M. Bresler wrote: How about Wednesday for dinner (1730-1930 EST) before the open plenary? where would we be getting together? As I mention in my email, probably initially in the lobby, and then moving on to some local restaurant. If we get a number of

Re: FreeBSD at IETF (was: Re: IETF gettogether)

1999-11-02 Thread Robert Watson
On Tue, 2 Nov 1999, Graham Wheeler wrote: On Tue, 02 Nov 1999, Robert Watson wrote: On Thu, 21 Oct 1999, Robert Watson wrote: How about Wednesday for dinner (1730-1930 EST) before the open plenary? Anyhow, for anyone interested--we'll be holding a FreeBSD-oriented dinner

FreeBSD at IETF (was: Re: IETF gettogether)

1999-11-02 Thread Robert Watson
On Thu, 21 Oct 1999, Robert Watson wrote: How about Wednesday for dinner (1730-1930 EST) before the open plenary? Since no one has objected to this time, I thought I'd repost and notify those interested that I think the Wednesday dinner sounds like a good time to do it. Offhand, I forget

  1   2   3   4   5   6   7   8   >