From 78170472e6c7f0bce95ab035cc4ed86ec662e80d Mon Sep 17 00:00:00 2001 From: Csaba Henk Date: Sat, 30 Jul 2011 16:45:50 +0300 Subject: add --user-map-root option This makes client fake that given user is a superuser, by changing FUSE requests coming with uid of user so that uid is set to 0. User can be given in numeric form, in which case it's treated as an uid directly, or else it's tried to be resolved to an uid with getpwnam(3). Implies --acl. Change-Id: I2d5a3d3e178be7ffdf22b46a56f33a7eeaaa7fe1 BUG: 3242 Reviewed-on: http://review.gluster.com/127 Tested-by: Gluster Build System Reviewed-by: Vijay Bellur --- libglusterfs/src/glusterfs.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libglusterfs/src/glusterfs.h') diff --git a/libglusterfs/src/glusterfs.h b/libglusterfs/src/glusterfs.h index 049bb8fc..316fc086 100644 --- a/libglusterfs/src/glusterfs.h +++ b/libglusterfs/src/glusterfs.h @@ -291,6 +291,8 @@ struct _cmd_args { char *dump_fuse; pid_t client_pid; int client_pid_set; + unsigned uid_map_root; + /* key args */ char *mount_point; -- cgit