Re: [patch] /proc fix and experimental security patch

Vadim E. Kogan (vadim@vadim.gem.net)
Sun, 14 Jun 1998 23:29:46 -0700


This is a multi-part message in MIME format.
--------------CE8DF1F24097CC137B2D9774
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

orbats sent me base.c from 2.0.34. here's same thing as first patch, but
for 2.0.34.

Vadim
--------------CE8DF1F24097CC137B2D9774
Content-Type: text/plain; charset=us-ascii; name="proc-fix-2.0.34.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename="proc-fix-2.0.34.diff"

--- 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;
}
}

--------------CE8DF1F24097CC137B2D9774--

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu