Commit 3f03bf93 authored by Linus Torvalds's avatar Linus Torvalds

Merge branch 'next-general' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security

Pull general security subsystem updates from James Morris:
 "The main changes here are Paul Gortmaker's removal of unneccesary
  module.h infrastructure"

* 'next-general' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security:
  security: integrity: partial revert of make ima_main explicitly non-modular
  security: fs: make inode explicitly non-modular
  security: audit and remove any unnecessary uses of module.h
  security: integrity: make evm_main explicitly non-modular
  keys: remove needless modular infrastructure from ecryptfs_format
  security: integrity: make ima_main explicitly non-modular
  tomoyo: fix small typo
parents fb2a624d b49d5643
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
#include <linux/ctype.h> #include <linux/ctype.h>
#include <linux/security.h> #include <linux/security.h>
#include <linux/vmalloc.h> #include <linux/vmalloc.h>
#include <linux/module.h> #include <linux/init.h>
#include <linux/seq_file.h> #include <linux/seq_file.h>
#include <linux/uaccess.h> #include <linux/uaccess.h>
#include <linux/mount.h> #include <linux/mount.h>
......
...@@ -9,7 +9,6 @@ ...@@ -9,7 +9,6 @@
#include <linux/capability.h> #include <linux/capability.h>
#include <linux/audit.h> #include <linux/audit.h>
#include <linux/module.h>
#include <linux/init.h> #include <linux/init.h>
#include <linux/kernel.h> #include <linux/kernel.h>
#include <linux/lsm_hooks.h> #include <linux/lsm_hooks.h>
......
...@@ -13,7 +13,8 @@ ...@@ -13,7 +13,8 @@
*/ */
/* #define DEBUG */ /* #define DEBUG */
#include <linux/module.h> #include <linux/sysfs.h>
#include <linux/kobject.h>
#include <linux/fs.h> #include <linux/fs.h>
#include <linux/mount.h> #include <linux/mount.h>
#include <linux/pagemap.h> #include <linux/pagemap.h>
...@@ -341,7 +342,4 @@ static int __init securityfs_init(void) ...@@ -341,7 +342,4 @@ static int __init securityfs_init(void)
#endif #endif
return 0; return 0;
} }
core_initcall(securityfs_init); core_initcall(securityfs_init);
MODULE_LICENSE("GPL");
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
#include <linux/module.h> #include <linux/export.h>
#include <linux/crypto.h> #include <linux/crypto.h>
#include <linux/xattr.h> #include <linux/xattr.h>
#include <linux/evm.h> #include <linux/evm.h>
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
#include <linux/module.h> #include <linux/init.h>
#include <linux/crypto.h> #include <linux/crypto.h>
#include <linux/audit.h> #include <linux/audit.h>
#include <linux/xattr.h> #include <linux/xattr.h>
...@@ -592,6 +592,3 @@ static int __init init_evm(void) ...@@ -592,6 +592,3 @@ static int __init init_evm(void)
} }
late_initcall(init_evm); late_initcall(init_evm);
MODULE_DESCRIPTION("Extended Verification Module");
MODULE_LICENSE("GPL");
...@@ -9,7 +9,6 @@ ...@@ -9,7 +9,6 @@
* the Free Software Foundation, version 2 of the License. * the Free Software Foundation, version 2 of the License.
*/ */
#include <linux/module.h>
#include <linux/xattr.h> #include <linux/xattr.h>
#include <linux/evm.h> #include <linux/evm.h>
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
#include <linux/audit.h> #include <linux/audit.h>
#include <linux/uaccess.h> #include <linux/uaccess.h>
#include <linux/module.h> #include <linux/init.h>
#include <linux/mutex.h> #include <linux/mutex.h>
#include "evm.h" #include "evm.h"
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
* using a rbtree tree. * using a rbtree tree.
*/ */
#include <linux/slab.h> #include <linux/slab.h>
#include <linux/module.h> #include <linux/init.h>
#include <linux/spinlock.h> #include <linux/spinlock.h>
#include <linux/rbtree.h> #include <linux/rbtree.h>
#include <linux/file.h> #include <linux/file.h>
......
...@@ -12,7 +12,6 @@ ...@@ -12,7 +12,6 @@
* Implements must_appraise_or_measure, collect_measurement, * Implements must_appraise_or_measure, collect_measurement,
* appraise_measurement, store_measurement and store_template. * appraise_measurement, store_measurement and store_template.
*/ */
#include <linux/module.h>
#include <linux/slab.h> #include <linux/slab.h>
#include <linux/file.h> #include <linux/file.h>
#include <linux/fs.h> #include <linux/fs.h>
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by
* the Free Software Foundation, version 2 of the License. * the Free Software Foundation, version 2 of the License.
*/ */
#include <linux/module.h> #include <linux/init.h>
#include <linux/file.h> #include <linux/file.h>
#include <linux/fs.h> #include <linux/fs.h>
#include <linux/xattr.h> #include <linux/xattr.h>
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
#include <linux/fcntl.h> #include <linux/fcntl.h>
#include <linux/slab.h> #include <linux/slab.h>
#include <linux/module.h> #include <linux/init.h>
#include <linux/seq_file.h> #include <linux/seq_file.h>
#include <linux/rculist.h> #include <linux/rculist.h>
#include <linux/rcupdate.h> #include <linux/rcupdate.h>
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
#include <linux/module.h> #include <linux/init.h>
#include <linux/scatterlist.h> #include <linux/scatterlist.h>
#include <linux/slab.h> #include <linux/slab.h>
#include <linux/err.h> #include <linux/err.h>
......
/* /*
* Integrity Measurement Architecture
*
* Copyright (C) 2005,2006,2007,2008 IBM Corporation * Copyright (C) 2005,2006,2007,2008 IBM Corporation
* *
* Authors: * Authors:
...@@ -560,6 +562,3 @@ static int __init init_ima(void) ...@@ -560,6 +562,3 @@ static int __init init_ima(void)
} }
late_initcall(init_ima); /* Start IMA after the TPM is available */ late_initcall(init_ima); /* Start IMA after the TPM is available */
MODULE_DESCRIPTION("Integrity Measurement Architecture");
MODULE_LICENSE("GPL");
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
* - initialize default measure policy rules * - initialize default measure policy rules
* *
*/ */
#include <linux/module.h> #include <linux/init.h>
#include <linux/list.h> #include <linux/list.h>
#include <linux/fs.h> #include <linux/fs.h>
#include <linux/security.h> #include <linux/security.h>
......
...@@ -21,7 +21,6 @@ ...@@ -21,7 +21,6 @@
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
#include <linux/module.h>
#include <linux/rculist.h> #include <linux/rculist.h>
#include <linux/slab.h> #include <linux/slab.h>
#include "ima.h" #include "ima.h"
......
...@@ -15,7 +15,8 @@ ...@@ -15,7 +15,8 @@
* the Free Software Foundation, version 2 of the License. * the Free Software Foundation, version 2 of the License.
*/ */
#include <linux/module.h> #include <linux/export.h>
#include <linux/string.h>
#include "ecryptfs_format.h" #include "ecryptfs_format.h"
u8 *ecryptfs_get_auth_tok_key(struct ecryptfs_auth_tok *auth_tok) u8 *ecryptfs_get_auth_tok_key(struct ecryptfs_auth_tok *auth_tok)
...@@ -77,5 +78,3 @@ int ecryptfs_fill_auth_tok(struct ecryptfs_auth_tok *auth_tok, ...@@ -77,5 +78,3 @@ int ecryptfs_fill_auth_tok(struct ecryptfs_auth_tok *auth_tok,
return 0; return 0;
} }
EXPORT_SYMBOL(ecryptfs_fill_auth_tok); EXPORT_SYMBOL(ecryptfs_fill_auth_tok);
MODULE_LICENSE("GPL");
...@@ -15,7 +15,6 @@ ...@@ -15,7 +15,6 @@
*/ */
#include <linux/uaccess.h> #include <linux/uaccess.h>
#include <linux/module.h>
#include <linux/err.h> #include <linux/err.h>
#include <keys/trusted-type.h> #include <keys/trusted-type.h>
#include <keys/encrypted-type.h> #include <keys/encrypted-type.h>
......
...@@ -9,7 +9,6 @@ ...@@ -9,7 +9,6 @@
* 2 of the Licence, or (at your option) any later version. * 2 of the Licence, or (at your option) any later version.
*/ */
#include <linux/module.h>
#include <linux/slab.h> #include <linux/slab.h>
#include <linux/security.h> #include <linux/security.h>
#include <keys/keyring-type.h> #include <keys/keyring-type.h>
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
* 2 of the License, or (at your option) any later version. * 2 of the License, or (at your option) any later version.
*/ */
#include <linux/module.h> #include <linux/export.h>
#include <linux/init.h> #include <linux/init.h>
#include <linux/poison.h> #include <linux/poison.h>
#include <linux/sched.h> #include <linux/sched.h>
......
...@@ -9,7 +9,6 @@ ...@@ -9,7 +9,6 @@
* 2 of the License, or (at your option) any later version. * 2 of the License, or (at your option) any later version.
*/ */
#include <linux/module.h>
#include <linux/init.h> #include <linux/init.h>
#include <linux/sched.h> #include <linux/sched.h>
#include <linux/sched/task.h> #include <linux/sched/task.h>
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
* 2 of the License, or (at your option) any later version. * 2 of the License, or (at your option) any later version.
*/ */
#include <linux/module.h> #include <linux/export.h>
#include <linux/init.h> #include <linux/init.h>
#include <linux/sched.h> #include <linux/sched.h>
#include <linux/slab.h> #include <linux/slab.h>
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
* 2 of the License, or (at your option) any later version. * 2 of the License, or (at your option) any later version.
*/ */
#include <linux/module.h> #include <linux/export.h>
#include <linux/security.h> #include <linux/security.h>
#include "internal.h" #include "internal.h"
......
...@@ -9,7 +9,6 @@ ...@@ -9,7 +9,6 @@
* 2 of the License, or (at your option) any later version. * 2 of the License, or (at your option) any later version.
*/ */
#include <linux/module.h>
#include <linux/init.h> #include <linux/init.h>
#include <linux/sched.h> #include <linux/sched.h>
#include <linux/fs.h> #include <linux/fs.h>
......
...@@ -9,7 +9,6 @@ ...@@ -9,7 +9,6 @@
* 2 of the License, or (at your option) any later version. * 2 of the License, or (at your option) any later version.
*/ */
#include <linux/module.h>
#include <linux/init.h> #include <linux/init.h>
#include <linux/sched.h> #include <linux/sched.h>
#include <linux/sched/user.h> #include <linux/sched/user.h>
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
* See Documentation/security/keys/request-key.rst * See Documentation/security/keys/request-key.rst
*/ */
#include <linux/module.h> #include <linux/export.h>
#include <linux/sched.h> #include <linux/sched.h>
#include <linux/kmod.h> #include <linux/kmod.h>
#include <linux/err.h> #include <linux/err.h>
......
...@@ -11,7 +11,6 @@ ...@@ -11,7 +11,6 @@
* See Documentation/security/keys/request-key.rst * See Documentation/security/keys/request-key.rst
*/ */
#include <linux/module.h>
#include <linux/sched.h> #include <linux/sched.h>
#include <linux/err.h> #include <linux/err.h>
#include <linux/seq_file.h> #include <linux/seq_file.h>
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
* 2 of the License, or (at your option) any later version. * 2 of the License, or (at your option) any later version.
*/ */
#include <linux/module.h> #include <linux/export.h>
#include <linux/init.h> #include <linux/init.h>
#include <linux/slab.h> #include <linux/slab.h>
#include <linux/seq_file.h> #include <linux/seq_file.h>
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
#include <linux/bpf.h> #include <linux/bpf.h>
#include <linux/capability.h> #include <linux/capability.h>
#include <linux/dcache.h> #include <linux/dcache.h>
#include <linux/module.h> #include <linux/export.h>
#include <linux/init.h> #include <linux/init.h>
#include <linux/kernel.h> #include <linux/kernel.h>
#include <linux/lsm_hooks.h> #include <linux/lsm_hooks.h>
......
...@@ -106,7 +106,7 @@ void tomoyo_convert_time(time64_t time64, struct tomoyo_time *stamp) ...@@ -106,7 +106,7 @@ void tomoyo_convert_time(time64_t time64, struct tomoyo_time *stamp)
* @string: String representation for permissions in foo/bar/buz format. * @string: String representation for permissions in foo/bar/buz format.
* @keyword: Keyword to find from @string/ * @keyword: Keyword to find from @string/
* *
* Returns ture if @keyword was found in @string, false otherwise. * Returns true if @keyword was found in @string, false otherwise.
* *
* This function assumes that strncmp(w1, w2, strlen(w1)) != 0 if w1 != w2. * This function assumes that strncmp(w1, w2, strlen(w1)) != 0 if w1 != w2.
*/ */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment