Summary: | mountd: mountd.pid file is not readable by normal users | ||||||
---|---|---|---|---|---|---|---|
Product: | Base System | Reporter: | Ruben Kerkhof <ruben> | ||||
Component: | bin | Assignee: | freebsd-bugs (Nobody) <bugs> | ||||
Status: | Closed Not A Bug | ||||||
Severity: | Affects Some People | CC: | asomers, jilles | ||||
Priority: | --- | Keywords: | patch | ||||
Version: | CURRENT | ||||||
Hardware: | Any | ||||||
OS: | Any | ||||||
Attachments: |
|
Description
Ruben Kerkhof
2016-03-08 14:34:55 UTC
Created attachment 167853 [details]
Change permissions of mountd.pid to 0644
Unfortunately, mountd uses pidfile(3) which relies on file locking and making the file world-readable would allow any user to lock it in shared mode, possibly disturbing the scheme. Thanks for the explanation Jilles. Interestingly enough dhclient and nscd also set the permissions on their pidfiles to 644. Closing as not-a-bug, according to Jilles' explanation. |