Skip to contentSkip to conversation

security: yama fix for v5.1

GIT PULL Merged James Morris 2 participants 4 messages Mar 29, 2019 – Mar 30, 2019

Subsystems (2)
lore
Share & tools
lore

James Morris

author maintainer
#0 lore raw

Please pull this fix for the Yama LSM by Jann Horn.

The following changes since commit 8c7ae38d1ce12a0eaeba655df8562552b3596c7f:

afs: Fix StoreData op marshalling (2019-03-28 08:54:20 -0700)

are available in the Git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security.git fixes-v5.1

for you to fetch changes up to 1aa176ef5a451adc0546d5aaa3fb107975c786b7:

Yama: mark local symbols as static (2019-03-28 10:02:29 -0700)

----------------------------------------------------------------
Jann Horn (1):
Yama: mark local symbols as static

 security/yama/yama_lsm.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

---
commit 1aa176ef5a451adc0546d5aaa3fb107975c786b7

Author: Jann Horn <[email protected]>
Date:   Wed Mar 27 17:21:42 2019 -0700

Yama: mark local symbols as static

sparse complains that Yama defines functions and a variable as non-static even though they don't exist in any header. Fix it by making them static.

security/yama/yama_lsm.c +4 -4
index 57cc60722dd3..efac68556b45 100644
@@ -206,7 +206,7 @@ static void yama_ptracer_del(struct task_struct *tracer,
  * yama_task_free - check for task_pid to remove from exception list
  * @task: task being removed
  */
-void yama_task_free(struct task_struct *task)
+static void yama_task_free(struct task_struct *task)
 {
 	yama_ptracer_del(task, task);
 }
@@ -222,7 +222,7 @@ void yama_task_free(struct task_struct *task)
  * Return 0 on success, -ve on error.  -ENOSYS is returned when Yama
  * does not handle the given option.
  */
-int yama_task_prctl(int option, unsigned long arg2, unsigned long arg3,
+static int yama_task_prctl(int option, unsigned long arg2, unsigned long arg3,
 			   unsigned long arg4, unsigned long arg5)
 {
 	int rc = -ENOSYS;
@@ -401,7 +401,7 @@ static int yama_ptrace_access_check(struct task_struct *child,
  *
  * Returns 0 if following the ptrace is allowed, -ve on error.
  */
-int yama_ptrace_traceme(struct task_struct *parent)
+static int yama_ptrace_traceme(struct task_struct *parent)
 {
 	int rc = 0;
 
@@ -452,7 +452,7 @@ static int yama_dointvec_minmax(struct ctl_table *table, int write,
 static int zero;
 static int max_scope = YAMA_SCOPE_NO_ATTACH;
 
-struct ctl_path yama_sysctl_path[] = {
+static struct ctl_path yama_sysctl_path[] = {
 	{ .procname = "kernel", },
 	{ .procname = "yama", },
 	{ }
author maintainer
#1 lore raw

[GIT PULL][UPDATED] security: yama and LSM config fixes

Please pull these fixes for v5.1.

The following changes since commit 8c7ae38d1ce12a0eaeba655df8562552b3596c7f:

afs: Fix StoreData op marshalling (2019-03-28 08:54:20 -0700)

are available in the Git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security.git fixes-v5.1-a

for you to fetch changes up to 2623c4fbe2ad1341ff2d1e12410d0afdae2490ca:

LSM: Revive CONFIG_DEFAULT_SECURITY_* for "make oldconfig" (2019-03-29 14:08:49 -0700)

----------------------------------------------------------------
Jann Horn (1):
Yama: mark local symbols as static

Kees Cook (1):
LSM: Revive CONFIG_DEFAULT_SECURITY_* for "make oldconfig"

 security/Kconfig         | 38 ++++++++++++++++++++++++++++++++++++++
 security/yama/yama_lsm.c |  8 ++++----
 2 files changed, 42 insertions(+), 4 deletions(-)
merge bot Merged
#2 lore raw

Re: [GIT PULL][UPDATED] security: yama and LSM config fixes

The pull request you sent on Sat, 30 Mar 2019 08:12:07 +1100 (AEDT):

The pull request you sent on Sat, 30 Mar 2019 08:12:07 +1100 (AEDT):

Quoted 1 line

git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security.git fixes-v5.1-a

has been merged into torvalds/linux.git:
https://git.kernel.org/torvalds/c/12195302ee6c32cf3c0fa947e17303ce583d41c9

Thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.wiki.kernel.org/userdoc/prtracker
merge bot Merged
#3 lore raw
In reply to James Morris
The pull request you sent on Sat, 30 Mar 2019 05:10:48 +1100 (AEDT):

The pull request you sent on Sat, 30 Mar 2019 05:10:48 +1100 (AEDT):

Quoted 1 line

git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security.git fixes-v5.1

has been merged into torvalds/linux.git:
https://git.kernel.org/torvalds/c/2623c4fbe2ad1341ff2d1e12410d0afdae2490ca

Thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.wiki.kernel.org/userdoc/prtracker