lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [day] [month] [year] [list]
Date:   Wed, 22 Apr 2020 15:17:54 +0800
From:   Jason Yan <yanaijie@...wei.com>
To:     <zohar@...ux.ibm.com>, <linux-kernel@...r.kernel.org>
CC:     Jason Yan <yanaijie@...wei.com>
Subject: [PATCH] ima: return false in is_ima_appraise_enabled()

Fix the following coccicheck warning:

include/linux/ima.h:132:8-9: WARNING: return of 0/1 in function
'is_ima_appraise_enabled' with return type bool

Signed-off-by: Jason Yan <yanaijie@...wei.com>
---
 include/linux/ima.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/linux/ima.h b/include/linux/ima.h
index aefe758f4466..4cb28550fcbc 100644
--- a/include/linux/ima.h
+++ b/include/linux/ima.h
@@ -129,7 +129,7 @@ extern int ima_inode_removexattr(struct dentry *dentry, const char *xattr_name);
 #else
 static inline bool is_ima_appraise_enabled(void)
 {
-	return 0;
+	return false;
 }
 
 static inline void ima_inode_post_setattr(struct dentry *dentry)
-- 
2.21.1

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ