patch-2.2.15 linux/kernel/sysctl.c
Next file: linux/mm/filemap.c
Previous file: linux/kernel/sys.c
Back to the patch index
Back to the overall index
-  Lines: 27
 -  Date:
Fri Apr 21 12:47:02 2000
 -  Orig file: 
v2.2.14/kernel/sysctl.c
 -  Orig date: 
Tue Jan  4 21:19:03 2000
 
diff -u --new-file --recursive --exclude-from ../../exclude v2.2.14/kernel/sysctl.c linux/kernel/sysctl.c
@@ -348,26 +348,6 @@
 	return error;
 }
 
-/* Like in_group_p, but testing against egid, not fsgid */
-static int in_egroup_p(gid_t grp)
-{
-	if (grp != current->egid) {
-		int i = current->ngroups;
-		if (i) {
-			gid_t *groups = current->groups;
-			do {
-				if (*groups == grp)
-					goto out;
-				groups++;
-				i--;
-			} while (i);
-		}
-		return 0;
-	}
-out:
-	return 1;
-}
-
 /* ctl_perm does NOT grant the superuser all rights automatically, because
    some sysctl variables are readonly even to root. */
 
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)