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

usbg_set_function_attrs returns NO_ACCESS #51

Open
yxue2 opened this issue Dec 29, 2020 · 1 comment
Open

usbg_set_function_attrs returns NO_ACCESS #51

yxue2 opened this issue Dec 29, 2020 · 1 comment

Comments

@yxue2
Copy link

yxue2 commented Dec 29, 2020

When I followed the example gadget_uac2.c to create UAC2 gadget, usbg_create_function returns NO_ACCESS error. And I found that &f_uac2_attrs causes this error in usbg_set_function_attrs method.

Do you have any idea what causes it?

@pabs3
Copy link
Member

pabs3 commented Jul 13, 2021

@yxue2 please try running the gadget as root, if that doesn't work then please strace the gadget and see which file is getting which error. NO_ACCESS corresponds to these three errno values:

EACCES 13 Permission denied
EROFS 30 Read-only file system
EPERM 1 Operation not permitted

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