Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * Copyright (c) 2012 goroh_kun
- */
- /*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- *
- * Should you need to contact me, the author, you can do so either by
- * e-mail - mail your message to <vojtech@ucw.cz>, or by paper mail:
- * Vojtech Pavlik, Simunkova 1594, Prague 8, 182 00 Czech Republic
- */
- #include <linux/module.h>
- #include <linux/init.h>
- #include <linux/kallsyms.h>
- MODULE_AUTHOR("goroh_kun <goroh.kun@gmail.com>");
- MODULE_DESCRIPTION("security module disabler");
- MODULE_LICENSE("GPL");
- #define KSYM_NAME_LEN 128
- static int __init reset_security_init(void)
- {
- void (*reset_security_ops)(void) = (void*)0;
- reset_security_ops = (void*)kallsyms_lookup_name("reset_security_ops");
- printk("reset_security_ops = %p", reset_security_ops);
- if(0 == (unsigned int)reset_security_ops) {
- return -ENODEV;
- }
- reset_security_ops();
- return 0;
- }
- static void __exit reset_security_exit(void)
- {
- }
- module_init(reset_security_init);
- module_exit(reset_security_exit);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement