Patch to install selinux python with correct permissions.
src/Makefile +2 -2
@@ -77,14 +77,14 @@ install: all test -d $(LIBDIR) || install -m 755 -d $(LIBDIR) - install -m 644 $(LIBA) $(LIBDIR) test -d $(SHLIBDIR) || install -m 755 -d $(SHLIBDIR) install -m 755 $(LIBSO) $(SHLIBDIR) cd $(LIBDIR) && ln -sf ../../`basename $(SHLIBDIR)`/$(LIBSO) $(TARGET) install-pywrap: pywrap test -d $(PYTHONLIBDIR)/site-packages || install -m 755 -d $(PYTHONLIBDIR)/site-packages - install -m 755 $(SWIGFILES) $(PYTHONLIBDIR)/site-packages + install -m 755 $(SWIGSO) $(PYTHONLIBDIR)/site-packages + install -m 644 selinux.py $(PYTHONLIBDIR)/site-packages relabel: /sbin/restorecon $(SHLIBDIR)/$(LIBSO)
src/Makefile line 80
Quoted 9 lines · Daniel J Walsh
plain text document attachment (diff)
diff --exclude-from=exclude -N -u -r nsalibselinux/src/Makefile libselinux-2.0.46/src/Makefilesrc/Makefile +0
-1@@ -77,14 +77,14 @@ install: all test -d $(LIBDIR) || install -m 755 -d $(LIBDIR) - install -m 644 $(LIBA) $(LIBDIR)
Why remove the static library from the install target? We still want it installable via some target.
src/Makefile line 87
Quoted 9 lines
src/Makefile +2
-1test -d $(SHLIBDIR) || install -m 755 -d $(SHLIBDIR) install -m 755 $(LIBSO) $(SHLIBDIR) cd $(LIBDIR) && ln -sf ../../`basename $(SHLIBDIR)`/$(LIBSO) $(TARGET) install-pywrap: pywrap test -d $(PYTHONLIBDIR)/site-packages || install -m 755 -d $(PYTHONLIBDIR)/site-packages - install -m 755 $(SWIGFILES) $(PYTHONLIBDIR)/site-packages + install -m 755 $(SWIGSO) $(PYTHONLIBDIR)/site-packages + install -m 644 selinux.py $(PYTHONLIBDIR)/site-packages
So is there much point in keeping SWIGFILES around then? Also used in
clean: at present, but that's the only remaining use. And presumably
the same change should happen to libsemanage?
Quoted 2 lines
src/Makefile +0
-0relabel: /sbin/restorecon $(SHLIBDIR)/$(LIBSO)
Signature · 8 lines
Stephen Smalley National Security Agency -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Quoted 7 lines · Stephen Smalley
Quoted 6 lines · Daniel J Walsh
plain text document attachment (diff)
diff --exclude-from=exclude -N -u -r nsalibselinux/src/Makefile libselinux-2.0.46/src/Makefilesrc/Makefile +0
-0@@ -77,14 +77,14 @@
Quoted 7 lines
src/Makefile line 80
Quoted 3 lines
src/Makefile +0
-1install: all test -d $(LIBDIR) || install -m 755 -d $(LIBDIR) - install -m 644 $(LIBA) $(LIBDIR)Why remove the static library from the install target? We still want it installable via some target.
Yes we should not do this.
Quoted 4 lines
Quoted 4 lines
src/Makefile +0
-0test -d $(SHLIBDIR) || install -m 755 -d $(SHLIBDIR) install -m 755 $(LIBSO) $(SHLIBDIR) cd $(LIBDIR) && ln -sf ../../`basename $(SHLIBDIR)`/$(LIBSO) $(TARGET)
Quoted 10 lines
src/Makefile line 87
Quoted 5 lines
src/Makefile +2
-1install-pywrap: pywrap test -d $(PYTHONLIBDIR)/site-packages || install -m 755 -d $(PYTHONLIBDIR)/site-packages - install -m 755 $(SWIGFILES) $(PYTHONLIBDIR)/site-packages + install -m 755 $(SWIGSO) $(PYTHONLIBDIR)/site-packages + install -m 644 selinux.py $(PYTHONLIBDIR)/site-packagesSo is there much point in keeping SWIGFILES around then? Also used in
clean: at present, but that's the only remaining use. And presumably
the same change should happen to libsemanage?
I don't think so. I would remove them and spell it out.
Quoted 2 lines
src/Makefile line 90
Quoted 2 lines
src/Makefile +0
-0relabel: /sbin/restorecon $(SHLIBDIR)/$(LIBSO)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org
iEYEARECAAYFAkeXncsACgkQrlYvE4MpobOx1wCgrqcLDl4mtY7Yf6biBsbmuLEy 830An2LE/elmxj8/VBZhLV0UxJmmp2Q2
=Z3kZ
-----END PGP SIGNATURE-----
--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.