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

Enhance unsafe detection #800

Merged
merged 5 commits into from
Dec 6, 2024
Merged

Enhance unsafe detection #800

merged 5 commits into from
Dec 6, 2024

Conversation

teamcons
Copy link
Contributor

@teamcons teamcons commented Nov 5, 2024

Not the cleanest. Can always define "more" dangerous behaviours, depends how much we want to get in the weeds. I need to learn more vala

contains:
Multiple commands: as oneliners chained with ";", "||", "|", "&&", "&"

Admin commands: run0, su, pkexec, who serve similar purpose to sudo and doas. "su -" can do a lot too
Add a space, to avoid false flag if say, it is a word like "visual" that has "su" in it. A command needs a space after it.

Following #799 thought its too a minute change to bug anyone

Not the cleanest. Can always define "more" dangerous behaviours, depends how much we want to get in the weeds.
I need to learn more vala

contains:
Multiple commands: as oneliners chained with ";", "||", "|", "&&", "&"

Admin commands: run0, su, pkexec, who serve similar purpose to sudo and doas. "su -" can do a lot too
Add a space, to avoid false flag if say, it is a word like "visual" that has "su" in it. A command needs a space after it.
Copy link
Collaborator

@jeremypw jeremypw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems reasonable. We'll have to see whether users complain about it being too fussy...

@jeremypw jeremypw merged commit e1a34f7 into elementary:master Dec 6, 2024
4 checks passed
@teamcons
Copy link
Contributor Author

teamcons commented Dec 6, 2024

Seems reasonable. We'll have to see whether users complain about it being too fussy...

Ah. I thought you and Danielle expected some refactoring so i forgot about this PR...
Im a bit better since this was done, and some of this irks me a bit, so i now have more incentive to do a cleaner version

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