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

Bug with Tuxedo Pulse 14 Gen 3 #103

Open
gabyx opened this issue Jun 19, 2024 · 2 comments
Open

Bug with Tuxedo Pulse 14 Gen 3 #103

gabyx opened this issue Jun 19, 2024 · 2 comments

Comments

@gabyx
Copy link

gabyx commented Jun 19, 2024

When I use tailor_hdwcap I get on Tuxedo Pulse 14 Gen 3:

RUST_BACKTRACE=1 tailor_hwcaps
thread 'main' panicked at /build/tuxedo-rs-0.3.1-vendor.tar.gz/sudo/src/lib.rs:141:48:
failed to execute child: Os { code: 2, kind: NotFound, message: "No such file or directory" }
stack backtrace:
   0: rust_begin_unwind
   1: core::panicking::panic_fmt
   2: core::result::unwrap_failed
   3: core::result::Result<T,E>::expect
   4: sudo::with_env
   5: tailor_hwcaps::main
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

Could we have some better error message to see whats going wrong.
I am using the Nix install with version: 0.3.1

@AaronErhardt
Copy link
Owner

This panic does not originate in tuxedo-rs but rather in the sudo crate (precisely here). Because hwcaps needs to read data from sysfs and ioctl, it needs elevated privileges which is done with the sudo crate.

Since the sudo binary is not the only commonly used solution for gaining elevated privileges anymore, we should migrate to another crate, but AFAIK there is no alternative at the moment.

@gabyx
Copy link
Author

gabyx commented Jun 21, 2024 via email

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

No branches or pull requests

2 participants