Re: [PATCH v3 14/16] LSM: Infrastructure management of the task security blob

From: Kees Cook
Date: Thu Sep 20 2018 - 13:46:12 EST


On Wed, Sep 19, 2018 at 5:21 PM, Casey Schaufler <casey@xxxxxxxxxxxxxxxx> wrote:

> diff --git a/security/security.c b/security/security.c
> index 2501cdcbebff..7e11de7eec21 100644
> --- a/security/security.c
> +++ b/security/security.c
> @@ -116,7 +116,8 @@ int __init security_init(void)
> #ifdef CONFIG_SECURITY_LSM_DEBUG
> pr_info("LSM: cred blob size = %d\n", blob_sizes.lbs_cred);
> pr_info("LSM: file blob size = %d\n", blob_sizes.lbs_file);
> - pr_info("LSM: inode blob size = %d\n", blob_sizes.lbs_inode);
> + pr_info("LSM: inode blob size = %d\n", blob_sizes.lbs_inode);
> + pr_info("LSM: task blob size = %d\n", blob_sizes.lbs_task);
> #endif

This alignment adjustment should be moved to the patch that adds the inode line.

(And this patch might want to mention it is changing the only task
blob user, AppArmor, or split that out into a separate patch.)

-Kees

--
Kees Cook
Pixel Security