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:
8937e7b
)
machined: make image read-only check indepenednt on own privs
author
Lennart Poettering
<lennart@poettering.net>
Fri, 26 Dec 2014 18:36:25 +0000
(19:36 +0100)
committer
Lennart Poettering
<lennart@poettering.net>
Fri, 26 Dec 2014 18:36:25 +0000
(19:36 +0100)
src/machine/image.c
patch
|
blob
|
history
diff --git
a/src/machine/image.c
b/src/machine/image.c
index
1574adf
..
8a119e5
100644
(file)
--- a/
src/machine/image.c
+++ b/
src/machine/image.c
@@
-112,7
+112,7
@@
static int image_make(
read_only =
(path && path_startswith(path, "/usr")) ||
-
faccessat(dfd, filename, W_OK, AT_EACCESS) < 0
;
+
(faccessat(dfd, filename, W_OK, AT_EACCESS) < 0 && errno == EROFS)
;
if (S_ISDIR(st.st_mode)) {