/* Returns true if we were not chosen on boot or if we were chosen and filesystem registration succeeded.  */
static int __init init_smk_fs(void)
/* Returns true if we were not chosen on boot or if we were chosen and filesystem registration succeeded.  */
static int __init init_smk_fs(void)
{
	int err;
	if (!security_module_enable(&smack_ops))
		return 0;
	err = register_filesystem(&smk_fs_type);
	if (!err) {
		smackfs_mount = kern_mount(&smk_fs_type);
		if (IS_ERR(smackfs_mount)) {
			printk(KERN_ERR "smackfs:  could not mount!\n");
			err = PTR_ERR(smackfs_mount);
			smackfs_mount = NULL;
		}
	}
	smk_cipso_doi();
	smk_unlbl_ambient(NULL);
	return err;
}