From mboxrd@z Thu Jan 1 00:00:00 1970 From: OGAWA Hirofumi Subject: Re: [PATCH 01/25] userns: Convert fat to use kuid/kgid where appropriate Date: Thu, 20 Sep 2012 21:28:26 +0900 Message-ID: <87ipb8x4id.fsf@devron.myhome.or.jp> References: <877grox6ql.fsf@xmission.com> <1348141326-23355-1-git-send-email-ebiederm@xmission.com> <87pq5gx60i.fsf@devron.myhome.or.jp> <87vcf8vr2l.fsf@xmission.com> Mime-Version: 1.0 Content-Type: text/plain Cc: , , Serge Hallyn , Linux Containers To: ebiederm@xmission.com (Eric W. Biederman) Return-path: In-Reply-To: <87vcf8vr2l.fsf@xmission.com> (Eric W. Biederman's message of "Thu, 20 Sep 2012 05:04:02 -0700") Sender: linux-kernel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org ebiederm@xmission.com (Eric W. Biederman) writes: >> I'm not reading this thread, so I may be wrong though. Doesn't this need >> to initialize opts->fs_uid/fs_gid by GLOBAL_ROOT_UID/GID? > > Good question. > > At the start of parse_options there is: > > static int parse_options(struct super_block *sb, char *options, int is_vfat, > int silent, int *debug, struct fat_mount_options *opts) > { > char *p; > substring_t args[MAX_OPT_ARGS]; > int option; > char *iocharset; > > opts->isvfat = is_vfat; > > opts->fs_uid = current_uid(); > opts->fs_gid = current_gid(); > > So there should be no problems with initialization. I see. Acked-by: OGAWA Hirofumi -- OGAWA Hirofumi