• Shyam Prasad N's avatar
    cifs: allow dumping keys for directories too · b3edef6b
    Shyam Prasad N authored
    Dumping the enc/dec keys is a session wide operation.
    And it should not matter if the ioctl was run on
    a regular file or a directory.
    
    Currently, we obtain the tcon pointer from the
    cifs file handle. But since there's no dir open call
    in cifs, this is not populated for dirs.
    
    This change allows dumping of session keys using ioctl
    even for directories. To do this, we'll now get the
    tcon pointer from the superblock, and not from the file
    handle.
    Signed-off-by: default avatarShyam Prasad N <sprasad@microsoft.com>
    Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
    b3edef6b
ioctl.c 13.7 KB