Message ID | 20250315141209936kL2XHnj3IaE2dYcjQZlnV@zte.com.cn (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | [linux-next] selinux: avc: use sysfs_emit() instead of scnprintf() | expand |
diff --git a/security/selinux/avc.c b/security/selinux/avc.c index 4b4837a20225..007bd94975c0 100644 --- a/security/selinux/avc.c +++ b/security/selinux/avc.c @@ -164,7 +164,7 @@ int avc_get_hash_stats(char *page) rcu_read_unlock(); - return scnprintf(page, PAGE_SIZE, "entries: %d\nbuckets used: %d/%d\n" + return sysfs_emit(page, "entries: %d\nbuckets used: %d/%d\n" "longest chain: %d\n", atomic_read(&selinux_avc.avc_cache.active_nodes), slots_used, AVC_CACHE_SLOTS, max_chain_len);