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

aadsshlogin for SLES and openSUSE VM images requiring wrong libsemanage.so.1 #180

Closed
515k4 opened this issue Oct 22, 2024 · 2 comments
Closed
Labels
bug Something isn't working

Comments

@515k4
Copy link

515k4 commented Oct 22, 2024

When I try install https://packages.microsoft.com/opensuse/15/prod/Packages/a/aadsshlogin-1.0.027980001-1.x86_64.rpm on openSUSE Leap 15.6 I got error: nothing provides 'libsemanage.so.1()(64bit)' needed by the to be installed aadsshlogin-1.0.027980001-1.x86_64. The same is probably true for all other openSUSE Leap versions and even for SLES images as I look into those RPM and they requires old libsemanage.so.1.

All modern Linux distros are using libsemanage.so.2, and e.g. package for Ubuntu or RHEL does indeed require libsemanage.so.2.

Can you rebuild and repack packages for SLES and openSUSE with correct libsemanage.so.2. It seems you are using outdated build image with non-standard and old SELinux.

By the way the library is not really needed for non-SELinux environment. When I rename libsemanage.so.2 to libsemanage.so.1 the package's binaries aaduseradd and aaduserdel are working normally.

As a workaround I have created fake RPM with copy of libsemanage.so.2 renamed to libsemanage.so.1 providing fake symbols libsemanage.so.1()(64bit) and libsemanage.so.1(LIBSEMANAGE_1.0)(64bit). When I installed this fake RPM to VM with openSUSE Leap 15.6 image, the aadsshlogin can be installed and works completely fine. I can even install the package via Azure Portal by adding an extension AAD SSH Login for Linux and the deployment ends with no error and login with az login and az ssh vm ... works as expected.

@515k4 515k4 added the bug Something isn't working label Oct 22, 2024
@sdherr
Copy link
Contributor

sdherr commented Oct 25, 2024

Thanks for the bug report, I have alerted the appropriate team.

@515k4
Copy link
Author

515k4 commented Dec 10, 2024

@515k4 515k4 closed this as completed Dec 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants