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

PermissionError: [Errno 1] Operation not permitted when sudo undervolt --read #191

Open
danielelongo14 opened this issue Aug 5, 2024 · 3 comments

Comments

@danielelongo14
Copy link

Hello, i got this error with Ubuntu 22.03 when executing the command:
temperature target: -5 (95C)
Traceback (most recent call last):
File "/usr/local/bin/undervolt", line 8, in
sys.exit(main())
File "/usr/local/lib/python3.10/dist-packages/undervolt.py", line 457, in main
voltage = read_offset(plane, msr)
File "/usr/local/lib/python3.10/dist-packages/undervolt.py", line 209, in read_offset
write_msr(value_to_write, msr.addr_voltage_offsets)
File "/usr/local/lib/python3.10/dist-packages/undervolt.py", line 82, in write_msr
os.write(f, pack('Q', val))
PermissionError: [Errno 1] Operation not permitted

@p0ll3
Copy link

p0ll3 commented Sep 10, 2024

did you find a fix for this issue?

@danielelongo14
Copy link
Author

No I'm not using Ubuntu anymore at the moment

@JosefSchoenberger
Copy link

This most likely comes from the Lockdown LSM, which prevents direct access on MSRs from userspace. Lockdown is automatically enabled with secure boot, which in turn is enabled by default on Ubuntu.

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

3 participants