From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefan Schantl To: development@lists.ipfire.org Subject: [PATCH 1/3] libsemanage: Drop package Date: Thu, 12 Oct 2017 11:28:08 +0200 Message-ID: <20171012092810.18910-1-stefan.schantl@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============8212906300399132727==" List-Id: --===============8212906300399132727== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Signed-off-by: Stefan Schantl --- libsemanage/libsemanage.nm | 74 ----------------------------= -- libsemanage/patches/libsemanage-rhat.patch | 24 ---------- libsemanage/semanage.conf | 50 -------------------- 3 files changed, 148 deletions(-) delete mode 100644 libsemanage/libsemanage.nm delete mode 100644 libsemanage/patches/libsemanage-rhat.patch delete mode 100644 libsemanage/semanage.conf diff --git a/libsemanage/libsemanage.nm b/libsemanage/libsemanage.nm deleted file mode 100644 index 5bac1be..0000000 --- a/libsemanage/libsemanage.nm +++ /dev/null @@ -1,74 +0,0 @@ -############################################################################= ### -# IPFire.org - An Open Source Firewall Solution = # -# Copyright (C) - IPFire Development Team = # -############################################################################= ### - -name =3D libsemanage -version =3D 2.1.5 -release =3D 3 - -groups =3D System/Libraries -url =3D http://www.selinuxproject.org -license =3D LGPLv2+ -summary =3D SELinux binary policy manipulation library. - -description - libsemanage provides an API for the manipulation of SELinux - binary policies. -end - -sources =3D %{thisapp}.tgz - -build - requires - bison - bzip2-devel - flex - libselinux-devel - libsepol-devel >=3D 2.1.4 - python-devel - swig - ustr-devel - end - - build - make clean - make CC=3Dgcc LIBDIR=3D"%{libdir}" CFLAGS=3D"-g %{CFLAGS}" swigify - make CC=3Dgcc LIBDIR=3D"%{libdir}" CFLAGS=3D"-g %{CFLAGS}" all - make CC=3Dgcc LIBDIR=3D"%{libdir}" CFLAGS=3D"-g %{CFLAGS}" pywrap - end - - # Install libraries to correct place. - make_install_targets +=3D \ - LIBDIR=3D"%{BUILDROOT}%{libdir}" \ - SHLIBDIR=3D"%{BUILDROOT}%{libdir}" - - install_cmds - make install-pywrap %{make_install_targets} DESTDIR=3D%{BUILDROOT} - - # Install our config file - cp -vf %{DIR_SOURCE}/semanage.conf %{BUILDROOT}/etc/selinux/semanage.conf - end -end - -packages - package %{name} - end - - package %{name}-devel - template DEVEL - end -=09 - package python-libsemanage - summary =3D SELinux manage python bindings. - description =3D SELinux python bindings for libsemanage. - - files - %{libdir}/python* - end - end - - package %{name}-debuginfo - template DEBUGINFO - end -end diff --git a/libsemanage/patches/libsemanage-rhat.patch b/libsemanage/patches= /libsemanage-rhat.patch deleted file mode 100644 index a1f53c5..0000000 --- a/libsemanage/patches/libsemanage-rhat.patch +++ /dev/null @@ -1,24 +0,0 @@ -diff --exclude-from=3Dexclude -N -u -r nsalibsemanage/src/genhomedircon.c li= bsemanage-2.0.44/src/genhomedircon.c ---- nsalibsemanage/src/genhomedircon.c 2009-09-17 08:59:43.000000000 -0400 -+++ libsemanage-2.0.44/src/genhomedircon.c 2010-02-24 14:57:23.000000000 -05= 00 -@@ -310,6 +310,10 @@ - } - if (strcmp(pwbuf->pw_dir, "/") =3D=3D 0) - continue; -+ if (strcmp(pwbuf->pw_dir, "/root") =3D=3D 0) { -+ continue; -+ } -+ - if (semanage_str_count(pwbuf->pw_dir, '/') <=3D 1) - continue; - if (!(path =3D strdup(pwbuf->pw_dir))) { -@@ -803,6 +807,9 @@ - * /root */ - continue; - } -+ if (strcmp(pwent->pw_dir, "/root") =3D=3D 0) { -+ continue; -+ } - if (push_user_entry(&head, name, seuname, - prefix, pwent->pw_dir) !=3D STATUS_SUCCESS) { - *errors =3D STATUS_ERR; diff --git a/libsemanage/semanage.conf b/libsemanage/semanage.conf deleted file mode 100644 index 882b8f0..0000000 --- a/libsemanage/semanage.conf +++ /dev/null @@ -1,50 +0,0 @@ -# Authors: Jason Tang -# -# Copyright (C) 2004-2005 Tresys Technology, LLC -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA -# -# Specify how libsemanage will interact with a SELinux policy manager. -# The four options are: -# -# "source" - libsemanage manipulates a source SELinux policy -# "direct" - libsemanage will write directly to a module store. -# /foo/bar - Write by way of a policy management server, whose -# named socket is at /foo/bar. The path must begin -# with a '/'. -# foo.com:4242 - Establish a TCP connection to a remote policy -# management server at foo.com. If there is a colon -# then the remainder is interpreted as a port number; -# otherwise default to port 4242. -module-store =3D direct - -# When generating the final linked and expanded policy, by default -# semanage will set the policy version to POLICYDB_VERSION_MAX, as -# given in . Change this setting if a different -# version is necessary. -#policy-version =3D 19 - -# expand-check check neverallow rules when executing all semanage commands. -# Large penalty in time if you turn this on. =20 -expand-check=3D0 - -# usepasswd check tells semanage to scan all pass word records for home dire= ctories -# and setup the labeling correctly. If this is turned off, SELinux will lab= el /home=20 -# correctly only. You will need to use semanage fcontext command. =20 -# For example, if you had home dirs in /althome directory you would have to = execute -# semanage fcontext -a -e /home /althome -usepasswd=3DFalse -bzip-small=3Dtrue -bzip-blocksize=3D5 --=20 2.9.4 --===============8212906300399132727==--