Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'Be' command for unprivileged 'As' #1530

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

kostmo
Copy link
Member

@kostmo kostmo commented Sep 16, 2023

Not sure if this is needed yet.

An alternative implementation might be to implement a new privileged (or god, or sys) command (requiring God capability) that can wrap any other command while running as a "system" bot. Then as could be unprivileged by default and then could be wrapped by privileged to recreate the existing behavior.

@kostmo kostmo added the L-Commands Built-in commands (e.g. move, try, if, ...) in the Swarm language. label Sep 17, 2023
@xsebek
Copy link
Member

xsebek commented Sep 17, 2023

@kostmo I think I like the alternative of unprivileged as - could you please create an issue? I am not sure how the alternatives would work exactly. 🤔

@byorgey
Copy link
Member

byorgey commented Sep 17, 2023

What would the hypothetical privileged/god commands be good for besides wrapping as? If it already requires God capability to use it (as it should) then it doesn't make any difference unless running commands as someone else.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
L-Commands Built-in commands (e.g. move, try, if, ...) in the Swarm language.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants