| Auto-Submit | +1 |
| Commit-Queue | +1 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
ensure_permissions(abs_out_dir, user_home, force=set_permissions)If this script is run before the binaries are built, `check_permissions()` will fail because the binaries don't exist yet. This will cause the script to unnecessarily traverse up the parent directories running `setfacl`, and then print a confusing "ACLs updated but permissions still failing." warning.
Consider moving this `ensure_permissions` call down into the `if host_state is not None and core_state is not None:` block where `start_daemon()` is called, as you already do in the monitor loop. This will prevent it from running when the binaries are absent.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Auto-Submit | +1 |
| Commit-Queue | +2 |
ensure_permissions(abs_out_dir, user_home, force=set_permissions)If this script is run before the binaries are built, `check_permissions()` will fail because the binaries don't exist yet. This will cause the script to unnecessarily traverse up the parent directories running `setfacl`, and then print a confusing "ACLs updated but permissions still failing." warning.
Consider moving this `ensure_permissions` call down into the `if host_state is not None and core_state is not None:` block where `start_daemon()` is called, as you already do in the monitor loop. This will prevent it from running when the binaries are absent.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
4 is the latest approved patch-set.
The change was submitted with unreviewed changes in the following files:
```
The name of the file: remoting/tools/run_multi_process_host.py
Insertions: 1, Deletions: 2.
@@ -225,8 +225,6 @@
remoting_host_path = os.path.join(abs_out_dir, "remoting_me2me_host")
remoting_core_path = os.path.join(abs_out_dir, "libremoting_core.so")
- ensure_permissions(abs_out_dir, user_home, force=set_permissions)
-
daemon_command = [remoting_host_path, "--type=daemon"]
# Initial state for monitoring
@@ -262,6 +260,7 @@
atexit.register(terminate_remote_sessions)
if host_state is not None and core_state is not None:
+ ensure_permissions(abs_out_dir, user_home, force=set_permissions)
start_daemon()
else:
print("Binaries are missing. Waiting for them to be built...")
```
Improve run_multi_process_host.py helper script
* Add --set-permissions option to forcibly run setfacl. The permissions
check only look at libremoting_core.so and remoting_me2me_host, so
it will miss any changes you make outside of remoting/.
* Monitor libremoting_core.so and remoting_me2me_host and
automatically restart daemon on change.
TAG=agy
CONV=58f33be9-8a77-42c7-8e29-00ab51811d1c
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |