Mindaugas Rasiukevicius <rm...@netbsd.org> writes: > Module Name: src > Committed By: rmind > Date: Sat Apr 30 23:41:17 UTC 2011 > > Modified Files: > src/sys/kern: kern_resource.c > > Log Message: > sysctl_proc_corename: improve comments, clean up, move a check for > KAUTH_REQ_PROCESS_CORENAME_SET earlier, do not bother to strcmp(). > > > To generate a diff of this commit: > cvs rdiff -u -r1.157 -r1.158 src/sys/kern/kern_resource.c
Why the authorization check for set can be done such earlier? The kauth(9) man page defines that the 2nd arg is new corename to be set, but I don't think path buffer just returned from PNBUG_GET() contains anything useful. enami.