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

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

Kernel v2.1.100 /kernel/module.c

Filename:/kernel/module.c
Lines Added:3
Lines Deleted:3
Also changed in: (Previous) 2.1.90  2.1.89  2.1.86  2.1.78  2.1.69  2.1.60 
(Following) 2.1.104  2.1.105  2.1.128  2.1.130 

Location
[  2.1.100
  [  kernel
     o  module.c

Patch

diff -u --recursive --new-file v2.1.99/linux/kernel/module.c linux/kernel/module.c
--- v2.1.99/linux/kernel/module.c   Tue Mar 17 22:18:15 1998
+++ linux/kernel/module.c   Wed May  6 10:56:06 1998
@@ -120,7 +120,7 @@
    struct module *mod;
 
    lock_kernel();
-   if (!suser()) {
+   if (!capable(CAP_SYS_MODULE)) {
       error = -EPERM;
       goto err0;
    }
@@ -175,7 +175,7 @@
    struct module_ref *dep;
 
    lock_kernel();
-   if (!suser())
+   if (!capable(CAP_SYS_MODULE))
       goto err0;
    if ((namelen = get_mod_name(name_user, &name)) < 0) {
       error = namelen;
@@ -366,7 +366,7 @@
    int something_changed;
 
    lock_kernel();
-   if (!suser())
+   if (!capable(CAP_SYS_MODULE))
       goto out;
 
    if (name_user) {


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