lkml.org 
[lkml]   [1998]   [Jun]   [15]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
DateSun, 14 Jun 1998 23:29:46 -0700
From"Vadim E. Kogan" <>
SubjectRe: [patch] /proc fix and experimental security patch
orbats sent me base.c from 2.0.34. here's same thing as first patch, but
for 2.0.34.

Vadim--- base.c~	Sun Jun 14 23:24:16 1998
+++ base.c	Sun Jun 14 23:25:51 1998
@@ -53,14 +53,11 @@
 {
 	struct task_struct * p;
 	int pid = inode->i_ino >> 16;
-	int ino = inode->i_ino & 0xffff;
 
 	for_each_task(p) {
 		if (p->pid == pid) {
-			if (p->dumpable || ino == PROC_PID_INO) {
-				inode->i_uid = p->euid;
-				inode->i_gid = p->gid;
-			}
+			inode->i_uid = p->euid;
+			inode->i_gid = p->gid;
 			return;
 		}
 	}
\
 
 \ /
  Last update: 2005-03-22 12:43    [W:0.144 / U:1.290 seconds]
©2003-2008 Jasper Spaans