Merge pull request #386 from juergbi/proc-erofs
Accept EROFS for access() check of /proc entries
This commit is contained in:
@@ -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);
|
||||||
|
Reference in New Issue
Block a user