GetExecUIDGIDFromUser retrieves the UID and GID from /etc/passwd file for the given user.
(ctx context.Context, vmns *vfs.MountNamespace, user string)
| 370 | // GetExecUIDGIDFromUser retrieves the UID and GID from /etc/passwd file for |
| 371 | // the given user. |
| 372 | func GetExecUIDGIDFromUser(ctx context.Context, vmns *vfs.MountNamespace, user string) (auth.KUID, auth.KGID) { |
| 373 | // Read /etc/passwd and retrieve the UID/GID based on the user string. |
| 374 | uid, gid := getExecUIDGID(ctx, vmns, user) |
| 375 | return uid, gid |
| 376 | } |
searching dependent graphs…