summaryrefslogtreecommitdiff
path: root/src/core/execute.c
diff options
context:
space:
mode:
authorDaniel Mack <github@zonque.org>2015-06-23 13:26:23 +0200
committerDaniel Mack <github@zonque.org>2015-06-23 13:26:23 +0200
commitf3941a6f33cd325355c9669f49869267d582b6a1 (patch)
treeba18a547f73a570ec253e9f4b388e9525b5e43c2 /src/core/execute.c
parent9261d42e6d4c166fe4d56c6bf6929cc9e7fda3c8 (diff)
parente174dce27173396ed8034c9cfda87eb210365126 (diff)
Merge pull request #318 from walyong/smack_v02
SMACK v02: support modify rules and add default executed process label
Diffstat (limited to 'src/core/execute.c')
-rw-r--r--src/core/execute.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/core/execute.c b/src/core/execute.c
index 94cc101738..c92db51330 100644
--- a/src/core/execute.c
+++ b/src/core/execute.c
@@ -1717,6 +1717,15 @@ static int exec_child(
return r;
}
}
+#ifdef SMACK_DEFAULT_PROCESS_LABEL
+ else {
+ r = mac_smack_apply_pid(0, SMACK_DEFAULT_PROCESS_LABEL);
+ if (r < 0) {
+ *exit_status = EXIT_SMACK_PROCESS_LABEL;
+ return r;
+ }
+ }
+#endif
#endif
if (context->user) {