Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

lsm: rename ordered_lsm_init() to lsm_init_ordered()

The new name more closely fits the rest of the naming scheme in
security/lsm_init.c. This patch also adds a trivial comment block to
the top of the function.

Reviewed-by: Casey Schaufler <casey@schaufler-ca.com>
Reviewed-by: John Johansen <john.johhansen@canonical.com>
Reviewed-by: Mimi Zohar <zohar@linux.ibm.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>

+5 -5
+5 -5
security/lsm_init.c
··· 291 291 kfree(sep); 292 292 } 293 293 294 - static void __init ordered_lsm_init(void) 294 + /** 295 + * lsm_init_ordered - Initialize the ordered LSMs 296 + */ 297 + static void __init lsm_init_ordered(void) 295 298 { 296 299 unsigned int first = 0; 297 300 struct lsm_info **lsm; ··· 345 342 init_debug("bpf prog blob size = %d\n", blob_sizes.lbs_bpf_prog); 346 343 init_debug("bpf token blob size = %d\n", blob_sizes.lbs_bpf_token); 347 344 348 - /* 349 - * Create any kmem_caches needed for blobs 350 - */ 351 345 if (blob_sizes.lbs_file) 352 346 lsm_file_cache = kmem_cache_create("lsm_file_cache", 353 347 blob_sizes.lbs_file, 0, ··· 498 498 } 499 499 500 500 /* Load LSMs in specified order. */ 501 - ordered_lsm_init(); 501 + lsm_init_ordered(); 502 502 503 503 return 0; 504 504 }