public inbox for linux-next@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] evm: building without EVM enabled fixes cont
@ 2011-08-15 13:09 Mimi Zohar
  2011-08-15 23:24 ` James Morris
  0 siblings, 1 reply; 2+ messages in thread
From: Mimi Zohar @ 2011-08-15 13:09 UTC (permalink / raw)
  To: linux-security-module
  Cc: Mimi Zohar, linux-next, linux-kernel, James Morris,
	Stephen Rothwell, David Safford, Mimi Zohar

- Make the previously missing security_old_inode_init_security() stub
  function definition static inline.

- The stub security_inode_init_security() function previously returned
  -EOPNOTSUPP and relied on the callers to change it to 0.  The stub
  security/security_old_inode_init_security() functions now return 0.

Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Mimi Zohar <zohar@us.ibm.com>
---
 include/linux/security.h |   12 +++++++-----
 1 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/include/linux/security.h b/include/linux/security.h
index f399cf1..d9f7ec4 100644
--- a/include/linux/security.h
+++ b/include/linux/security.h
@@ -2045,14 +2045,16 @@ static inline int security_inode_init_security(struct inode *inode,
 						initxattrs initxattrs,
 						void *fs_data)
 {
-	return -EOPNOTSUPP;
+	return 0;
 }
 
-int security_old_inode_init_security(struct inode *inode, struct inode *dir,
-				     const struct qstr *qstr, char **name,
-				     void **value, size_t *len)
+static inline int security_old_inode_init_security(struct inode *inode,
+						   struct inode *dir,
+						   const struct qstr *qstr,
+						   char **name, void **value,
+						   size_t *len)
 {
-	return -EOPNOTSUPP;
+	return 0;
 }
 
 static inline int security_inode_create(struct inode *dir,
-- 
1.7.3.4


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-08-15 23:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-15 13:09 [PATCH] evm: building without EVM enabled fixes cont Mimi Zohar
2011-08-15 23:24 ` James Morris

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox