Bug 242048 - etcupdate should acquire lock to avoid racing with another instance
Summary: etcupdate should acquire lock to avoid racing with another instance
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-11-18 05:42 UTC by Xin LI
Modified: 2019-11-18 18:18 UTC (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Xin LI freebsd_committer freebsd_triage 2019-11-18 05:42:01 UTC
Currently etcupdate(8) does not acquire any lock prior to operation, but the operations are not re-entrant safe, for example, if the administrator performs another 'etcupdate' in a different SSH session, the etcupdate state would be damaged.