summaryrefslogtreecommitdiffstats
path: root/drivers/char/sx.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/char/sx.c')
-rw-r--r--drivers/char/sx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/sx.c b/drivers/char/sx.c
index 024bada51..399f0102e 100644
--- a/drivers/char/sx.c
+++ b/drivers/char/sx.c
@@ -1647,7 +1647,7 @@ static int sx_fw_ioctl (struct inode *inode, struct file *filp,
#if 0
/* Removed superuser check: Sysops can use the permissions on the device
file to restrict access. Recommendation: Root only. (root.root 600) */
- if (!suser ()) {
+ if (!capable(CAP_SYS_ADMIN)) {
return -EPERM;
}
#endif