mmtrt / acrordrdc-snap

Unofficial snap repo for acrordrdc snap
https://snapcraft.io/acrordrdc
GNU Lesser General Public License v2.1
27 stars 5 forks source link

"wine: could not load ntdll.so error on AlmaLinux 9.2" error #38

Open tonydiep opened 1 year ago

tonydiep commented 1 year ago

When running as a regular user acrordrdc tries to download and reinstall itself

$ acrordrdc results in:

wine: could not load ntdll.so: /snap/acrordrdc/62/wine-platform/wine-stable/bin/../lib/wine/ntdll.so: cannot restore segment prot after reloc: Permission denied

to workaround I have to

  1. disable SELinux with sudo setenforce
  2. sudo acrordrdc

will start Acrobat.

Is there a way to run acrordrdc without root?

System: AlmaLinux 9.2 (Red Hat Enterprise Linux clone); Wayland; Gnome 40.4.0

tonydiep commented 1 year ago

Tracked down the files that are triggering SELinux but the files are read-only so cannot change SELinux context.

[tonydiep@server2 snap]$ sudo chcon -t textrel_shlib_t /snap/wine-platform-6-stable/19/opt/wine-stable/lib/wine/ntdll.so chcon: failed to change context of '/snap/wine-platform-6-stable/19/opt/wine-stable/lib/wine/ntdll.so' to ‘system_u:object_r:textrel_shlib_t:s0’: Read-only file system [tonydiep@server2 snap]$ sudo chcon -t textrel_shlib_t /snap/wine-platform-6-stable/19/opt/wine-stable/lib64/wine/ntdll.so chcon: failed to change context of '/snap/wine-platform-6-stable/19/opt/wine-stable/lib64/wine/ntdll.so' to ‘system_u:object_r:textrel_shlib_t:s0’: Read-only file system

tonydiep commented 1 year ago

current workaround is to basically turn off SELinux or set it to warn only

$ sudo nano /etc/selinux/config SELINUX=permissive

mmtrt commented 1 year ago

maybe kernel is missing Snapd changes for SELinux or AppArmor causing this issue. OR snapd issue on AlmaLinux