From: Robert S. <rs...@po...> - 2002-10-20 04:17:04
|
>This is lucid point. And I think we should prepare some mechanism to >protect the password from ps. >Any idea? Simple argv modification should do it rspier@bear ~$ ./a.out test argv[1] is test argv[1] is **** PID TTY STAT TIME COMMAND 26963 pts/6 S 0:00 ./a.out **** #include <stdio.h> #include <stdlib.h> #include <sys/types.h> #include <unistd.h> int main( int argc, char **argv ) { char *c; char buf[128]; printf("argv[1] is %s\n",argv[1]); for (c=argv[1]; *c; c++) { *c = '*'; } printf("argv[1] is %s\n",argv[1]); sprintf(buf,"ps %d",getpid()); system(buf); } This is fine as a temporary workaround, but as a longer term plan, we should probably move away from multiple davfsd's and move to one handling multiple connections. kernel | userspace | | ---- Neon mount 1 | / coda <-> davfsd < --- Neon mount 2 \ ---- Neon mount 3 /webdav/mount{1,2,3} -R |