Action disabled: source

Merge branch 'smack-for-4.3' of into next

This change “Merge branch 'smack-for-4.3' of into next” (commit 5ab1657) in Linux kernel is authored by James Morris <james.l.morris [at]> on Tue Aug 11 11:18:53 2015 +1000.

Description of "Merge branch 'smack-for-4.3' of into next"

The change “Merge branch 'smack-for-4.3' of into next” introduces changes as follows.

Merge branch 'smack-for-4.3' of into next

Linux kernel releases containing commit 5ab1657

The Linux kernel releases containing this commit are as follows.

Linux kernel code changes from "Merge branch 'smack-for-4.3' of into next"

There is no are 0 lines of Linux source code added/deleted in this change. Code changes to Linux kernel are as follows.

 security/smack/smack_access.c | 6 ++++++
 1 file changed, 6 insertions(+)
diff --git a/security/smack/smack_access.c b/security/smack/smack_access.c
index 00f6b38bffbd..bc1053fb5d1d 100644
--- a/security/smack/smack_access.c
+++ b/security/smack/smack_access.c
@@ -639,6 +639,12 @@ int smack_privileged(int cap)
 	struct smack_known *skp = smk_of_current();
 	struct smack_onlycap *sop;
+	/*
+	 * All kernel tasks are privileged
+	 */
+	if (unlikely(current->flags & PF_KTHREAD))
+		return 1;
 	if (!capable(cap))
 		return 0;

The commit for this change in Linux stable tree is 5ab1657 (patch).

Last modified: 2020/02/09