library: disabled some code that now serves no purpose
In the patch shown below, two lines involving the flag PROC_UID were uncommented (enabled). However given the construct of the readeither function, it is impossible for the simple_readtask guy to be called when its TGID leader has already been ignored. So, let's disable it. [ it's only now true that the lines serve no purpose ] [ after the commit shown below tweaked readeither to ] [ access the base directory of the tgid leader. but, ] [ before that, the 2 lines should have been enabled! ] Reference(s): . two lines uncommented commitaf34cc964a
. tweaked readeither commita375262609
Signed-off-by: Jim Warner <james.warner@comcast.net>
This commit is contained in:
parent
243bca8ab0
commit
f1aad95cd1
@ -1248,8 +1248,8 @@ static proc_t *simple_readtask(PROCTAB *restrict const PT, proc_t *restrict cons
|
||||
if (stat(path, &sb) == -1) /* no such dirent (anymore) */
|
||||
goto next_task;
|
||||
|
||||
if ((flags & PROC_UID) && !XinLN(uid_t, sb.st_uid, PT->uids, PT->nuid))
|
||||
goto next_task; /* not one of the requested uids */
|
||||
// if ((flags & PROC_UID) && !XinLN(uid_t, sb.st_uid, PT->uids, PT->nuid))
|
||||
// goto next_task; /* not one of the requested uids */
|
||||
|
||||
t->euid = sb.st_uid; /* need a way to get real uid */
|
||||
t->egid = sb.st_gid; /* need a way to get real gid */
|
||||
|
Loading…
Reference in New Issue
Block a user