[5544] in Athena Bugs

home help back first fref pref prev next nref lref last post

changes.71#966

daemon@ATHENA.MIT.EDU (Richard Basch)
Sun Jul 15 18:45:30 1990

Date: Sun, 15 Jul 90 18:45:14 -0400
To: bugs@ATHENA.MIT.EDU
From: Richard Basch <probe@MIT.EDU>


This revised set of patches addresses the incomplete aspect of the first
set of patches...

-Richard


*** /tmp/,RCSt1015028	Sun Jul 15 18:43:10 1990
--- bsd-4.3/common/etc/mount/mount.c	Sun Jul 15 18:39:43 1990
***************
*** 471,477 ****
--- 471,481 ----
  	if (! bindresvport(s)) {
  		fprintf(stderr,"Warning: mount: cannot do local bind\n");
  	}
+ 
+ 	setreuid(geteuid(),getuid());
  	client->cl_auth = authunix_create_default();
+ 	setreuid(geteuid(),getuid());
+ 
  	timeout.tv_usec = 0;
  	timeout.tv_sec = 20;
  	rpc_stat = clnt_call(client, MOUNTPROC_MNT, xdr_path, &path,
*** /tmp/,RCSt1015028	Sun Jul 15 18:43:14 1990
--- bsd-4.3/common/etc/umount/umount.c	Sun Jul 15 18:42:17 1990
***************
*** 318,324 ****
--- 318,328 ----
  	if (! bindresvport(s)) {
  		fprintf(stderr, "umount: warning: cannot do local bind.\n");
  	}
+ 
+ 	setreuid(geteuid(),getuid());
  	client->cl_auth = authunix_create_default();
+ 	setreuid(geteuid(),getuid());
+ 
  	timeout.tv_usec = 0;
  	timeout.tv_sec = 25;
  	rpc_stat = clnt_call(client, MOUNTPROC_UMNT, xdr_path, &p,
*** /tmp/,RCSt1015028	Sun Jul 15 18:43:19 1990
--- athena/bin.athena/attach/mount.c	Thu Jun 21 02:05:06 1990
***************
*** 140,147 ****
  				at->hesiodname, at->host);
  		return (FAILURE);
  	}
!     
  	client->cl_auth = spoofunix_create_default(spoofhost);
  
  	timeout.tv_usec = 0;
  	timeout.tv_sec = 20;
--- 140,149 ----
  				at->hesiodname, at->host);
  		return (FAILURE);
  	}
! 
! 	setreuid(geteuid(),getuid());
  	client->cl_auth = spoofunix_create_default(spoofhost);
+ 	setreuid(geteuid(),getuid());
  
  	timeout.tv_usec = 0;
  	timeout.tv_sec = 20;
*** /tmp/,RCSt1015028	Sun Jul 15 18:43:25 1990
--- athena/bin.athena/attach/unmount.c	Sun Jul 15 18:37:28 1990
***************
*** 152,158 ****
--- 152,160 ----
  	return (SUCCESS);
      }
  
+     setreuid(geteuid(),getuid());
      client->cl_auth = spoofunix_create_default(spoofhost);
+     setreuid(geteuid(),getuid());
  
      timeout.tv_usec = 0;
      timeout.tv_sec = 20;

home help back first fref pref prev next nref lref last post