[PATCH] eCryptfs: Remove netlink transport

Previous thread: [PATCH 4/4] Add sysfs entries for UV by Russ Anderson on Monday, September 29, 2008 - 3:03 pm. (1 message)

Next thread: BUG: Commit 1b7fc5aae8867046f8d3d45808309d5b7f2e036a makes special keys on my T21 unusable after resume by Karol Lewandowski on Monday, September 29, 2008 - 3:16 pm. (5 messages)
From: Tyler Hicks
Date: Monday, September 29, 2008 - 3:16 pm

The netlink transport code has not worked for a while and the miscdev
transport is a simpler solution.  This patch removes the netlink
code and makes the miscdev transport the only eCryptfs kernel to
userspace transport.

Signed-off-by: Tyler Hicks <tyhicks@linux.vnet.ibm.com>
---
 fs/ecryptfs/Makefile          |    2 +-
 fs/ecryptfs/ecryptfs_kernel.h |   28 +----
 fs/ecryptfs/keystore.c        |   32 +++---
 fs/ecryptfs/main.c            |   19 ++--
 fs/ecryptfs/messaging.c       |  118 +++++--------------
 fs/ecryptfs/netlink.c         |  249 -----------------------------------------
 6 files changed, 60 insertions(+), 388 deletions(-)
 delete mode 100644 fs/ecryptfs/netlink.c

diff --git a/fs/ecryptfs/Makefile b/fs/ecryptfs/Makefile
index b4755a8..2cc9ee4 100644
--- a/fs/ecryptfs/Makefile
+++ b/fs/ecryptfs/Makefile
@@ -4,4 +4,4 @@
 
 obj-$(CONFIG_ECRYPT_FS) += ecryptfs.o
 
-ecryptfs-objs := dentry.o file.o inode.o main.o super.o mmap.o read_write.o crypto.o keystore.o messaging.o netlink.o miscdev.o kthread.o debug.o
+ecryptfs-objs := dentry.o file.o inode.o main.o super.o mmap.o read_write.o crypto.o keystore.o messaging.o miscdev.o kthread.o debug.o
diff --git a/fs/ecryptfs/ecryptfs_kernel.h b/fs/ecryptfs/ecryptfs_kernel.h
index e73414f..a75026d 100644
--- a/fs/ecryptfs/ecryptfs_kernel.h
+++ b/fs/ecryptfs/ecryptfs_kernel.h
@@ -79,11 +79,6 @@
 #define ECRYPTFS_MAX_PKI_NAME_BYTES 16
 #define ECRYPTFS_DEFAULT_NUM_USERS 4
 #define ECRYPTFS_MAX_NUM_USERS 32768
-#define ECRYPTFS_TRANSPORT_NETLINK 0
-#define ECRYPTFS_TRANSPORT_CONNECTOR 1
-#define ECRYPTFS_TRANSPORT_RELAYFS 2
-#define ECRYPTFS_TRANSPORT_MISCDEV 3
-#define ECRYPTFS_DEFAULT_TRANSPORT ECRYPTFS_TRANSPORT_MISCDEV
 #define ECRYPTFS_XATTR_NAME "user.ecryptfs"
 
 #define RFC2440_CIPHER_DES3_EDE 0x02
@@ -400,8 +395,6 @@ struct ecryptfs_msg_ctx {
 	struct mutex mux;
 };
 
-extern unsigned int ecryptfs_transport;
-
 struct ecryptfs_daemon;
 
 struct ecryptfs_daemon {
@@ -627,31 +620,20 @@ int
 ...
Previous thread: [PATCH 4/4] Add sysfs entries for UV by Russ Anderson on Monday, September 29, 2008 - 3:03 pm. (1 message)

Next thread: BUG: Commit 1b7fc5aae8867046f8d3d45808309d5b7f2e036a makes special keys on my T21 unusable after resume by Karol Lewandowski on Monday, September 29, 2008 - 3:16 pm. (5 messages)