Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1667386
| From | kbuild test robot <lkp@intel.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [RFC PATCH] print_tpe_error() can be static |
| Date | 2017-06-16 04:30 +0200 |
| Message-ID | <tSPbk-2nO-7@gated-at.bofh.it> (permalink) |
| References | <tSPbk-2nO-5@gated-at.bofh.it> <tPWCl-7iA-1@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
---
tpe_lsm.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/security/tpe/tpe_lsm.c b/security/tpe/tpe_lsm.c
index fda811a..77d2498 100644
--- a/security/tpe/tpe_lsm.c
+++ b/security/tpe/tpe_lsm.c
@@ -42,7 +42,7 @@ static int tpe_strict __read_mostly = IS_ENABLED(CONFIG_SECURITY_TPE_STRICT);
static int tpe_restrict_root __read_mostly =
IS_ENABLED(CONFIG_SECURITY_TPE_RESTRICT_ROOT);
-int print_tpe_error(struct file *file, char *reason1, char *reason2,
+static int print_tpe_error(struct file *file, char *reason1, char *reason2,
char *method)
{
char *filepath;
@@ -125,7 +125,7 @@ static int tpe_check(struct file *file, char *method)
return 0;
}
-int tpe_mmap_file(struct file *file, unsigned long reqprot,
+static int tpe_mmap_file(struct file *file, unsigned long reqprot,
unsigned long prot, unsigned long flags)
{
if (!file || !(prot & PROT_EXEC))
@@ -134,7 +134,7 @@ int tpe_mmap_file(struct file *file, unsigned long reqprot,
return tpe_check(file, "mmap");
}
-int tpe_file_mprotect(struct vm_area_struct *vma, unsigned long reqprot,
+static int tpe_file_mprotect(struct vm_area_struct *vma, unsigned long reqprot,
unsigned long prot)
{
if (!vma->vm_file)
@@ -157,7 +157,7 @@ static struct security_hook_list tpe_hooks[] = {
};
#ifdef CONFIG_SYSCTL
-struct ctl_path tpe_sysctl_path[] = {
+static struct ctl_path tpe_sysctl_path[] = {
{ .procname = "kernel", },
{ .procname = "tpe", },
{ }
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH v2 1/1] Add Trusted Path Execution as a stackable LSM Matt Brown <matt@nmatt.com> - 2017-06-08 05:50 +0200
Re: [PATCH v2 1/1] Add Trusted Path Execution as a stackable LSM Kees Cook <keescook@chromium.org> - 2017-06-09 04:40 +0200
Re: [PATCH v2 1/1] Add Trusted Path Execution as a stackable LSM Matt Brown <matt@nmatt.com> - 2017-06-09 06:00 +0200
Re: [PATCH v2 1/1] Add Trusted Path Execution as a stackable LSM Mimi Zohar <zohar@linux.vnet.ibm.com> - 2017-06-09 12:20 +0200
Re: [PATCH v2 1/1] Add Trusted Path Execution as a stackable LSM Kees Cook <keescook@chromium.org> - 2017-06-09 15:00 +0200
Re: [PATCH v2 1/1] Add Trusted Path Execution as a stackable LSM Matt Brown <matt@nmatt.com> - 2017-06-09 15:20 +0200
Re: [kernel-hardening] Re: [PATCH v2 1/1] Add Trusted Path Execution as a stackable LSM Matt Brown <matt@nmatt.com> - 2017-06-09 15:20 +0200
Re: [kernel-hardening] Re: [PATCH v2 1/1] Add Trusted Path Execution as a stackable LSM Mimi Zohar <zohar@linux.vnet.ibm.com> - 2017-06-09 15:50 +0200
Re: [PATCH v2 1/1] Add Trusted Path Execution as a stackable LSM Mimi Zohar <zohar@linux.vnet.ibm.com> - 2017-06-09 15:20 +0200
Re: [PATCH v2 1/1] Add Trusted Path Execution as a stackable LSM kbuild test robot <lkp@intel.com> - 2017-06-16 04:30 +0200
[RFC PATCH] print_tpe_error() can be static kbuild test robot <lkp@intel.com> - 2017-06-16 04:30 +0200
csiph-web