Skip to content

New feature: enable setting lock dir permissions - #1

Open
Trek333 wants to merge 1 commit into
kata198:masterfrom
Trek333:mkdir-mode-parameter
Open

New feature: enable setting lock dir permissions#1
Trek333 wants to merge 1 commit into
kata198:masterfrom
Trek333:mkdir-mode-parameter

Conversation

@Trek333

@Trek333 Trek333 commented Nov 29, 2022

Copy link
Copy Markdown

The directory that is created by the acquire function (i.e. os.mkdir command) uses the default setting of mode=0o777 (i.e. world writable) with no way to change it. It is a security best practice to not create world writable objects, and vulnerability scanners are known to check for world writable objects. A mode parameter with a default value of 0o777 for backwards compatibility was added to the class constructor, and the mode parameter was added to the os.mkdir command to allow the mode value to be customized.

The directory that is created by the acquire function (i.e. os.mkdir command) uses the default setting of mode=0o777 (i.e. world writable) with no way to change it. It is a security best practice to not create world writable objects, and vulnerability scanners are known to check for world writable objects. A mode parameter with a default value of 0o777 for backwards compatibility was added to the class constructor, and the mode parameter was added to the os.mkdir command to allow the mode value to be customized.
@devrsw

devrsw commented Dec 16, 2022

Copy link
Copy Markdown

This would be a great release item!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants