[lkml]   [2012]   [Jun]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [PATCH 1/3] eCryptfs: Gracefully refuse miscdev file ops on inherited/passed files
    On Wed, Jun 13, 2012 at 2:05 AM, Tyler Hicks <> wrote:
    > File operations on /dev/ecryptfs would BUG() when the operations were
    > performed by processes other than the process that originally opened the
    > file. This could happen with open files inherited after fork() or file
    > descriptors passed through IPC mechanisms. Rather than calling BUG(), an
    > error code can be safely returned in most situations.
    > In ecryptfs_miscdev_release(), eCryptfs still needs to handle the
    > release even if the last file reference is being held by a process that
    > didn't originally open the file. ecryptfs_find_daemon_by_euid() will not
    > be successful, so a pointer to the daemon is stored in the file's
    > private_data. The private_data pointer is initialized when the miscdev
    > file is opened and only used when the file is released.
    > Signed-off-by: Tyler Hicks <>
    > Reported-by: Sasha Levin <>
    > Cc: Sasha Levin <>
    > ---

    I've been running it a while now and haven't seen the problem I've
    reported reproducing.

    Is it possible to merge this fix into 3.5?

     \ /
      Last update: 2012-06-22 20:41    [W:0.021 / U:5.908 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site