- cFYI(1,("ioctl file %p cmd %u arg %lu",filep,command,arg));
- switch(command) {
- case EXT2_IOC_GETFLAGS:
- if(CIFS_UNIX_EXTATTR_CAP & caps) {
+ switch (command) {
+ case CIFS_IOC_CHECKUMOUNT:
+ cFYI(1, ("User unmount attempted"));
+ if (cifs_sb->mnt_uid == current->uid)
+ rc = 0;
+ else {
+ rc = -EACCES;
+ cFYI(1, ("uids do not match"));
+ }
+ break;
+#ifdef CONFIG_CIFS_POSIX
+ case FS_IOC_GETFLAGS:
+ if (CIFS_UNIX_EXTATTR_CAP & caps) {
+ if (pSMBFile == NULL)
+ break;