| Kernel v2.1.100 /mm/mlock.c |
|---|
 2.1.100
 mm
 mlock.c
diff -u --recursive --new-file v2.1.99/linux/mm/mlock.c linux/mm/mlock.c
--- v2.1.99/linux/mm/mlock.c Tue Mar 10 10:03:36 1998
+++ linux/mm/mlock.c Wed May 6 10:56:06 1998
@@ -144,7 +144,7 @@
struct vm_area_struct * vma, * next;
int error;
- if (!suser())
+ if (!capable(CAP_IPC_LOCK))
return -EPERM;
len = (len + ~PAGE_MASK) & PAGE_MASK;
end = start + len;
@@ -235,7 +235,7 @@
unsigned int def_flags;
struct vm_area_struct * vma;
- if (!suser())
+ if (!capable(CAP_IPC_LOCK))
return -EPERM;
def_flags = 0;
|