[Bug 1433] sshd.pid has permissions of 666
bugzilla-daemon at bugzilla.mindrot.org
bugzilla-daemon at bugzilla.mindrot.org
Mon Jan 28 17:28:24 EST 2008
https://bugzilla.mindrot.org/show_bug.cgi?id=1433
--- Comment #4 from Darren Tucker <dtucker at zip.com.au> 2008-01-28 17:28:22 ---
(From update of attachment 1449)
> fprintf(f, "%ld\n", (long) getpid());
> fclose(f);
>+ if (chmod(options.pid_file,0644) == -1)
>+ logit("chmod pid file failed");
This is not the best way to handle this as it's racy (ie there's a
period between the write and the chmod where the content of the file
could be changed).
--
Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
More information about the openssh-bugs
mailing list