@@ -750,7 +750,6 @@ extern bool has_xsm_magic(paddr_t);
#endif
extern int register_xsm(struct xsm_operations *ops);
-extern int unregister_xsm(struct xsm_operations *ops);
extern struct xsm_operations dummy_xsm_ops;
extern void xsm_fixup_ops(struct xsm_operations *ops);
@@ -58,8 +58,6 @@ static int flask_security_make_bools(void);
extern int ss_initialized;
-extern struct xsm_operations *original_ops;
-
static void __init parse_flask_param(char *s)
{
if ( !strcmp(s, "enforcing") )
@@ -243,7 +241,7 @@ static int flask_disable(void)
flask_disabled = 1;
/* Reset xsm_ops to the original module. */
- xsm_ops = original_ops;
+ xsm_ops = &dummy_xsm_ops;
return 0;
}
@@ -35,8 +35,6 @@
#include <objsec.h>
#include <conditional.h>
-struct xsm_operations *original_ops = NULL;
-
static u32 domain_sid(struct domain *dom)
{
struct domain_security_struct *dsec = dom->ssid;
@@ -1842,7 +1840,6 @@ __init void flask_init(void)
avc_init();
- original_ops = xsm_ops;
if ( register_xsm(&flask_ops) )
panic("Flask: Unable to register with XSM");
@@ -144,22 +144,6 @@ int __init register_xsm(struct xsm_operations *ops)
return 0;
}
-
-int unregister_xsm(struct xsm_operations *ops)
-{
- if ( ops != xsm_ops )
- {
- printk("%s: trying to unregister "
- "a security_opts structure that is not "
- "registered, failing.\n", __FUNCTION__);
- return -EINVAL;
- }
-
- xsm_ops = &dummy_xsm_ops;
-
- return 0;
-}
-
#endif
long do_xsm_op (XEN_GUEST_HANDLE_PARAM(xsm_op_t) op)