From patchwork Wed Jan 12 16:21:39 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jeff Layton X-Patchwork-Id: 474381 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p0CGLiX9013887 for ; Wed, 12 Jan 2011 16:21:44 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754734Ab1ALQVo (ORCPT ); Wed, 12 Jan 2011 11:21:44 -0500 Received: from mail-gy0-f174.google.com ([209.85.160.174]:56466 "EHLO mail-gy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754701Ab1ALQVn (ORCPT ); Wed, 12 Jan 2011 11:21:43 -0500 Received: by gyb11 with SMTP id 11so273668gyb.19 for ; Wed, 12 Jan 2011 08:21:43 -0800 (PST) Received: by 10.90.100.7 with SMTP id x7mr1886935agb.7.1294849302857; Wed, 12 Jan 2011 08:21:42 -0800 (PST) Received: from salusa.poochiereds.net (cpe-071-070-153-003.nc.res.rr.com [71.70.153.3]) by mx.google.com with ESMTPS id x36sm995668anx.34.2011.01.12.08.21.42 (version=SSLv3 cipher=RC4-MD5); Wed, 12 Jan 2011 08:21:42 -0800 (PST) From: Jeff Layton To: smfrench@gmail.com Cc: linux-cifs@vger.kernel.org, walteste@inf.ethz.ch Subject: [PATCH] cifs: add cruid= mount option Date: Wed, 12 Jan 2011 11:21:39 -0500 Message-Id: <1294849299-3548-1-git-send-email-jlayton@redhat.com> X-Mailer: git-send-email 1.7.3.4 Sender: linux-cifs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-cifs@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Wed, 12 Jan 2011 16:21:44 +0000 (UTC) diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c index 60d4826..99a5f18 100644 --- a/fs/cifs/connect.c +++ b/fs/cifs/connect.c @@ -1107,6 +1107,8 @@ cifs_parse_mount_options(char *options, const char *devname, } else if (!strnicmp(data, "uid", 3) && value && *value) { vol->linux_uid = simple_strtoul(value, &value, 0); uid_specified = true; + } else if (!strnicmp(data, "cruid", 5) && value && *value) { + vol->cred_uid = simple_strtoul(value, &value, 0); } else if (!strnicmp(data, "forceuid", 8)) { override_uid = 1; } else if (!strnicmp(data, "noforceuid", 10)) {