|
Zbigniew Jędrzejewski-Szmek |
e4fbe4 |
From d94362708df9a520d2bd8f494003baf186833bdd Mon Sep 17 00:00:00 2001
|
|
Zbigniew Jędrzejewski-Szmek |
e4fbe4 |
From: Ronan Le Martret <ronan@fridu.net>
|
|
Zbigniew Jędrzejewski-Szmek |
e4fbe4 |
Date: Tue, 22 Apr 2014 10:33:25 +0200
|
|
Zbigniew Jędrzejewski-Szmek |
e4fbe4 |
Subject: [PATCH] core: You can not put the cached result of use_smack fct, as
|
|
Zbigniew Jędrzejewski-Szmek |
e4fbe4 |
we are not sure the "/sys" is mounted. So we should mount "sys" before
|
|
Zbigniew Jędrzejewski-Szmek |
e4fbe4 |
"/proc"
|
|
Zbigniew Jędrzejewski-Szmek |
e4fbe4 |
|
|
Zbigniew Jędrzejewski-Szmek |
e4fbe4 |
https://bugs.freedesktop.org/show_bug.cgi?id=77646
|
|
Zbigniew Jędrzejewski-Szmek |
e4fbe4 |
(cherry picked from commit d1d8e5d49f3149d03ceb94d1d2f6c14e7abccb6f)
|
|
Zbigniew Jędrzejewski-Szmek |
e4fbe4 |
---
|
|
Zbigniew Jędrzejewski-Szmek |
e4fbe4 |
src/core/mount-setup.c | 4 ++--
|
|
Zbigniew Jędrzejewski-Szmek |
e4fbe4 |
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
Zbigniew Jędrzejewski-Szmek |
e4fbe4 |
|
|
Zbigniew Jędrzejewski-Szmek |
e4fbe4 |
diff --git a/src/core/mount-setup.c b/src/core/mount-setup.c
|
|
Zbigniew Jędrzejewski-Szmek |
e4fbe4 |
index ae8447ca..991bfdfe 100644
|
|
Zbigniew Jędrzejewski-Szmek |
e4fbe4 |
--- a/src/core/mount-setup.c
|
|
Zbigniew Jędrzejewski-Szmek |
e4fbe4 |
+++ b/src/core/mount-setup.c
|
|
Zbigniew Jędrzejewski-Szmek |
e4fbe4 |
@@ -67,10 +67,10 @@ typedef struct MountPoint {
|
|
Zbigniew Jędrzejewski-Szmek |
e4fbe4 |
#define N_EARLY_MOUNT 5
|
|
Zbigniew Jędrzejewski-Szmek |
e4fbe4 |
|
|
Zbigniew Jędrzejewski-Szmek |
e4fbe4 |
static const MountPoint mount_table[] = {
|
|
Zbigniew Jędrzejewski-Szmek |
e4fbe4 |
- { "proc", "/proc", "proc", NULL, MS_NOSUID|MS_NOEXEC|MS_NODEV,
|
|
Zbigniew Jędrzejewski-Szmek |
e4fbe4 |
- NULL, MNT_FATAL|MNT_IN_CONTAINER },
|
|
Zbigniew Jędrzejewski-Szmek |
e4fbe4 |
{ "sysfs", "/sys", "sysfs", NULL, MS_NOSUID|MS_NOEXEC|MS_NODEV,
|
|
Zbigniew Jędrzejewski-Szmek |
e4fbe4 |
NULL, MNT_FATAL|MNT_IN_CONTAINER },
|
|
Zbigniew Jędrzejewski-Szmek |
e4fbe4 |
+ { "proc", "/proc", "proc", NULL, MS_NOSUID|MS_NOEXEC|MS_NODEV,
|
|
Zbigniew Jędrzejewski-Szmek |
e4fbe4 |
+ NULL, MNT_FATAL|MNT_IN_CONTAINER },
|
|
Zbigniew Jędrzejewski-Szmek |
e4fbe4 |
{ "devtmpfs", "/dev", "devtmpfs", "mode=755", MS_NOSUID|MS_STRICTATIME,
|
|
Zbigniew Jędrzejewski-Szmek |
e4fbe4 |
NULL, MNT_FATAL|MNT_IN_CONTAINER },
|
|
Zbigniew Jędrzejewski-Szmek |
e4fbe4 |
{ "securityfs", "/sys/kernel/security", "securityfs", NULL, MS_NOSUID|MS_NOEXEC|MS_NODEV,
|