Whamcloud - gitweb
LU-9859 libcfs: replace all CFS_CAP_* macros with CAP_*
[fs/lustre-release.git] / lustre / obdclass / class_obd.c
index 9b34434..6a9dc6c 100644 (file)
@@ -484,7 +484,7 @@ static long obd_class_ioctl(struct file *filp, unsigned int cmd,
 
        ENTRY;
        /* Allow non-root access for some limited ioctls */
-       if (!cfs_capable(CFS_CAP_SYS_ADMIN))
+       if (!cfs_capable(CAP_SYS_ADMIN))
                RETURN(err = -EACCES);
 
        if ((cmd & 0xffffff00) == ((int)'T') << 8) /* ignore all tty ioctls */