This patchset includes numerous enhancements in the way the xcpu utils 
(xgroupset,xuserset,xgetent) authenticate with xcpufs.
the administrator can now assign users to the "xcpu-admin" group to elevate 
their priveleges for executing commands on xcpufs.
any user belonging to the group "xcpu-admin" can write to the ctl file.

initially, we try to execute the command as the user "xcpu-admin". If there's 
not priv key for "xcpu-admin" at /etc/xcpu/admin_key
the command is executed as the regular user with priv key $HOME/.ssh/id_rsa. 
The user can execute only if he belongs to the group 
"xcpu-admin". Alternatively, a user can supply a path to a private key to be 
used to execute the command.

note: utils xps and xk have not been changed to use the new interface yet, i 
will be sending patched for them soon.

Signed-off-by: Abhishek Kulkarni <[EMAIL PROTECTED]>

15 files changed, 734 insertions(+), 538 deletions(-)
include/libxauth.h     |    1 
include/libxcpu.h      |   19 +
libspclient/netmount.c |    4 
libxauth/xauth.c       |  122 +++++++-----
libxcpu/group.c        |  213 ++++++++++-----------
libxcpu/node.c         |   13 -
libxcpu/user.c         |  470 +++++++++++++++++++++++++++---------------------
libxcpu/util.c         |   69 +++++++
libxcpu/xcpuimpl.h     |   11 +
utils/xgetent.c        |  162 +++++-----------
utils/xgroupset.c      |   37 ++-
utils/xuserset.c       |   69 ++++---
xcpufs/xauth.c         |   46 ++++
xcpufs/xcpufs.c        |   34 ++-
xcpufs/xcpufs.h        |    2 

Reply via email to