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] [thread-next>] [day] [month] [year] [list]
Date:	Thu,  1 Nov 2012 21:11:03 +0100
From:	Milan Broz <mbroz@...hat.com>
To:	linux-kernel@...r.kernel.org
Cc:	jaxboe@...ionio.com, kzak@...hat.com, Milan Broz <mbroz@...hat.com>
Subject: [RFC PATCH 3/4] Deprecate loop crypto ioctl fields.

Mark encryption loop fields in userspace API deprecated.

Signed-off-by: Milan Broz <mbroz@...hat.com>
---
 include/uapi/linux/loop.h |   18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/include/uapi/linux/loop.h b/include/uapi/linux/loop.h
index e0cecd2..d0896c7 100644
--- a/include/uapi/linux/loop.h
+++ b/include/uapi/linux/loop.h
@@ -11,7 +11,7 @@
 
 
 #define LO_NAME_SIZE	64
-#define LO_KEY_SIZE	32
+#define LO_KEY_SIZE	32 /* deprecated */
 
 
 /*
@@ -33,11 +33,11 @@ struct loop_info {
 	unsigned long	   lo_inode; 		/* ioctl r/o */
 	__kernel_old_dev_t lo_rdevice; 		/* ioctl r/o */
 	int		   lo_offset;
-	int		   lo_encrypt_type;
-	int		   lo_encrypt_key_size; 	/* ioctl w/o */
+	int		   lo_encrypt_type;	/* deprecated */
+	int		   lo_encrypt_key_size; 	/* deprecated */
 	int		   lo_flags;			/* ioctl r/o */
 	char		   lo_name[LO_NAME_SIZE];
-	unsigned char	   lo_encrypt_key[LO_KEY_SIZE]; /* ioctl w/o */
+	unsigned char	   lo_encrypt_key[LO_KEY_SIZE]; /* deprecated */
 	unsigned long	   lo_init[2];
 	char		   reserved[4];
 };
@@ -49,17 +49,17 @@ struct loop_info64 {
 	__u64		   lo_offset;
 	__u64		   lo_sizelimit;/* bytes, 0 == max available */
 	__u32		   lo_number;			/* ioctl r/o */
-	__u32		   lo_encrypt_type;
-	__u32		   lo_encrypt_key_size;		/* ioctl w/o */
+	__u32		   lo_encrypt_type;		/* deprecated */
+	__u32		   lo_encrypt_key_size;		/* deprecated */
 	__u32		   lo_flags;			/* ioctl r/o */
 	__u8		   lo_file_name[LO_NAME_SIZE];
-	__u8		   lo_crypt_name[LO_NAME_SIZE];
-	__u8		   lo_encrypt_key[LO_KEY_SIZE]; /* ioctl w/o */
+	__u8		   lo_crypt_name[LO_NAME_SIZE]; /* deprecated */
+	__u8		   lo_encrypt_key[LO_KEY_SIZE]; /* deprecated */
 	__u64		   lo_init[2];
 };
 
 /*
- * Loop filter types
+ * Loop filter types (deprecated)
  */
 
 #define LO_CRYPT_NONE		0
-- 
1.7.10.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ