Linux Headquarters
[ Register ]
[ About us ] [ Home Page ]

Advertisement
[ Kernel ] [ Documentation ] [ Links ] [ Books ]

Advertisement

Kernel v2.1.100 /ipc/util.c

Filename:/ipc/util.c
Lines Added:3
Lines Deleted:1
Also changed in: (Previous) 2.1.90  2.1.72  2.1.37  2.1.6  1.1.85  1.1.69 
(Following) 2.1.115  2.1.118  2.1.120  2.1.130 

Location
[  2.1.100
  [  ipc
     o  util.c

Patch

diff -u --recursive --new-file v2.1.99/linux/ipc/util.c linux/ipc/util.c
--- v2.1.99/linux/ipc/util.c   Tue Mar 17 22:18:15 1998
+++ linux/ipc/util.c   Wed May  6 10:56:06 1998
@@ -47,8 +47,10 @@
    else if (in_group_p(ipcp->cgid) || in_group_p(ipcp->gid))
       granted_mode >>= 3;
    /* is there some bit set in requested_mode but not in granted_mode? */
-   if ((requested_mode & ~granted_mode & 0007) && !suser())
+   if ((requested_mode & ~granted_mode & 0007) && 
+       !capable(CAP_IPC_OWNER))
       return -1;
+
    return 0;
 }
 


Comments: webmaster (at) linuxhq.com.
Advertising: banners (at) linuxhq.com.
Compilation ©1998-2008 Linux Headquarters, Inc.