summaryrefslogtreecommitdiffstats
path: root/package/libsemanage
Commit message (Collapse)AuthorAgeFilesLines
* libsemanage: define installation location of semanage.conf for hostThomas Petazzoni2018-11-131-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | When /etc/selinux/semanage.conf does not exist, libsemanage tries to overwrite it. For the target package, it works fine because $(DESTDIR) is taken into account. However, for the host package, $(DESTDIR) is empty, and the location used for /etc/selinux/semanage.conf is not affected by $(PREFIX). This causes host-libsemanage to try to install /etc/selinux/semanage.conf, which obviously fails with: test -f /etc/selinux/semanage.conf || install -m 644 -D semanage.conf /etc/selinux/semanage.conf install: cannot create directory '/etc/selinux': Permission denied To fix this, this commit passes DEFAULT_SEMANAGE_CONF_LOCATION in the make options when building/installing host-libsemanage, providing a path to semanage.conf that Buildroot can write to. Fixes: http://autobuild.buildroot.net/results/cd27e3c66274622d0c3dd5a601a36efb1bc45011/ Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Tested-by: Matt Weber <matthew.weber@rockwellcollins.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* libsemanage: bump to version 2.8Fabrice Fontaine2018-10-113-123/+8
| | | | | | | | | | | - Remove patch (already in version), see: https://github.com/SELinuxProject/selinux/commit/e15f61e5d2fe74c6e7c0a5f81083a93b508c35f7 - Add hash for license file - Drop -L from PYTHONLIBDIR, which is now really used as a path, and not as flags. Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* libsemanage: remove Blackfin patchThomas Petazzoni2018-04-152-25/+0
| | | | | | And renumber the remaining patch. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* libsemanage: add patch to make the build process more standardMarcus Folkesson2018-01-162-5/+119
| | | | | | | | | Patch the Makefiles to make PREFIX and DESTDIR follow standard semantics to get rid of DESTDIR during compile time in libsemanage.mk and generate proper pkg-config files. Signed-off-by: Marcus Folkesson <marcus.folkesson@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* libsemanage: bump to 2.7Adam Duskett2017-10-172-4/+4
| | | | | Signed-off-by: Adam Duskett <Adamduskett@outlook.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* libsemanage: rework host installationArnout Vandecappelle2017-07-051-7/+10
| | | | | | | | | | | | | | libsemanage has a pretty peculiar interpretation of DESTDIR and PREFIX. PREFIX is not consistently used: some installation paths are forced to $(DESTDIR)/usr/... . In other cases, PREFIX is indeed used. PREFIX defaults to $(DESTDIR)/usr Try to be a little bit more correct by passing both DESTDIR and PREFIX, both set to $(HOST_DIR). This is not a complete fix: man pages are still installed in $(HOST_DIR)/usr - but we don't care about that. Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* Globally replace $(HOST_DIR)/usr/share with $(HOST_DIR)/shareArnout Vandecappelle2017-07-051-1/+1
| | | | | | | | | | | Since things are no longer installed in $(HOST_DIR)/usr, the callers should also not refer to it. This is a mechanical change with git grep -l '$(HOST_DIR)/usr/share' | xargs sed -i 's%$(HOST_DIR)/usr/share%$(HOST_DIR)/share%g' Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* Globally replace $(HOST_DIR)/usr/include with $(HOST_DIR)/includeArnout Vandecappelle2017-07-051-2/+2
| | | | | | | | | | | Since things are no longer installed in $(HOST_DIR)/usr, the callers should also not refer to it. This is a mechanical change with git grep -l '$(HOST_DIR)/usr/include' | xargs sed -i 's%$(HOST_DIR)/usr/include%$(HOST_DIR)/include%g' Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* Globally replace $(HOST_DIR)/usr/lib with $(HOST_DIR)/libArnout Vandecappelle2017-07-051-2/+2
| | | | | | | | | | | Since things are no longer installed in $(HOST_DIR)/usr, the callers should also not refer to it. This is a mechanical change with git grep -l '$(HOST_DIR)/usr/lib' | xargs sed -i 's%$(HOST_DIR)/usr/lib%$(HOST_DIR)/lib%g' Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* package/l*/Config.in: fix ordering of statementsAdam Duskett2017-05-011-4/+4
| | | | | | | | | | | | | The check-package script when ran gives warnings on ordering issues on all of these Config files. This patch cleans up all warnings related to the ordering in the Config files for packages starting with the letter l in the package directory. The appropriate ordering is: type, default, depends on, select, help See http://nightly.buildroot.org/#_config_files for more information. Signed-off-by: Adam Duskett <Adamduskett@outlook.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* boot, package: use SPDX short identifier for LGPLv2.1/LGPLv2.1+Rahul Bedarkar2017-04-011-1/+1
| | | | | | | | | | | We want to use SPDX identifier for license string as much as possible. SPDX short identifier for LGPLv2.1/LGPLv2.1+ is LGPL-2.1/LGPL-2.1+. This change is done using following command. find . -name "*.mk" | xargs sed -ri '/LICENSE( )?[\+:]?=/s/LGPLv2.1(\+)?/LGPL-2.1\1/g' Signed-off-by: Rahul Bedarkar <rahulbedarkar89@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* libsemanage: bump version to 2.6Adam Duskett2017-01-252-3/+3
| | | | | Signed-off-by: Adam Duskett <aduskett@codeblue.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* libsemanage: use $(HOST_MAKE_ENV) when calling $(MAKE)Gustavo Zacarias2016-10-221-4/+4
| | | | | | Signed-off-by: Gustavo Zacarias <gustavo.zacarias@free-electrons.com> Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* libsemanage: use $(TARGET_MAKE_ENV) when calling $(MAKE)Gustavo Zacarias2016-10-221-3/+3
| | | | | | Signed-off-by: Gustavo Zacarias <gustavo.zacarias@free-electrons.com> Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* package/libsemanage: add host-audit as a dependency of the host variantAdam Duskett2016-07-161-1/+1
| | | | | | | | | refpolicy requires host-libsemanage. host-libsemanage will fail to compile without host-audit. This commit adds host-audit as a requirement for host-libsemanage. Signed-off-by: Adam Duskett <Aduskett@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* libsemanage: bump to version 2.5Adam Duskett2016-07-015-22/+13
| | | | | | | | | | | | | | The 0001-execption-lib-path-fix.patch is also no longer needed, as the new version of libsemanage includes the fix provided by the patch. As such, the patch was removed, and 0002 was renamed to 0001. Audit was added as a dependency as the new version of libsemanage will fail to compile searching for audit.h Signed-off-by: Adam Duskett <Aduskett@gmail.com> Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr> [Thomas: add the select on audit + propagate the dependencies.] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* libselinux: bump to version 2.5Adam Duskett2016-07-011-4/+6
| | | | | | | | | | | | | | | | | | In addition, if a user is using glibc 2.22, the default CFLAG D_FILE_OFFSET_BITS=64 will cause a compile error. This flag is now removed from the CFLAGS in the make file to ensure that toolchains compiled against glibc 2.22 will build the new version of the package properly. In addition, libselinux now uses fts(), which is not available on musl, and not provided by our default uClibc configuration. Therefore, libselinux now depends on glibc, as well as all its reverse dependencies. Signed-off-by: Adam Duskett <Aduskett@gmail.com> Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr> [Thomas: add glibc dependency for fts().] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* package/libsemanage: disable on muslBernd Kuhls2016-05-251-0/+2
| | | | | | | | | | Suggested by Thomas: http://article.gmane.org/gmane.comp.lib.uclibc.buildroot/149138 "getpwent_r() is a glibc-specific extension, so it will most likely not be implemented by musl." Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* libselinux: mark as not available on ARCThomas Petazzoni2015-08-191-0/+2
| | | | | | | | | | | | | | | libselinux causes some build problems due to the toolchain on ARC, which haven't been solved so far. As a temporary solution for Buildroot 2015.08, this commit makes libselinux (and its reverse dependencies) unavailable on ARC. Of course, once the toolchain problem is addressed, this commit can be reverted to re-enable libselinux on ARC. Fixes: http://autobuild.buildroot.org/results/220/2207f6aad44a6988bf07b02b583b6418ad930dc8/ Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* libsemanage: cleanup python use and license definitionMatt Weber2015-06-302-42/+22
| | | | | | | | | | The original package supported python on target, now we just use it as part of the host tools. The license was also mis-assigned. [Thomas: add removed option to Config.in.legacy.] Signed-off-by: Matthew Weber <matthew.weber@rockwellcollins.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* packages: remove (non-)lfs dependencies and tweaksGustavo Zacarias2015-04-011-3/+2
| | | | | | | | Now that largefile is mandatory removes package dependencies and conditionals. Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* package/libsemanage: add patch to fix Blackfin build issueRomain Naour2015-02-141-0/+24
| | | | | | | | | | | libsemanage use the same build system than libselinux, so it's affected by the same issue. Fixes: http://autobuild.buildroot.net/results/39d/39d3460e88a1316ec7dbcd0d67b7fdb992c3fc77 Signed-off-by: Romain Naour <romain.naour@openwide.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* libselinux: needs shared library supportThomas Petazzoni2015-01-021-2/+3
| | | | | | | | | | | | | Even though technically libselinux could make its <dlfcn.h> include optional, the build system isn't really suited to build and install only the static variant of libselinux, so let's make libselinux and its reverse dependency not available in pure-static environments. Fixes: http://autobuild.buildroot.org/results/90d/90dc73980a45b9b0441be3d493b22e3afea3cd6e/ Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* libsemanage: change to github locationPeter Korsgaard2015-01-021-1/+1
| | | | | | | | The old location doesn't seem active any more. Even though this github URL looks a bit odd, it is linked from https://github.com/SELinuxProject/selinux/wiki/Releases Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* libsemanage: add hash fileThomas Petazzoni2015-01-011-0/+2
| | | | Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* libsemanage: misc improvementsThomas Petazzoni2015-01-012-14/+14
| | | | | | | | This commit should have been part of the "libsemanage: new package" commit, but due a mistake, the former commit was pushed before those changes were squashed into it. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* libsemanage: new packageClayton Shotwell2015-01-013-0/+116
Signed-off-by: Clayton Shotwell <clshotwe@rockwellcollins.com> Signed-off-by: Matt Weber <matthew.weber@rockwellcollins.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
OpenPOWER on IntegriCloud