mirror of
https://github.com/clearlinux/systemd-stable.git
synced 2026-10-16 21:30:52 +00:00
machined: make image read-only check indepenednt on own privs
This commit is contained in:
+1
-1
@@ -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)) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user