|
Zbigniew Jędrzejewski-Szmek |
d044ab |
From d8e3c9d25867f7081f060f1491186b6e3b30975b Mon Sep 17 00:00:00 2001
|
|
Zbigniew Jędrzejewski-Szmek |
d044ab |
From: WaLyong Cho <walyong.cho@samsung.com>
|
|
Zbigniew Jędrzejewski-Szmek |
d044ab |
Date: Thu, 13 Jul 2017 13:10:41 +0900
|
|
Zbigniew Jędrzejewski-Szmek |
d044ab |
Subject: [PATCH] core: dump also missed security context
|
|
Zbigniew Jędrzejewski-Szmek |
d044ab |
|
|
Zbigniew Jędrzejewski-Szmek |
d044ab |
(cherry picked from commit 80c21aea118eeccfb2a0fcc5986b4432588dc857)
|
|
Zbigniew Jędrzejewski-Szmek |
d044ab |
---
|
|
Zbigniew Jędrzejewski-Szmek |
d044ab |
src/core/execute.c | 10 ++++++++++
|
|
Zbigniew Jędrzejewski-Szmek |
d044ab |
1 file changed, 10 insertions(+)
|
|
Zbigniew Jędrzejewski-Szmek |
d044ab |
|
|
Zbigniew Jędrzejewski-Szmek |
d044ab |
diff --git a/src/core/execute.c b/src/core/execute.c
|
|
Zbigniew Jędrzejewski-Szmek |
d044ab |
index 4ed133fb6a..62faa028a1 100644
|
|
Zbigniew Jędrzejewski-Szmek |
d044ab |
--- a/src/core/execute.c
|
|
Zbigniew Jędrzejewski-Szmek |
d044ab |
+++ b/src/core/execute.c
|
|
Zbigniew Jędrzejewski-Szmek |
d044ab |
@@ -3614,6 +3614,16 @@ void exec_context_dump(ExecContext *c, FILE* f, const char *prefix) {
|
|
Zbigniew Jędrzejewski-Szmek |
d044ab |
"%sSELinuxContext: %s%s\n",
|
|
Zbigniew Jędrzejewski-Szmek |
d044ab |
prefix, c->selinux_context_ignore ? "-" : "", c->selinux_context);
|
|
Zbigniew Jędrzejewski-Szmek |
d044ab |
|
|
Zbigniew Jędrzejewski-Szmek |
d044ab |
+ if (c->apparmor_profile)
|
|
Zbigniew Jędrzejewski-Szmek |
d044ab |
+ fprintf(f,
|
|
Zbigniew Jędrzejewski-Szmek |
d044ab |
+ "%sAppArmorProfile: %s%s\n",
|
|
Zbigniew Jędrzejewski-Szmek |
d044ab |
+ prefix, c->apparmor_profile_ignore ? "-" : "", c->apparmor_profile);
|
|
Zbigniew Jędrzejewski-Szmek |
d044ab |
+
|
|
Zbigniew Jędrzejewski-Szmek |
d044ab |
+ if (c->smack_process_label)
|
|
Zbigniew Jędrzejewski-Szmek |
d044ab |
+ fprintf(f,
|
|
Zbigniew Jędrzejewski-Szmek |
d044ab |
+ "%sSmackProcessLabel: %s%s\n",
|
|
Zbigniew Jędrzejewski-Szmek |
d044ab |
+ prefix, c->smack_process_label_ignore ? "-" : "", c->smack_process_label);
|
|
Zbigniew Jędrzejewski-Szmek |
d044ab |
+
|
|
Zbigniew Jędrzejewski-Szmek |
d044ab |
if (c->personality != PERSONALITY_INVALID)
|
|
Zbigniew Jędrzejewski-Szmek |
d044ab |
fprintf(f,
|
|
Zbigniew Jędrzejewski-Szmek |
d044ab |
"%sPersonality: %s\n",
|