Parsing TTY information before checking user permission reg.

Vigneswaran R <[email protected]> Thu, 8 Jun 2017 10:19:00 +0530
Newsgroups gmane.comp.tools.sudo.devel
Message-ID <[email protected]>
Hello,

It appears that sudo is parsing the /proc/self/stat before checking 
whether the user is having permission to run sudo or not. Isn't it 
better if we do the parsing only after verifying the user permission?

Or is it done that way for some reasons (such as user verification and 
the subsequent command execution are tightly coupled)?

Thanks.

Regards,
Vignesh
____________________________________________________________
sudo-workers mailing list <[email protected]>
For list information, options, or to unsubscribe, visit:
https://www.sudo.ws/mailman/listinfo/sudo-workers