Files
ubports_kernel_google_msm/include/linux
Jan Kara 30e053248d security: Fix security_old_inode_init_security() when CONFIG_SECURITY is not set
Commit 1e39f384bb ("evm: fix build problems") makes the stub version
of security_old_inode_init_security() return 0 when CONFIG_SECURITY is
not set.

But that makes callers such as reiserfs_security_init() assume that
security_old_inode_init_security() has set name, value, and len
arguments properly - but security_old_inode_init_security() left them
uninitialized which then results in interesting failures.

Revert security_old_inode_init_security() to the old behavior of
returning EOPNOTSUPP since both callers (reiserfs and ocfs2) handle this
just fine.

[ Also fixed the S_PRIVATE(inode) case of the actual non-stub
  security_old_inode_init_security() function to return EOPNOTSUPP
  for the same reason, as pointed out by Mimi Zohar.

  It got incorrectly changed to match the new function in commit
  fb88c2b6cb: "evm: fix security/security_old_init_security return
  code".   - Linus ]

Reported-by: Jorge Bastos <mysql.jorge@decimal.pt>
Acked-by: James Morris <jmorris@namei.org>
Acked-by: Mimi Zohar <zohar@us.ibm.com>
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2012-01-03 16:12:19 -08:00
..
2011-11-07 09:11:16 -08:00
2011-11-02 16:07:03 -07:00
2011-10-26 15:43:25 -04:00
2011-11-16 09:21:50 +01:00
2011-08-03 11:30:42 -04:00
2011-07-31 22:05:09 +02:00
2011-09-27 09:25:02 +01:00
2011-08-25 16:25:33 -07:00
2011-11-07 23:54:53 +01:00
2011-10-31 20:19:04 +00:00
2011-09-14 15:24:51 -04:00
2011-08-08 16:08:08 +02:00
2011-11-23 11:33:07 +01:00
2011-10-30 04:43:30 -04:00
2011-09-27 18:08:04 +02:00
2011-09-25 19:52:59 +03:00
2011-09-16 19:20:20 -04:00
2011-11-02 16:06:57 -07:00
2011-07-31 12:18:16 -04:00
2011-07-28 16:19:22 -06:00
2011-10-31 14:03:22 +01:00
2011-11-22 16:37:01 -05:00
2011-11-02 16:07:02 -07:00
2011-07-30 08:44:19 -10:00
2011-11-29 11:59:50 +00:00
2011-10-31 17:30:47 -07:00
2011-08-16 00:16:49 -07:00
2011-08-03 14:25:22 -10:00
2011-10-31 17:30:44 -07:00
2011-11-02 16:07:02 -07:00
2011-10-03 14:01:21 -04:00
2011-08-23 10:10:38 -07:00
2011-11-02 16:07:02 -07:00
2011-09-14 15:24:51 -04:00