]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
ecryptfs: discard ecryptfsd registration messages in miscdev
authorTyler Hicks <tyhicks@linux.vnet.ibm.com>
Thu, 24 Jul 2008 04:30:04 +0000 (21:30 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 24 Jul 2008 17:47:31 +0000 (10:47 -0700)
commit6c4c17b073cd4a5a61bc04329561632870bb21fc
tree22fea1e80df5665061f1cf2953c69a00dc097e9b
parent746f1e558bc52b9693c1a1ecdab60f8392e5ff18
ecryptfs: discard ecryptfsd registration messages in miscdev

The userspace eCryptfs daemon sends HELO and QUIT messages to the kernel
for per-user daemon (un)registration.  These messages are required when
netlink is used as the transport, but (un)registration is handled by
opening and closing the device file when miscdev is the transport.  These
messages should be discarded in the miscdev transport so that a daemon
isn't registered twice.

Signed-off-by: Tyler Hicks <tyhicks@linux.vnet.ibm.com>
Cc: Michael Halcrow <mhalcrow@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/ecryptfs/miscdev.c