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

lsm: add/tweak function header comment blocks in lsm_init.c

Add function header comments for lsm_static_call_init() and
early_security_init(), tweak the existing comment block for
security_add_hooks().

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

+12 -5
+12 -5
security/lsm_init.c
··· 315 315 } 316 316 } 317 317 318 + /** 319 + * lsm_static_call_init - Initialize a LSM's static calls 320 + * @hl: LSM hook list 321 + */ 318 322 static void __init lsm_static_call_init(struct security_hook_list *hl) 319 323 { 320 324 struct lsm_static_call *scall = hl->scalls; ··· 339 335 } 340 336 341 337 /** 342 - * security_add_hooks - Add a modules hooks to the hook lists. 343 - * @hooks: the hooks to add 344 - * @count: the number of hooks to add 345 - * @lsmid: the identification information for the security module 338 + * security_add_hooks - Add a LSM's hooks to the LSM framework's hook lists 339 + * @hooks: LSM hooks to add 340 + * @count: number of hooks to add 341 + * @lsmid: identification information for the LSM 346 342 * 347 - * Each LSM has to register its hooks with the infrastructure. 343 + * Each LSM has to register its hooks with the LSM framework. 348 344 */ 349 345 void __init security_add_hooks(struct security_hook_list *hooks, int count, 350 346 const struct lsm_id *lsmid) ··· 357 353 } 358 354 } 359 355 356 + /** 357 + * early_security_init - Initialize the early LSMs 358 + */ 360 359 int __init early_security_init(void) 361 360 { 362 361 struct lsm_info *lsm;