diff options
author | Tyler Hicks <tyhicks@canonical.com> | 2012-06-11 18:47:47 +0200 |
---|---|---|
committer | Tyler Hicks <tyhicks@canonical.com> | 2012-07-08 19:51:44 +0200 |
commit | 2ecaf55db6dcf4dd25e1ef8d5eb6068e3286a20f (patch) | |
tree | daa89105f89d64579d5ee04a376e4e31543871cf /README | |
parent | eCryptfs: Remove unused messaging declarations and function (diff) | |
download | linux-2ecaf55db6dcf4dd25e1ef8d5eb6068e3286a20f.tar.xz linux-2ecaf55db6dcf4dd25e1ef8d5eb6068e3286a20f.zip |
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 'README')
0 files changed, 0 insertions, 0 deletions