diff options
Diffstat (limited to 'arch/sparc64/kernel/psycho.c')
-rw-r--r-- | arch/sparc64/kernel/psycho.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/sparc64/kernel/psycho.c b/arch/sparc64/kernel/psycho.c index 78a69e8df..bec1e9fef 100644 --- a/arch/sparc64/kernel/psycho.c +++ b/arch/sparc64/kernel/psycho.c @@ -2323,7 +2323,7 @@ asmlinkage int sys_pciconfig_read(unsigned long bus, unsigned int uint; int err = 0; - if(!suser()) + if(!capable(CAP_SYS_ADMIN)) return -EPERM; lock_kernel(); @@ -2361,7 +2361,7 @@ asmlinkage int sys_pciconfig_write(unsigned long bus, unsigned int uint; int err = 0; - if(!suser()) + if(!capable(CAP_SYS_ADMIN)) return -EPERM; lock_kernel(); |