CHROMIUM: LSM: add module loading restrictions
[cascardo/linux.git] / security / chromiumos / utils.h
1 /*
2  * Utilities for the Linux Security Module for Chromium OS
3  * (Since CONFIG_AUDIT is disabled for Chrome OS, we must repurpose
4  * a bunch of the audit string handling logic here instead.)
5  *
6  * Copyright 2012 Google Inc. All Rights Reserved
7  *
8  * Author:
9  *      Kees Cook       <keescook@chromium.org>
10  *
11  * This software is licensed under the terms of the GNU General Public
12  * License version 2, as published by the Free Software Foundation, and
13  * may be copied, distributed, and modified under those terms.
14  *
15  * This program is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18  * GNU General Public License for more details.
19  */
20
21 #ifndef _SECURITY_CHROMIUMOS_UTILS_H
22 #define _SECURITY_CHROMIUMOS_UTILS_H
23
24 #include <linux/sched.h>
25 #include <linux/mm.h>
26
27 char *printable(char *source);
28 char *printable_cmdline(struct task_struct *task);
29
30 #endif /* _SECURITY_CHROMIUMOS_UTILS_H */