summaryrefslogtreecommitdiffstats
path: root/fs/hpfs
diff options
context:
space:
mode:
authorTyler Hicks <tyhicks@canonical.com>2012-06-11 09:47:47 -0700
committerTyler Hicks <tyhicks@canonical.com>2012-07-08 12:51:44 -0500
commit2ecaf55db6dcf4dd25e1ef8d5eb6068e3286a20f (patch)
treedaa89105f89d64579d5ee04a376e4e31543871cf /fs/hpfs
parent566968866555a19d0a78e0bfa845cd249a7eeae2 (diff)
downloadlinux-stable-2ecaf55db6dcf4dd25e1ef8d5eb6068e3286a20f.tar.gz
linux-stable-2ecaf55db6dcf4dd25e1ef8d5eb6068e3286a20f.tar.bz2
linux-stable-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 'fs/hpfs')
0 files changed, 0 insertions, 0 deletions