Skip to content

sarahn/flock-visudo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

flock-visudo

Background: On Linux, there are two locking APIs: FLOCK and the POSIX lockf. Locking using one API appears to have no effect locks used with the other API.

sudo can be built to use either flock or lockf, but there is no way to select after compile time. There is a command line utility for flock but no comparable one for lockf. Therefore by default there is no fail-proof way to interact with the sudoers file both from scripts and visudo. This script wraps the call to visudo in a call to flock such that locking can be performed between command line scripts and visudo.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages