diff options
author | Tyler Hicks <tyhicks@canonical.com> | 2012-06-11 09:47:47 -0700 |
---|---|---|
committer | Tyler Hicks <tyhicks@canonical.com> | 2012-07-08 12:51:44 -0500 |
commit | 2ecaf55db6dcf4dd25e1ef8d5eb6068e3286a20f (patch) | |
tree | daa89105f89d64579d5ee04a376e4e31543871cf /crypto | |
parent | 566968866555a19d0a78e0bfa845cd249a7eeae2 (diff) | |
download | op-kernel-dev-2ecaf55db6dcf4dd25e1ef8d5eb6068e3286a20f.zip op-kernel-dev-2ecaf55db6dcf4dd25e1ef8d5eb6068e3286a20f.tar.gz |
eCryptfs: Make all miscdev functions use daemon ptr in file private_data
Now that a pointer to a valid struct ecryptfs_daemon is stored in the
private_data of an opened /dev/ecryptfs file, the remaining miscdev
functions can utilize the pointer rather than looking up the
ecryptfs_daemon at the beginning of each operation.
The security model of /dev/ecryptfs is simplified a little bit with this
patch. Upon opening /dev/ecryptfs, a per-user ecryptfs_daemon is
registered. Another daemon cannot be registered for that user until the
last file reference is released. During the lifetime of the
ecryptfs_daemon, access checks are not performed on the /dev/ecryptfs
operations because it is assumed that the application securely handles
the opened file descriptor and does not unintentionally leak it to
processes that are not trusted.
Signed-off-by: Tyler Hicks <tyhicks@canonical.com>
Cc: Sasha Levin <levinsasha928@gmail.com>
Diffstat (limited to 'crypto')
0 files changed, 0 insertions, 0 deletions