Skip to content
Commit ca324a6f authored by Tomasz Dziendzielski's avatar Tomasz Dziendzielski Committed by Anuj Mittal
Browse files

sstatesig: Add descriptive error message to getpwuid/getgrgid "uid/gid not found" KeyError



If path is not owned by any user installed on target it gives
insufficient error "getpwuid(): uid not found" which may be misleading.
This exception occurs if uid/gid of path was not found in PSEUDO_PASSWD
files, which simply means the path is owned by host user and there is
host user contamination.

Add more information to the exception message to make it easier for user
to debug.

[YOCTO #14031]

Signed-off-by: default avatarTomasz Dziendzielski <tomasz.dziendzielski@gmail.com>
Signed-off-by: default avatarRichard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 38540b59)
Signed-off-by: default avatarAnuj Mittal <anuj.mittal@intel.com>
parent 79368ef0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment