Skip to content

🐛 Now different users on the same bridge can run the same plugin#7

Merged
davafons merged 1 commit intomasterfrom
fix-4
Jun 20, 2019
Merged

🐛 Now different users on the same bridge can run the same plugin#7
davafons merged 1 commit intomasterfrom
fix-4

Conversation

@davafons
Copy link
Copy Markdown
Collaborator

The function cmsysbot.utils.session.Session.copy_to_bridge() now checks first if the file is already present on the bridge computer. If so, don't perform any copy. Otherwise, the file will be copied to the bridge.

When a plugin is copied to the bridge (because its going to be executed), the copy of the bridge path will have assigned the permissions 555, allowing any user to execute it, but preventing undesired modifications.

Closes #4

The function now checks if the file is already present on the bridge. If so, do not copy. Otherwise,
copy it and assign the permissions 555 to the new file so any user can run it but don't do any
modifications.

Closes #4
@davafons davafons added the fix Fix a bug label Jun 20, 2019
@davafons davafons self-assigned this Jun 20, 2019
@davafons davafons merged commit 1204819 into master Jun 20, 2019
@davafons davafons deleted the fix-4 branch June 20, 2019 18:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix Fix a bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

"Error 13 Permission denied" when executing a plugin created by another user

1 participant