From: Kylene Jo Hall <kjhall@us.ibm.com>
To: linux-kernel <linux-kernel@vger.kernel.org>
Cc: akpm@osdl.org, Serge Hallyn <sergeh@us.ibm.com>,
Mimi Zohar <zohar@us.ibm.com>, Dave Safford <safford@us.ibm.com>
Subject: [PATCH] slim: socket_post_create hook return code
Date: Mon, 18 Sep 2006 11:48:54 -0700 [thread overview]
Message-ID: <1158605334.16727.47.camel@localhost.localdomain> (raw)
The socket_post_create LSM hook has gone from a void return to an int.
This patch properly updates the SLIM hook definition and return to
reflect this change.
Signed-off-by: Mimi Zohar <zohar@us.ibm.com>
Signed-of-by: Kylene Hall <kjhall@us.ibm.com>
---
security/slim/slm_main.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletion(-)
Index: linux-2.6.18-rc6-mm2/security/slim/slm_main.c
===================================================================
--- linux-2.6.18-rc6-mm2.orig/security/slim/slm_main.c
+++ linux-2.6.18-rc6-mm2/security/slim/slm_main.c
@@ -1129,7 +1131,7 @@ int slm_socket_create(int family, int ty
/*
* Didn't have the family type previously, so update the inode security now.
*/
-static void slm_socket_post_create(struct socket *sock, int family,
+static int slm_socket_post_create(struct socket *sock, int family,
int type, int protocol, int kern)
{
struct slm_tsec_data *cur_tsec = current->security;
@@ -1145,6 +1147,7 @@ static void slm_socket_post_create(struc
} else
set_level_untrusted(&slm_isec->level);
spin_unlock(&slm_isec->lock);
+ return 0;
}
/*
reply other threads:[~2006-09-18 18:49 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=1158605334.16727.47.camel@localhost.localdomain \
--to=kjhall@us.ibm.com \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=safford@us.ibm.com \
--cc=sergeh@us.ibm.com \
--cc=zohar@us.ibm.com \
/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
all inboxes | Powered by JetHome®