lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20180115174625.3937-2-hdegoede@redhat.com>
Date:   Mon, 15 Jan 2018 18:46:25 +0100
From:   Hans de Goede <hdegoede@...hat.com>
To:     Arnd Bergmann <arnd@...db.de>,
        Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
        Michael Thayer <michael.thayer@...cle.com>
Cc:     Hans de Goede <hdegoede@...hat.com>,
        Larry Finger <Larry.Finger@...inger.net>,
        linux-kernel@...r.kernel.org
Subject: [PATCH] virt: vbox: Add error mapping for VERR_INVALID_NAME and VERR_NO_MORE_FILES

Add error mapping for VERR_INVALID_NAME and VERR_NO_MORE_FILES vbox status
codes, these are both used by the vboxsf (shared folder) code.

Signed-off-by: Hans de Goede <hdegoede@...hat.com>
---
 drivers/virt/vboxguest/vboxguest_utils.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/virt/vboxguest/vboxguest_utils.c b/drivers/virt/vboxguest/vboxguest_utils.c
index 8daea691fbb5..0f0dab8023cf 100644
--- a/drivers/virt/vboxguest/vboxguest_utils.c
+++ b/drivers/virt/vboxguest/vboxguest_utils.c
@@ -731,6 +731,7 @@ static const int vbg_status_code_to_errno_table[] = {
 	[-VERR_NOT_SAME_DEVICE]                          = -EXDEV,
 	[-VERR_NOT_A_DIRECTORY]                          = -ENOTDIR,
 	[-VERR_PATH_NOT_FOUND]                           = -ENOTDIR,
+	[-VERR_INVALID_NAME]                             = -ENOENT,
 	[-VERR_IS_A_DIRECTORY]                           = -EISDIR,
 	[-VERR_INVALID_PARAMETER]                        = -EINVAL,
 	[-VERR_TOO_MANY_OPEN_FILES]                      = -ENFILE,
@@ -748,6 +749,7 @@ static const int vbg_status_code_to_errno_table[] = {
 	[-VERR_NOT_SUPPORTED]                            = -ENOSYS,
 	[-VERR_DIR_NOT_EMPTY]                            = -ENOTEMPTY,
 	[-VERR_TOO_MANY_SYMLINKS]                        = -ELOOP,
+	[-VERR_NO_MORE_FILES]				 = -ENODATA,
 	[-VERR_NO_DATA]                                  = -ENODATA,
 	[-VERR_NET_NO_NETWORK]                           = -ENONET,
 	[-VERR_NET_NOT_UNIQUE_NAME]                      = -ENOTUNIQ,
-- 
2.14.3

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ