Linux Kernels

Merge branch 'smack-for-4.3' of https://github.com/cschaufler/smack-next into next

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

Description of "Merge branch 'smack-for-4.3' of https://github.com/cschaufler/smack-next into next"

The change “Merge branch 'smack-for-4.3' of https://github.com/cschaufler/smack-next into next” introduces changes as follows.

Merge branch 'smack-for-4.3' of https://github.com/cschaufler/smack-next 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 https://github.com/cschaufler/smack-next 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/01/11 09:44