OpenAFS Master Repository branch, master, updated. openafs-devel-1_5_63-7-g48589b5

Gerrit Code Review gerrit@openafs.org
Sat, 19 Sep 2009 05:15:51 -0700 (PDT)


The following commit has been merged in the master branch:
commit 48589b5d3957c27a5944e23fd770687adc078934
Author: Marc Dionne <marc.c.dionne@gmail.com>
Date:   Mon Sep 14 17:40:23 2009 -0400

    Linux: Restore aklog -setpag functionality for kernel 2.6.32+
    
    With kernel 2.6.32 it is now possible for a process to copy its session
    keyring to its parent through the use of the KEYCTL_SESSION_TO_PARENT
    function of the keyctl syscall.
    
    We can't use this easily from kernel space to cover all calls to
    VIOCSETTOK with the setpag flag - we'd need to make a syscall
    or have keyctl exported.  Instead, a hook is added to ktc_SetToken to
    make it honour the AFS_SETTOK_SETPAG flag, which was ineffective with recent
    kernels.
    This should cover the most common cases (ex: aklog) where this is needed.
    
    The syscall is coded directly to avoid introducing a dependency on the
    keyutils library or header files which may not be installed everywhere.
    
    Reviewed-on: http://gerrit.openafs.org/463
    Reviewed-by: Derrick Brashear <shadow@dementia.org>
    Tested-by: Derrick Brashear <shadow@dementia.org>

 acinclude.m4          |    1 +
 src/auth/ktc.c        |   13 +++++++++++++
 src/cf/linux-test4.m4 |   12 ++++++++++++
 3 files changed, 26 insertions(+), 0 deletions(-)

-- 
OpenAFS Master Repository