errno-util: introduce ERRNO_IS_NEG_FS_WRITE_REFUSED()
This commit is contained in:
@@ -321,7 +321,7 @@ static int add_export_unix_socket(
|
||||
log_debug("Container manager does not provide /run/host/unix-export/ mount, not binding AF_UNIX socket there.");
|
||||
return 0;
|
||||
}
|
||||
if (errno == EROFS || ERRNO_IS_PRIVILEGE(errno)) {
|
||||
if (ERRNO_IS_FS_WRITE_REFUSED(errno)) {
|
||||
log_debug("Container manager does not provide write access to /run/host/unix-export/, not binding AF_UNIX socket there.");
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user