Index: libselinux-3.3/src/procattr.c =================================================================== --- libselinux-3.3.orig/src/procattr.c +++ libselinux-3.3/src/procattr.c @@ -148,7 +148,7 @@ static int getprocattrcon_raw(char ** co return -1; } - if (prev_context && prev_context != UNSET) { + if (prev_context && prev_context != UNSET && !pid) { *context = strdup(prev_context); if (!(*context)) { return -1;