summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2019-04-05mount.cifs: detect GMT format of snapshot versionPavel Shilovsky1-7/+47
In order to provide an easy way to access snapshots a GMT token string should be allowed as a "snapshot" mount option argument, not SMB 100-nanoseconds time only. Detect if the argument is in GMT format and convert it to SMB 100-nanoseconds time before passing to the kernel. Signed-off-by: Pavel Shilovsky <pshilov@microsoft.com> Reviewed-by: Paulo Alcantara <palcantara@suse.de>
2019-04-05mount.cifs: add more options to help messagePavel Shilovsky1-5/+7
Signed-off-by: Pavel Shilovsky <pshilov@microsoft.com> Reviewed-by: Paulo Alcantara <palcantara@suse.de>
2019-04-05mount.cifs Add various missing parms from the help textSteve French1-3/+11
When you type mount.cifs --help there were more than 40 mount parms missing. Add 12 of the more common ones to what is displayed by help. Signed-off-by: Steve French <stfrench@microsoft.com> Reviewed-by: Paulo Alcantara <palcantara@suse.de>
2019-04-05smbinfo: make argument order consistentPavel Shilovsky1-12/+12
Signed-off-by: Pavel Shilovsky <pshilov@microsoft.com> Reviewed-by: Paulo Alcantara <palcantara@suse.de>
2019-04-05smbinfo: Add ability to query snapshots (previous versions)Steve French2-1/+109
"smbinfo list-snapshots" Signed-off-by: Steve French <stfrench@microsoft.com> Signed-off-by: Pavel Shilovsky <pshilov@microsoft.com> Reviewed-by: Paulo Alcantara <palcantara@suse.de>
2019-04-02smbinfo: missing help for fsctl-getobjidSteve French1-1/+3
Add usage description for new option fsctl-getobjid See section 2.1.3.1 of MS-FSCC Signed-off-by: Steve French <stfrench@microsoft.com>
2019-03-16cifs.upcall: fix a compiler warningPavel Shilovsky1-0/+1
Signed-off-by: Pavel Shilovsky <pshilov@microsoft.com>
2019-03-16smbinfo: add fsctl-getobjid supportRonnie Sahlberg2-0/+75
This will print the ObjectID buffer for the object. This is an example on how to fetch FSCTL data for an object using the passthrough API. Signed-off-by: Ronnie Sahlberg <lsahlber@redhat.com>
2019-03-08smbinfo: fix code stylePavel Shilovsky1-592/+583
Signed-off-by: Pavel Shilovsky <pshilov@microsoft.com>
2019-03-08setcifsacl: fix adding ACE when owner sid in unexpected locationSteve French1-5/+24
If owner information is after the ACEs instead of before (e.g. Azure servers) in the ACL query then we would get "invalid argument" returned on setcifsacl -a (adding an ACE). This fixes that. Signed-off-by: Steve French <stfrench@microsoft.com>
2019-03-08smbinfo: decode the ACEsRonnie Sahlberg2-34/+168
Decode the most common ACE types and provide a [-V]erbose option to show the individual mask bits by name. Signed-off-by: Ronnie Sahlberg <lsahlber@redhat.com>
2019-03-08getcifsacl: Improve help usage and add -h option.Kenneth D'souza1-9/+18
Call getcifsacl_usage only for -h and default case. For others error out with appropriate message. Signed-off-by: Kenneth D'souza <kdsouza@redhat.com>
2019-03-08getcifsacl: Do not go to parse_sec_desc if getxattr fails.Kenneth D'souza1-2/+6
Add more to the error message by printing the filename and error. Signed-off-by: Kenneth D'souza <kdsouza@redhat.com> Reviewed-by: Steve French <stfrench@microsoft.com>
2019-02-15mount.cifs.rst: update vers=3.1.1 option descriptionPavel Shilovsky1-1/+1
Signed-off-by: Pavel Shilovsky <pshilov@microsoft.com>
2019-02-15Update mount.cifs with vers=default mount option and SMBv3.0.2Kenneth D'souza1-1/+5
Add vers=3.0.2 as a valid option for SMBv3.0.2 and explain behavior of vers=default. Signed-off-by: Kenneth D'souza <kdsouza@redhat.com>
2019-02-15Added rst2man.py to the search list.Hank Leininger1-1/+1
Gentoo Linux and (historically?) OSX install with the .py suffix. Signed-off-by: Hank Leininger <hlein@korelogic.com>
2019-02-14mount.cifs: be more verbose and helpful regarding mount errorsAurelien Aptel1-1/+11
Signed-off-by: Aurelien Aptel <aaptel@suse.com>
2019-02-14cifs: Allow DNS resolver key to expirePaulo Alcantara2-23/+64
This patch introduces a new '--expire' option that allows the user to set a timeout value for the dns resolver key -- which is typically useful for hostnames that may get their ip addresses changed under long running mounts. The default timeout value is set to 10 minutes. Signed-off-by: Paulo Alcantara <palcantara@suse.de>
2019-02-14smbinfo: add FileFsFullSizeInformationRonnie Sahlberg2-0/+51
Signed-off-by: Ronnie Sahlberg <lsahlber@redhat.com>
2019-02-14smbinfo: Update the usage text with the new infolevelsRonnie Sahlberg1-1/+17
Signed-off-by: Ronnie Sahlberg <lsahlber@redhat.com>
2019-02-14smbinfo: update help textSteve French1-0/+2
Add description for fileallinfo query option. Note that there are eight other recently added query options, but they are mostly a subset a "fileallinfo" so could be of little value (and may even be very confusing if we documented all nine in the help text in smbinfo, instead of just this one). The man page has a full description of them. Signed-off-by: Steve French <stfrench@microsoft.com>
2019-02-14smbinfo: Add more File*Information classesRonnie Sahlberg2-20/+497
Signed-off-by: Ronnie Sahlberg <lsahlber@redhat.com>
2019-02-14smbinfo.rst: document kernel versionAurelien Aptel1-1/+1
Signed-off-by: Aurelien Aptel <aaptel@suse.com>
2018-11-05smbinfo: add a utility to display smb specific information about objectsRonnie Sahlberg4-0/+398
For example smbinfo secdesc <file> will print the security descriptor smbinfo quota <file> will print the quotas for the volume Signed-off-by: Aurelien Aptel <aaptel@suse.com> Signed-off-by: Ronnie Sahlberg <lsahlber@redhat.com>
2018-08-17mount.cifs.rst: document vers=3.02 mount optionPavel Shilovsky1-0/+1
Signed-off-by: Pavel Shilovsky <pshilov@microsoft.com>
2018-08-17mount.cifs.rst: document vers=3 mount optionPavel Shilovsky1-0/+1
Signed-off-by: Pavel Shilovsky <pshilov@microsoft.com>
2018-08-17mount.cifs.rst: more cleanupsAurelien Aptel1-32/+29
* remove duplicates (netbiosname, rdma) * remove snapshot * document nostrictsync, domain, domainauto better * point to vers= when talking about version requirements * typos Signed-off-by: Aurelien Aptel <aaptel@suse.com>
2018-08-17checkopts: report duplicated options in man pageAurelien Aptel1-3/+16
Signed-off-by: Aurelien Aptel <aaptel@suse.com>
2018-08-17cifs-utils: support rst2man-3Alexander Bokovoy2-4/+4
Python3 version of rst2man is called rst2man-3 Signed-off-by: Alexander Bokovoy <ab@samba.org> Reviewed-by: Aurelien Aptel <aaptel@suse.com>
2018-07-15mount.cifs.rst: document missing options, correct wrong onesAurélien Aptel1-32/+79
Signed-off-by: Aurelien Aptel <aaptel@suse.com>
2018-07-15checkopts: add python script to cross check mount optionsAurélien Aptel1-0/+240
Signed-off-by: Aurelien Aptel <aaptel@suse.com>
2018-07-15manpage: update mount.cifs manpage with info about rdma optionKenneth Dsouza1-0/+5
Signed-off-by: Kenneth Dsouza <kdsouza@redhat.com>
2018-07-10mount.cifs.rst: document new (no)handlecache mount optionAurelien Aptel1-0/+10
Signed-off-by: Aurelien Aptel <aaptel@suse.com> Reviewed-by: Steve French <smfrench@gmail.com> Reviewed-by: Pavel Shilovsky <piastryyy@gmail.com>
2018-07-10docs: cleanup rst formatingAurelien Aptel8-434/+201
Signed-off-by: Aurelien Aptel <aaptel@suse.com> Reviewed-by: Steve French <smfrench@gmail.com> Reviewed-by: Pavel Shilovsky <piastryyy@gmail.com>
2018-03-09cifs-utils: bump version to 6.8cifs-utils-6.8Pavel Shilovsky1-1/+1
Signed-off-by: Pavel Shilovsky <pshilov@microsoft.com>
2018-03-09update mount.cifs manpage with info about echo_interval option.Kenneth Dsouza1-0/+9
Adds information regarding reconnection time. Acked-by: Sachin Prabhu <sprabhu@redhat.com> Signed-off-by: Kenneth D'souza <kdsouza@redhat.com>
2018-03-09cifscreds: check optind before accessing argv[optind]Ronnie Sahlberg1-0/+3
Redhat bugzilla: 1278543 This fixes a segfault for some incorrect usage, for example cifscreds -u test Reviewed-by: Steve French <smfrench@gmail.com> Signed-off-by: Ronnie Sahlberg <lsahlber@redhat.com>
2018-03-09manpage: update mount.cifs manpage with info about incomplete optionsZhang Xianwei1-5/+5
This commit a1f3acd40b265f134a97a739a6898b3958d206b9 modified mount parameters, but not updated mount.cifs manpage. Fix it. Signed-off-by: Zhang Xianwei <zhang.xianwei8@zte.com.cn>
2017-10-29manpage: update mount.cifs manpage with info about default version being mountedJeff Layton1-2/+6
Reviewed-by: Pavel Shilovsky <pshilov@microsoft.com> Signed-off-by: Jeff Layton <jlayton@samba.org>
2017-10-23doc: convert pod files to rstJeff Layton18-1605/+1769
Aurelien did a big conversion of raw troff files into .pod docs in a recent patch. That worked out pretty well, but I have some reservations about using POD as a canonical format. While it does make it pretty simple to write manpages, it's sort of an obscure format, and is heavily associated with perl. Meanwhile, the kernel is slowly moving to using ReStructured Text as its documentation format. Given the simplicity of the cifs-utils manpages, I think we're better suited to using rst as a canonical format, rather than pod. This patch converts all of the .pod files in the code to .rst files, and fixes the Makefile and autoconf to use the correct tools to turn those into manpages. The conversion was done with the pod2rst script, with some by-hand modifications at the end to clean up the formatting and add the manual section numbers. It's not perfect and could probably use a second pass to clean up the warts in the formatting, but the content is all intact and it should be readable. Finally, convert the makefile rules to use standard SUFFIX rules instead of the non-portable GNU make % style extension rules. We don't really expect anyone to use anything other than GNU make here, but this silences an automake warning. Signed-off-by: Aurelien Aptel <aaptel@suse.com> Signed-off-by: Jeff Layton <jlayton@samba.org>
2017-10-03man: generate all man pages from POD files when buidlingAurelien Aptel17-1853/+1431
Move all man pages to easily editable POD files and generate troff source when building. Previous .in troff file are still preprocessed before final generation to use configured path (.pod.in -> .pod -> troff). All temporary files (.pod.in and troff sources) are properly deleted on clean. Remove all troff file, no need to keep generated copies under source control. This commit does not change the content of the man pages but makes future editing easier. Adds a new --enable-man/--disable-man configure option to control the generation and installation of man pages. The option is automatically enabled if the system supports it. Explicitly enabling it will make the configure script fail if pod2man is not installed. Signed-off-by: Aurelien Aptel <aaptel@suse.com>
2017-08-30cifs: setcifsacl - Send the actual (security descriptor) buffer size instead ↵Shirish Pargaonkar1-22/+39
of the pre-allocated size Some SMB servers such as HDS HNAS (Hitachi NAS) return error NT Status: STATUS_INVALID_SECURITY_DESCR (0xc0000079) during set cifs acl operation. This happens due to mismatch in the size of actual security descriptor being set versus the size of the security descriptor stated in the request. Instead of sending allocated buffer size of a security descriptor, send the actual size of the security descriptor during set cifs acl operation. Signed-off-by: Shirish Pargaonkar <shirishpargaonkar@gmail.com>
2017-08-27mount.cifs: add fallthrough comments on fmask/dmask option casesJeff Layton1-0/+2
...to silence a couple of compiler warnings. Signed-off-by: Jeff Layton <jlayton@samba.org>
2017-04-22mount.cifs: document SMBv3.1.1 and new seal optionAurelien Aptel2-1/+17
Signed-off-by: Aurelien Aptel <aaptel@suse.com>
2017-03-16manpage: correct typos and spelling mistakesAurelien Aptel1-9/+9
Signed-off-by: Aurelien Aptel <aaptel@suse.com>
2017-03-16mount.cifs: Remove data_blob.h includeThomas Witt1-1/+0
data_blob.h includes talloc.h from libtalloc, but that is only marked as a dependency for cifs.upcall. No symbols from that header are used by cifs.mount, so remove it to avoid the libtalloc dependency Signed-off-by: Thomas Witt <pyromaniac@exherbo.org>
2017-03-02cifs-utils: bump version to 6.7cifs-utils-6.7Jeff Layton1-1/+1
Signed-off-by: Jeff Layton <jlayton@samba.org>
2017-02-28cifs.upcall: use a MEMORY: ccache when instantiating from a keytabJeff Layton1-2/+2
Using a more permanent ccache is potentially problematic when we're instantiating a new one. We might be operating under different creds than expected. Just use a MEMORY: ccache since we don't need it to last longer than the life of the upcall anyway. Reported-and-Tested-by: Chad William Seys <cwseys@physics.wisc.edu> Signed-off-by: Jeff Layton <jlayton@samba.org>
2017-02-24cifs.upcall: don't do env scraping when uid is 0Jeff Layton2-2/+13
Setuid programs triggering upcalls could trick the program here. Also, the d_automount method is done with credentials overridden so if you can end up with mismatched creds and env vars due to that as well. It's a hack, but the only recourse I can see is to avoid doing this when the uid is 0. That means we can't rely on finding root credcaches in alternate locations using $KRB5CCNAME, but I think that's the best we can do. Reported-and-Tested-by: Chad William Seys <cwseys@physics.wisc.edu> Signed-off-by: Jeff Layton <jlayton@samba.org>
2017-02-24cifs.upcall: unset $KRB5CCNAME when creating new credcache from keytabJeff Layton1-0/+6
We don't want to trust $KRB5CCNAME when creating or updating a new credcache since we could be operating under the wrong credentials. Always create new credcaches in the default location instead. Reported-by: Chad William Seys <cwseys@physics.wisc.edu> Signed-off-by: Jeff Layton <jlayton@samba.org>