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

Failed to Enable fs-verity on roles.xml: Inappropriate ioctl for device #28

Open
488315 opened this issue Oct 31, 2023 · 0 comments
Open

Comments

@488315
Copy link
Collaborator

488315 commented Oct 31, 2023

Description:
Issue
I encountered an issue with the Android system related to enabling fs-verity on the roles.xml file, which is causing errors and preventing the proper functioning of the Roles Persistence feature.

Error Message

bash
Copy code
Failed to enable fs-verity on /data/misc_de/0/apexdata/com.android.permission/roles.xml: Inappropriate ioctl for device
Details

Component: Roles Persistence
Error Source: RolesPersistenceImpl.java
Error Location: com.android.internal.security.VerityUtils.setUpFsverity(VerityUtils.java:80)
Android Version: [Specify Android version]
Description
I am experiencing an error that occurs when the system attempts to enable fs-verity on the roles.xml file located at /data/misc_de/0/apexdata/com.android.permission/roles.xml. This error is causing the Roles Persistence feature to fail.

The error message suggests that the ioctl operation used for enabling fs-verity is inappropriate for the device, which is leading to an IOException.

02:29:35.974                RolesPersistenceImpl (546   648)  E    java.io.IOException: Failed to enable fs-verity on /data/misc_de/0/apexdata/com.android.permission/roles.xml: Inappropriate ioctl for device
02:29:35.974                RolesPersistenceImpl (546   648)  E    at com.android.internal.security.VerityUtils.setUpFsverity(VerityUtils.java:80)
02:29:35.974                RolesPersistenceImpl (546   648)  E    at com.android.server.security.FileIntegrity.setUpFsVerity(FileIntegrity.java:45)
02:29:35.974                RolesPersistenceImpl (546   648)  E    at com.android.role.persistence.RolesPersistenceImpl.lambda$new$0(RolesPersistenceImpl.java:82)
02:29:35.974                RolesPersistenceImpl (546   648)  E    at com.android.role.persistence.RolesPersistenceImpl.$r8$lambda$ickGZIv_pRR1EKdSoup5TAIVG7Q(RolesPersistenceImpl.java:0)
02:29:35.974                RolesPersistenceImpl (546   648)  E    at com.android.role.persistence.RolesPersistenceImpl$$ExternalSyntheticLambda0.enableFsVerity(R8$$SyntheticClass:0)
02:29:35.974                RolesPersistenceImpl (546   648)  E    at com.android.role.persistence.RolesPersistenceImpl.writeForUser(RolesPersistenceImpl.java:223)
02:29:35.974                RolesPersistenceImpl (546   648)  E    at com.android.role.RoleUserState.writeFile(RoleUserState.java:392)
02:29:35.974                RolesPersistenceImpl (546   648)  E    at com.android.role.RoleUserState.$r8$lambda$czjyYmVdh2Bej-XExJPvwTObAeY(RoleUserState.java:0)
02:29:35.974                RolesPersistenceImpl (546   648)  E    at com.android.role.RoleUserState$$ExternalSyntheticLambda0.run(R8$$SyntheticClass:0)
02:29:35.974                RolesPersistenceImpl (546   648)  E    at android.os.Handler.handleCallback(Handler.java:958)
02:29:35.974                RolesPersistenceImpl (546   648)  E    at android.os.Handler.dispatchMessage(Handler.java:99)
02:29:35.974                RolesPersistenceImpl (546   648)  E    at android.os.Looper.loopOnce(Looper.java:205)
02:29:35.974                RolesPersistenceImpl (546   648)  E    at android.os.Looper.loop(Looper.java:294)
02:29:35.974                RolesPersistenceImpl (546   648)  E    at android.os.HandlerThread.run(HandlerThread.java:67)
02:29:36.765                WifiStaIfaceAidlImpl (546   666)  E    getLinkLayerStats failed with service-specific exception: android.os.ServiceSpecificException:  (code 4)
02:29:39.786                WifiStaIfaceAidlImpl (546   666)  E    getLinkLayerStats failed with service-specific exception: android.os.ServiceSpecificException:  (code 4)
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

1 participant