Whamcloud - gitweb
LU-4476 kernel: support process namespace containers
[fs/lustre-release.git] / libcfs / libcfs / linux / linux-module.c
index 1294537..f98ba64 100644 (file)
@@ -137,7 +137,7 @@ static long libcfs_ioctl(struct file *file,
        struct cfs_psdev_file    pfile;
        int    rc = 0;
 
-       if (current_fsuid() != 0)
+       if (!capable(CAP_SYS_ADMIN))
                return -EACCES;
 
        if ( _IOC_TYPE(cmd) != IOC_LIBCFS_TYPE ||