projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1554afa
)
namespace: properly label device nodes we create
author
Lennart Poettering
<lennart@poettering.net>
Tue, 17 Jun 2014 21:51:21 +0000
(23:51 +0200)
committer
Lennart Poettering
<lennart@poettering.net>
Tue, 17 Jun 2014 22:09:46 +0000
(
00:09
+0200)
https://bugzilla.redhat.com/show_bug.cgi?id=1081429
src/core/namespace.c
patch
|
blob
|
history
diff --git
a/src/core/namespace.c
b/src/core/namespace.c
index
3b5402b
..
d1513ce
100644
(file)
--- a/
src/core/namespace.c
+++ b/
src/core/namespace.c
@@
-42,6
+42,7
@@
#include "mkdir.h"
#include "dev-setup.h"
#include "def.h"
+#include "label.h"
typedef enum MountMode {
/* This is ordered by priority! */
@@
-223,7
+224,10
@@
static int mount_dev(BindMount *m) {
goto fail;
}
+ label_context_set(d, st.st_mode);
r = mknod(dn, st.st_mode, st.st_rdev);
+ label_context_clear();
+
if (r < 0) {
r = -errno;
goto fail;