search for: fsetstat

Displaying 4 results from an estimated 4 matches for "fsetstat".

Did you mean: setstat
2017 Sep 06
2
Disallow some sftp commands
Hello, Couple of days ago, I received a request from a customer. He wants to provide sftp users access to a directory tree containing files. The users must have full rights, but he also wants to avoid moving or deleting directories. This is mostly to prevent mistakenly drag and drop from user's graphical client (Filezilla). Said differently, he wants to protect the directories organization.
2016 Apr 18
0
[Bug 1953] Implementation of xattr in sftp-server for sshfs
...ider, protocol-wise, is the use of the SSH_FILEXFER_ATTR_EXTENDED flag of the ATTRS structure, which is part of SFTP protocol version 3 (and earlier); see: https://tools.ietf.org/html/draft-ietf-secsh-filexfer-02#section-5 SFTP clients can send xattrs as ATTR_EXTENDED key/value pairs in SETSTAT/FSETSTAT requests; OpenSSH should send the xattrs in READDIR and STAT et al requests the same way. This would still require patching OpenSSH's SFTP server to use the platform-specific extended attribute APIs (extattr(9) for BSDs, xattr(8) for Linux, with Mac providing something similar to Linux but wit...
2006 May 15
1
[PATCH 8/12] openssh-4.3p2 return code check bugs
...ndle < 0) + goto out; TRACE("fstat id %u handle %d", id, handle); fd = handle_to_fd(handle); if (fd >= 0) { @@ -551,6 +563,7 @@ process_fstat(void) status = SSH2_FX_OK; } } +out: if (status != SSH2_FX_OK) send_status(id, status); } @@ -614,6 +627,10 @@ process_fsetstat(void) id = get_int(); handle = get_handle(); + if (handle < 0) { + status = SSH2_FX_FAILURE; + goto out; + } a = get_attrib(); TRACE("fsetstat id %u handle %d", id, handle); fd = handle_to_fd(handle); @@ -654,6 +671,7 @@ process_fsetstat(void) status = errno_to_porta...
2001 Jun 20
1
SFTP Logging Redux.
...id %d name %s", id, name); + log("(%d/%d/%s) Permissions altered: %s (%04o).", ppid, cuid, CUNAME, name, a->perm & 0777); if (a->flags & SSH2_FILEXFER_ATTR_PERMISSIONS) { ret = chmod(name, a->perm & 0777); if (ret == -1) @@ -623,6 +655,7 @@ TRACE("fsetstat id %d handle %d", id, handle); fd = handle_to_fd(handle); name = handle_to_name(handle); + log("(%d/%d/%s) Permissions altered: %s (%04o).", ppid, cuid, CUNAME, name, a->perm & 0777); if (fd < 0 || name == NULL) { status = SSH2_FX_FAILURE; } else { @@ -790,6 +823...