Exemple #1
0
static __init int sony_ric_init(void)
{
	if (!security_module_enable(&sony_ric_ops))
		return 0;

	if (register_security(&sony_ric_ops))
		pr_err(KERN_INFO "RIC: Sony RIC security ops failed to register\n");

	pr_info("RIC: Sony RIC ops registered!\n");

	return 0;
}
Exemple #2
0
static int __init init_verihmac(void)
{
	
	if (!security_module_enable(&verihmac_security_ops))
		return 0;
	
	if (register_security(&verihmac_security_ops) ||
	    init_srcu_struct(&verihmac_ss))
		panic("Failure registering Verihmac Linux");
	printk(VERI_INFO "verihmac Linux initialized\n");
	isloaded =1;
	return 0;
}