You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
core: when inheriting credentials from manager to service, make missing creds graceful
Let's be a bit less strict when setting up credentials: if the service
manager didn't receieve a cred, and we shall propagate it down via
LoadCredentials= don't fail. Fail on all other errors though, as before,
and on explicitly listed paths.
faccessat(dfd, *id, F_OK, AT_SYMLINK_NOFOLLOW) >= 0) /* If the source file doesn't exist, but we already acquired the key otherwise, then don't fail */
2599
+
if (r==-ENOENT&& (missing_ok||faccessat(dfd, *id, F_OK, AT_SYMLINK_NOFOLLOW) >= 0)) {
2600
+
/* Make a missing inherited credential non-fatal, let's just continue. After all apps
2601
+
* will get clear errors if we don't pass such a missing credential on as they
2602
+
* themselves will get ENOENT when trying to read them, which should not be much
2603
+
* worse than when we handle the error here and make it fatal.
2604
+
*
2605
+
* Also, if the source file doesn't exist, but we already acquired the key otherwise,
0 commit comments