From: dcashman <dcashman@xxxxxxxxxxx> The getprocattrcon functions currently do not do any validation of the supplied pid argument. This argument is nonsensical for negative pid values and is also not specified for an input value of zero. This is an error-prone convention and should be changed. This is evidenced by issues such as the following android bug: https://code.google.com/p/android/issues/detail?id=200617 dcashman (2): libselinux: procattr: return error on invalid pid_t input. libselinux: procattr: return einval for <= 0 pid args. libselinux/src/procattr.c | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) -- 2.7.0.rc3.207.g0ac5344 _______________________________________________ Selinux mailing list Selinux@xxxxxxxxxxxxx To unsubscribe, send email to Selinux-leave@xxxxxxxxxxxxx. To get help, send an email containing "help" to Selinux-request@xxxxxxxxxxxxx.