mission-improbable
mission-improbable copied to clipboard
Cannot set SELinux context for file 'system/xxx': Invalid argument
Running on a fresh Fedora 25 install I'm getting the following error running run_all.sh
.
...
Dumped cpio-41
Dumped cpio-42
Dumped cpio-43
Dumped cpio-44
/home/user/mission-improbable
We now need sudo to mount the system image and apply the delta
[sudo] password for user:
system/addon.d/
system/addon.d/70-gapps.sh
tar: setfileconat: Cannot set SELinux context for file 'system/addon.d/70-gapps.sh': Invalid argument
system/app/GoogleCalendarSyncAdapter/
...
system/priv-app/PrebuiltGmsCore/PrebuiltGmsCore.apk
tar: setfileconat: Cannot set SELinux context for file 'system/priv-app/PrebuiltGmsCore/PrebuiltGmsCore.apk': Invalid argument
system/priv-app/SetupWizard/
tar: setfileconat: Cannot set SELinux context for file 'system/priv-app/PrebuiltGmsCore': Invalid argument
system/priv-app/SetupWizard/SetupWizard.apk
tar: setfileconat: Cannot set SELinux context for file 'system/priv-app/SetupWizard/SetupWizard.apk': Invalid argument
system/framework/com.google.widevine.software.drm.jar
tar: setfileconat: Cannot set SELinux context for file 'system/priv-app/SetupWizard': Invalid argument
tar: setfileconat: Cannot set SELinux context for file 'system/framework/com.google.widevine.software.drm.jar': Invalid argument
Gapps delta applied!
I received a warning in SELinux Troubleshooter. It gave me the following commands which fixed the above issue:
# ausearch -c 'tar' --raw | audit2allow -M my-tar
# semodule -X 300 -i my-tar.pp
Perhaps we should check if tar
has the correct SELinux permissions and run the above if not.