From patchwork Thu Oct 12 20:28:08 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Schantl X-Patchwork-Id: 1475 Return-Path: Received: from mail01.ipfire.org (unknown [172.28.1.200]) by web02.ipfire.org (Postfix) with ESMTP id 51CB760C10 for ; Thu, 12 Oct 2017 11:18:24 +0200 (CEST) Received: from mail01.ipfire.org (localhost [IPv6:::1]) by mail01.ipfire.org (Postfix) with ESMTP id 8730629ED; Thu, 12 Oct 2017 11:18:23 +0200 (CEST) Received: from tuxedo.stevee (unknown [46.125.249.118]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mail01.ipfire.org (Postfix) with ESMTPSA id 6838629ED; Thu, 12 Oct 2017 11:18:21 +0200 (CEST) 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> X-Mailer: git-send-email 2.9.4 X-BeenThere: development@lists.ipfire.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: IPFire development talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: development-bounces@lists.ipfire.org Sender: "Development" 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 = libsemanage -version = 2.1.5 -release = 3 - -groups = System/Libraries -url = http://www.selinuxproject.org -license = LGPLv2+ -summary = SELinux binary policy manipulation library. - -description - libsemanage provides an API for the manipulation of SELinux - binary policies. -end - -sources = %{thisapp}.tgz - -build - requires - bison - bzip2-devel - flex - libselinux-devel - libsepol-devel >= 2.1.4 - python-devel - swig - ustr-devel - end - - build - make clean - make CC=gcc LIBDIR="%{libdir}" CFLAGS="-g %{CFLAGS}" swigify - make CC=gcc LIBDIR="%{libdir}" CFLAGS="-g %{CFLAGS}" all - make CC=gcc LIBDIR="%{libdir}" CFLAGS="-g %{CFLAGS}" pywrap - end - - # Install libraries to correct place. - make_install_targets += \ - LIBDIR="%{BUILDROOT}%{libdir}" \ - SHLIBDIR="%{BUILDROOT}%{libdir}" - - install_cmds - make install-pywrap %{make_install_targets} DESTDIR=%{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 - - package python-libsemanage - summary = SELinux manage python bindings. - description = 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=exclude -N -u -r nsalibsemanage/src/genhomedircon.c libsemanage-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 -0500 -@@ -310,6 +310,10 @@ - } - if (strcmp(pwbuf->pw_dir, "/") == 0) - continue; -+ if (strcmp(pwbuf->pw_dir, "/root") == 0) { -+ continue; -+ } -+ - if (semanage_str_count(pwbuf->pw_dir, '/') <= 1) - continue; - if (!(path = strdup(pwbuf->pw_dir))) { -@@ -803,6 +807,9 @@ - * /root */ - continue; - } -+ if (strcmp(pwent->pw_dir, "/root") == 0) { -+ continue; -+ } - if (push_user_entry(&head, name, seuname, - prefix, pwent->pw_dir) != STATUS_SUCCESS) { - *errors = 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 = 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 = 19 - -# expand-check check neverallow rules when executing all semanage commands. -# Large penalty in time if you turn this on. -expand-check=0 - -# usepasswd check tells semanage to scan all pass word records for home directories -# and setup the labeling correctly. If this is turned off, SELinux will label /home -# correctly only. You will need to use semanage fcontext command. -# For example, if you had home dirs in /althome directory you would have to execute -# semanage fcontext -a -e /home /althome -usepasswd=False -bzip-small=true -bzip-blocksize=5