linux-security-module.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: aalobaid@linux.com (Ahmad A Alobaid)
To: linux-security-module@vger.kernel.org
Subject: [PATCH] security: commoncap: fix styling
Date: Sun, 24 Sep 2017 00:41:16 +0200	[thread overview]
Message-ID: <20170923224116.9163-1-aalobaid@linux.com> (raw)

From: "Ahmad A Alobaid" <aalobaid@linux.com>

fix trailing whitespace and Missing a blank line after
declaration

Signed-off-by: Ahmad A Alobaid <aalobaid@linux.com>
---
 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)
-- 
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe linux-security-module" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

                 reply	other threads:[~2017-09-23 22:41 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170923224116.9163-1-aalobaid@linux.com \
    --to=aalobaid@linux.com \
    --cc=linux-security-module@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).