integrity: Add declarations to init_once void arguments.
Subsystems (4)
PATCH v2 1/1 integrity: Add declarations to init_once void arguments.
init_once is a callback to kmem_cache_create. The parameter type of this function is void *, so it's better to give a explicit cast here.
--- security/integrity/iint.c | 2 +- security/integrity/ima/ima_main.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
security/integrity/iint.c +1 -1
@@ -160,7 +160,7 @@ void integrity_inode_free(struct inode *inode)static void init_once (void *foo) { -struct integrity_iint_cache *iint = foo; +struct integrity_iint_cache *iint = (struct integrity_iint_cache *) foo;memset (iint,0 ,sizeof (*iint)); iint->ima_file_status =INTEGRITY_UNKNOWN ;
security/integrity/ima/ima_main.c +1 -1
@@ -482,7 +482,7 @@ int ima_bprm_check(struct linux_binprm *bprm) }/** -* ima_path_check - based on policy, collect/store measurement. +* ima_file_check - based on policy, collect/store measurement. * @file: pointer to the file to be measured * @mask: contains MAY_READ, MAY_WRITE, MAY_EXEC or MAY_APPEND *
Signature · 1 line
2.25.1
Hi Mimi,
And this is another patch that has been modified.
Quoted 36 lines · Jiele Zhao
init_onceis a callback tokmem_cache_create. The parameter type of this function is void *, so it's better to give a explicit cast here.Signed-off-by Jiele Zhao <[email protected]>--- security/integrity/iint.c | 2 +- security/integrity/ima/ima_main.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)security/integrity/iint.c +1
-1@@ -160,7 +160,7 @@ void integrity_inode_free(struct inode *inode)static void init_once (void *foo) { -struct integrity_iint_cache *iint = foo; +struct integrity_iint_cache *iint = (struct integrity_iint_cache *) foo;memset (iint,0 ,sizeof (*iint)); iint->ima_file_status =INTEGRITY_UNKNOWN ;security/integrity/ima/ima_main.c +1
-1@@ -482,7 +482,7 @@ int ima_bprm_check(struct linux_binprm *bprm) }/** -* ima_path_check - based on policy, collect/store measurement. +* ima_file_check - based on policy, collect/store measurement. * @file: pointer to the file to be measured * @mask: contains MAY_READ, MAY_WRITE, MAY_EXEC or MAY_APPEND *
Mimi Zohar
maintainerHi Jiele,
Quoted 28 lines · Jiele Zhao
init_onceis a callback tokmem_cache_create. The parameter type of this function is void *, so it's better to give a explicit cast here.Signed-off-by Jiele Zhao <[email protected]>--- security/integrity/iint.c | 2 +- security/integrity/ima/ima_main.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)security/integrity/iint.c +1
-1@@ -160,7 +160,7 @@ void integrity_inode_free(struct inode *inode)static void init_once (void *foo) { -struct integrity_iint_cache *iint = foo; +struct integrity_iint_cache *iint = (struct integrity_iint_cache *) foo;memset (iint,0 ,sizeof (*iint)); iint->ima_file_status =INTEGRITY_UNKNOWN ;security/integrity/ima/ima_main.c +0
-0
security/integrity/ima/ima_main.c int ima_bprm_check(struct linux_binprm *bprm) · line 488
Quoted 8 lines
security/integrity/ima/ima_main.c +1
-1@@ -482,7 +482,7 @@ int ima_bprm_check(struct linux_binprm *bprm) }/** -* ima_path_check - based on policy, collect/store measurement. +* ima_file_check - based on policy, collect/store measurement. * @file: pointer to the file to be measured * @mask: contains MAY_READ, MAY_WRITE, MAY_EXEC or MAY_APPEND *
This change was already posted as "ima: Fix function name error in comment". I've dropped this hunk. In the future, please review your patch line by line before posting.
Applied togit://git.kernel.org/pub/scm/linux/kernel/git/zohar/linux-integrity.git
next-integrity
thanks,
Mimi
Okay, thank you. I'll keep an eye on that !
Quoted 51 lines · Mimi Zohar
Hi Jiele,
Quoted 28 lines · Jiele Zhao
init_onceis a callback tokmem_cache_create. The parameter type of this function is void *, so it's better to give a explicit cast here.Signed-off-by Jiele Zhao <[email protected]>--- security/integrity/iint.c | 2 +- security/integrity/ima/ima_main.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)security/integrity/iint.c +1
-1@@ -160,7 +160,7 @@ void integrity_inode_free(struct inode *inode)static void init_once (void *foo) { -struct integrity_iint_cache *iint = foo; +struct integrity_iint_cache *iint = (struct integrity_iint_cache *) foo;memset (iint,0 ,sizeof (*iint)); iint->ima_file_status =INTEGRITY_UNKNOWN ;security/integrity/ima/ima_main.c +0
-0security/integrity/ima/ima_main.c int ima_bprm_check(struct linux_binprm *bprm) · line 488
Quoted 8 lines
security/integrity/ima/ima_main.c +1
-1@@ -482,7 +482,7 @@ int ima_bprm_check(struct linux_binprm *bprm) }/** -* ima_path_check - based on policy, collect/store measurement. +* ima_file_check - based on policy, collect/store measurement. * @file: pointer to the file to be measured * @mask: contains MAY_READ, MAY_WRITE, MAY_EXEC or MAY_APPEND * This change was already posted as "ima: Fix function name error in comment". I've dropped this hunk. In the future, please review your patch line by line before posting.
Applied to
git://git.kernel.org/pub/scm/linux/kernel/git/zohar/linux-integrity.git
next-integritythanks,
Mimi