summaryrefslogtreecommitdiffstats
path: root/fs/cifs/cifsglob.h
diff options
context:
space:
mode:
authorRonnie Sahlberg <lsahlber@redhat.com>2018-10-07 20:19:58 -0400
committerSteve French <stfrench@microsoft.com>2018-10-23 22:16:05 -0400
commitf5b05d622a3e99e6a97a189fe500414be802a05c (patch)
tree173d227ce653e9a9ee4fbaffb4a7f4c7e2ea715e /fs/cifs/cifsglob.h
parent8c1beb9801293b175cfa0341e5df89581a87dc02 (diff)
cifs: add IOCTL for QUERY_INFO passthrough to userspace
This allows userspace tools to query the raw info levels for cifs files and process the response in userspace. In particular this is useful for many of those data where there is no corresponding native data structure in linux. For example querying the security descriptor for a file and extract the SIDs. Signed-off-by: Ronnie Sahlberg <lsahlber@redhat.com> Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/cifs/cifsglob.h')
-rw-r--r--fs/cifs/cifsglob.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/cifs/cifsglob.h b/fs/cifs/cifsglob.h
index 819ead41bbe2..73801254cc21 100644
--- a/fs/cifs/cifsglob.h
+++ b/fs/cifs/cifsglob.h
@@ -465,6 +465,10 @@ struct smb_version_operations {
465 enum securityEnum (*select_sectype)(struct TCP_Server_Info *, 465 enum securityEnum (*select_sectype)(struct TCP_Server_Info *,
466 enum securityEnum); 466 enum securityEnum);
467 int (*next_header)(char *); 467 int (*next_header)(char *);
468 /* ioctl passthrough for query_info */
469 int (*ioctl_query_info)(const unsigned int xid,
470 struct cifsFileInfo *file,
471 unsigned long p);
468}; 472};
469 473
470struct smb_version_values { 474struct smb_version_values {