From patchwork Sat Sep 23 22:41:16 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ahmad A Alobaid X-Patchwork-Id: 9967651 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 0E5BA602CB for ; Sat, 23 Sep 2017 22:43:04 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E2B9129293 for ; Sat, 23 Sep 2017 22:43:03 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D74CD29299; Sat, 23 Sep 2017 22:43:03 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.4 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6119829293 for ; Sat, 23 Sep 2017 22:43:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751159AbdIWWnC (ORCPT ); Sat, 23 Sep 2017 18:43:02 -0400 Received: from mail-wm0-f66.google.com ([74.125.82.66]:32880 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750847AbdIWWnB (ORCPT ); Sat, 23 Sep 2017 18:43:01 -0400 Received: by mail-wm0-f66.google.com with SMTP id m127so4148070wmm.0 for ; Sat, 23 Sep 2017 15:43:01 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=vWTQbxAXcra9uexizXOjHWGrojCKwFlzrAOzyp99IX8=; b=gYXNa/ppU1UF2z8Xx/zs/rmRA8XMk00BA6HYxUEYUo5ALtPRW7VD+o5euh6ewEA0m6 8WHXtalPc34F9VKIlk4V8BB5AvUASDpF5u2DzHDq1oDPyR9TS/ZZMPWnWNb0pXMXMhhb GjanSzngd6oStvylyt8mdYVQlY0vk5HKyf8Shf8qHl+pc4teLS378eQcAuoquBzrV/SF itU+gJH45ZaWyv1AH/PkceJaonhaVzbrM+JcswOFS0Lu9cJSCElrywRhDdDmps7ywmiP myNMtvyeGya+QuOC/FXZHgkScHoHenmGixpKBAeV23QTnPQyrqeQkeHvco2dv7aE/Coh 21hA== X-Gm-Message-State: AHPjjUjPiqfFgQDYOO7Ce1sjly39c0j9YRvsYvjGNL/7BqPKts4agtKp cM9kE2w3PKsbFfl45lA+who= X-Google-Smtp-Source: AOwi7QCS8Sf7utc1c3+bYoa66PoZ62MY0CsOmTK/KELYnhvdcEVzoQqoTPmGcpcsRLrG3fZBObvQJg== X-Received: by 10.28.94.85 with SMTP id s82mr6174343wmb.13.1506206580676; Sat, 23 Sep 2017 15:43:00 -0700 (PDT) Received: from localhost.localdomain (245.red-80-28-103.staticip.rima-tde.net. [80.28.103.245]) by smtp.gmail.com with ESMTPSA id 10sm3187139wrt.59.2017.09.23.15.42.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 23 Sep 2017 15:42:59 -0700 (PDT) From: Ahmad A Alobaid To: serge@hallyn.com Cc: linux-security-module@vger.kernel.org, "Ahmad A Alobaid" Subject: [PATCH] security: commoncap: fix styling Date: Sun, 24 Sep 2017 00:41:16 +0200 Message-Id: <20170923224116.9163-1-aalobaid@linux.com> X-Mailer: git-send-email 2.14.1 Sender: owner-linux-security-module@vger.kernel.org Precedence: bulk List-ID: X-Virus-Scanned: ClamAV using ClamSMTP From: "Ahmad A Alobaid" fix trailing whitespace and Missing a blank line after declaration Signed-off-by: Ahmad A Alobaid --- security/commoncap.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/security/commoncap.c b/security/commoncap.c index 6bf72b1..c3330c4 100644 --- a/security/commoncap.c +++ b/security/commoncap.c @@ -89,7 +89,7 @@ int cap_capable(const struct cred *cred, struct user_namespace *targ_ns, if (ns->level <= cred->user_ns->level) return -EPERM; - /* + /* * The owner of the user namespace in the parent of the * user namespace has all caps. */ @@ -446,6 +446,7 @@ int cap_inode_getsecurity(struct inode *inode, const char *name, void **buffer, if (*buffer) { struct vfs_cap_data *cap = *buffer; __le32 nsmagic, magic; + magic = VFS_CAP_REVISION_2; nsmagic = le32_to_cpu(nscap->magic_etc); if (nsmagic & VFS_CAP_FLAGS_EFFECTIVE)