Merge pull request #386 from juergbi/proc-erofs

Accept EROFS for access() check of /proc entries
This commit is contained in:
Colin Walters
2020-08-25 11:48:33 -04:00
committed by GitHub

View File

@@ -1148,7 +1148,7 @@ setup_newroot (bool unshare_pid,
if (access (subdir, W_OK) < 0) if (access (subdir, W_OK) < 0)
{ {
/* The file is already read-only or doesn't exist. */ /* The file is already read-only or doesn't exist. */
if (errno == EACCES || errno == ENOENT) if (errno == EACCES || errno == ENOENT || errno == EROFS)
continue; continue;
die_with_error ("Can't access %s", subdir); die_with_error ("Can't access %s", subdir);