The patch titled slim: correct use of snprintf has been added to the -mm tree. Its filename is slim-secfs-patch-slim-correct-use-of-snprintf.patch See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find out what to do about this ------------------------------------------------------ Subject: slim: correct use of snprintf From: Kylene Jo Hall <kjhall@xxxxxxxxxx> Thanks to Stephen Smalley for pointing our incorrect usage of snprintf. This patch fixes things by using the correct function, scnprintf, instead. Signed-off-by: Kylene Hall <kjhall@xxxxxxxxxx> Signed-off-by: Mimi Zohar <zohar@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxx> --- security/slim/slm_secfs.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff -puN security/slim/slm_secfs.c~slim-secfs-patch-slim-correct-use-of-snprintf security/slim/slm_secfs.c --- a/security/slim/slm_secfs.c~slim-secfs-patch-slim-correct-use-of-snprintf +++ a/security/slim/slm_secfs.c @@ -27,16 +27,16 @@ static ssize_t slm_read_level(struct fil ssize_t len; char data[28]; if (is_kernel_thread(current)) - len = snprintf(data, sizeof(data), "KERNEL\n"); + len = scnprintf(data, sizeof(data), "KERNEL\n"); else if (!cur_tsec) - len = snprintf(data, sizeof(data), "UNKNOWN\n"); + len = scnprintf(data, sizeof(data), "UNKNOWN\n"); else { if (cur_tsec->iac_wx != cur_tsec->iac_r) - len = snprintf(data, sizeof(data), "GUARD wx:%s r:%s\n", + len = scnprintf(data, sizeof(data), "GUARD wx:%s r:%s\n", slm_iac_str[cur_tsec->iac_wx], slm_iac_str[cur_tsec->iac_r]); else - len = snprintf(data, sizeof(data), "%s\n", + len = scnprintf(data, sizeof(data), "%s\n", slm_iac_str[cur_tsec->iac_wx]); } return simple_read_from_buffer(buf, buflen, ppos, data, len); _ Patches currently in -mm which might be from kjhall@xxxxxxxxxx are mprotect-patch-for-use-by-slim.patch integrity-service-api-and-dummy-provider.patch integrity-service-api-and-dummy-provider-cleanup-use-of-configh.patch integrity-service-api-and-dummy-provider-compilation-warning-fix.patch slim-main-patch.patch slim-main-patch-socket_post_create-hook-return-code.patch slim-main-patch-misc-cleanups-requested-at-inclusion-time.patch slim-main-patch-handle-failure-to-register.patch slim-secfs-patch.patch slim-secfs-patch-slim-correct-use-of-snprintf.patch slim-make-and-config-stuff.patch slim-make-and-config-stuff-makefile-fix.patch slim-debug-output.patch slim-fix-security-issue-with-the-task_post_setuid-hook.patch slim-secfs-inode-i_private-build-fix.patch slim-documentation.patch - To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html