Skip to content

Conversation

tadad
Copy link
Contributor

@tadad tadad commented Feb 7, 2024

NOTE: can't merge before hyperware-ai/process_lib#50 (need to update Cargo.tomls to reflect latest version)

  • drop_capabilities added to standard_host.rs
  • Bug fixed with OnExit::Requests
  • All granted caps are cleaned up when a process is killed
  • addresses scripts: improve error handling #220 with better error handling in alias

Note that while DropCaps isn't used in the final version of this PR, it was tested on an earlier commit

@tadad tadad requested a review from dr-frmr February 7, 2024 19:43
@tadad tadad changed the base branch from main to develop February 7, 2024 20:31
Comment on lines +386 to +388
// first check to make sure the script is actually a script
let Ok(_) = get_entry(&process) else {
return Err(anyhow!("terminal: process {} not found", process));
Copy link
Contributor

Choose a reason for hiding this comment

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

again, is this check necessary? it's not crazy to have aliases be settable for nonexistent scripts and show a descriptive error when the alias gets used

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I like having the extra check. It saves an extra step from 1. save alias, 2. try using alias and it fails, 3. reset alias to just 1. get an error for failed alias 2. reset alias

Plus this check adds basically no time

@tadad tadad merged commit 1eb4824 into develop Feb 8, 2024
@tadad tadad deleted the da/drop branch February 8, 2024 20:42
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