Accepting request 123445 from home:mlschroe:branches:security:SELinux
update to libselinux-2.1.9, needed for rpm-4.10.0 update OBS-URL: https://build.opensuse.org/request/show/123445 OBS-URL: https://build.opensuse.org/package/show/security:SELinux/libselinux?expand=0&rev=41
This commit is contained in:
parent
c282115149
commit
4835d98054
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:67a89821c9cd01288af5e6c784cc963fd13cc7c5d2a06ae8e7241ce187682ea1
|
|
||||||
size 156090
|
|
3
libselinux-2.1.9.tar.gz
Normal file
3
libselinux-2.1.9.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:749d4b39c80aa9df8247b8b3187ab72442c0dbad6e70bf312e25052bd4e7063f
|
||||||
|
size 155840
|
@ -1,3 +1,13 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Jun 1 18:34:04 CEST 2012 - mls@suse.de
|
||||||
|
|
||||||
|
- update to libselinux-2.1.9
|
||||||
|
* better man pages
|
||||||
|
* selinux_status interfaces
|
||||||
|
* simple interface for access checks
|
||||||
|
* multiple bug fixes
|
||||||
|
- fix build for ruby-1.9
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Jun 28 06:38:35 UTC 2010 - jengelh@medozas.de
|
Mon Jun 28 06:38:35 UTC 2010 - jengelh@medozas.de
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package libselinux-bindings
|
# spec file for package libselinux-bindings
|
||||||
#
|
#
|
||||||
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -15,23 +15,25 @@
|
|||||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||||
#
|
#
|
||||||
|
|
||||||
# norootforbuild
|
|
||||||
|
|
||||||
%define libsepol_ver 2.0.32
|
%define libsepol_ver 2.0.32
|
||||||
BuildRequires: python-devel ruby-devel swig
|
|
||||||
BuildRequires: libsepol-devel-static >= %{libsepol_ver}
|
BuildRequires: libsepol-devel-static >= %{libsepol_ver}
|
||||||
|
BuildRequires: python-devel
|
||||||
|
BuildRequires: ruby-devel
|
||||||
|
BuildRequires: swig
|
||||||
|
|
||||||
Name: libselinux-bindings
|
Name: libselinux-bindings
|
||||||
Version: 2.0.91
|
Version: 2.1.9
|
||||||
Release: 9
|
Release: 0
|
||||||
Url: http://www.nsa.gov/selinux/
|
Url: http://www.nsa.gov/selinux/
|
||||||
License: GPLv2 ; Public Domain, Freeware
|
|
||||||
Group: System/Libraries
|
|
||||||
Summary: SELinux library and simple utilities
|
Summary: SELinux library and simple utilities
|
||||||
Source: libselinux-%{version}.tar.bz2
|
License: GPL-2.0 ; SUSE-Public-Domain
|
||||||
|
Group: System/Libraries
|
||||||
|
Source: libselinux-%{version}.tar.gz
|
||||||
Source1: selinux-ready
|
Source1: selinux-ready
|
||||||
Source2: baselibs.conf
|
Source2: baselibs.conf
|
||||||
Patch0: libselinux-rhat.patch
|
Patch0: libselinux-rhat.patch
|
||||||
|
Patch1: libselinux-ruby.patch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
%define debug_package_requires python-selinux = %{version}-%{release}
|
%define debug_package_requires python-selinux = %{version}-%{release}
|
||||||
|
|
||||||
@ -53,9 +55,9 @@ decisions. Required for any applications that use the SELinux API.
|
|||||||
|
|
||||||
|
|
||||||
%package -n python-selinux
|
%package -n python-selinux
|
||||||
License: Public Domain, Freeware
|
|
||||||
Summary: SELinux library and simple utilities
|
Summary: SELinux library and simple utilities
|
||||||
Group: System/Libraries
|
License: SUSE-Public-Domain
|
||||||
|
Group: Development/Libraries/Python
|
||||||
Requires: libselinux1 = %{version}
|
Requires: libselinux1 = %{version}
|
||||||
Requires: python
|
Requires: python
|
||||||
|
|
||||||
@ -77,9 +79,9 @@ decisions. Required for any applications that use the SELinux API.
|
|||||||
|
|
||||||
|
|
||||||
%package -n ruby-selinux
|
%package -n ruby-selinux
|
||||||
License: Public Domain, Freeware
|
|
||||||
Summary: SELinux library and simple utilities
|
Summary: SELinux library and simple utilities
|
||||||
Group: System/Libraries
|
License: SUSE-Public-Domain
|
||||||
|
Group: Development/Languages/Ruby
|
||||||
Requires: libselinux1 = %{version}
|
Requires: libselinux1 = %{version}
|
||||||
Requires: ruby
|
Requires: ruby
|
||||||
|
|
||||||
@ -103,6 +105,7 @@ decisions. Required for any applications that use the SELinux API.
|
|||||||
%prep
|
%prep
|
||||||
%setup -q -n libselinux-%{version}
|
%setup -q -n libselinux-%{version}
|
||||||
%patch0 -p1
|
%patch0 -p1
|
||||||
|
%patch1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
make %{?_smp_mflags} LIBDIR="%{_libdir}" CFLAGS="$RPM_OPT_FLAGS" -C src
|
make %{?_smp_mflags} LIBDIR="%{_libdir}" CFLAGS="$RPM_OPT_FLAGS" -C src
|
||||||
@ -126,6 +129,6 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
|
|
||||||
%files -n ruby-selinux
|
%files -n ruby-selinux
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%{_libdir}/ruby/site_ruby/%{rb_ver}/%{rb_arch}/selinux.so
|
%{_libdir}/ruby/vendor_ruby/%{rb_ver}/%{rb_arch}/selinux.so
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
@ -59,81 +59,6 @@ diff --exclude-from=exclude -N -u -r nsalibselinux/src/callbacks.c libselinux-2.
|
|||||||
va_start(ap, fmt);
|
va_start(ap, fmt);
|
||||||
rc = vfprintf(stderr, fmt, ap);
|
rc = vfprintf(stderr, fmt, ap);
|
||||||
va_end(ap);
|
va_end(ap);
|
||||||
diff --exclude-from=exclude -N -u -r nsalibselinux/src/init.c libselinux-2.0.90/src/init.c
|
|
||||||
--- nsalibselinux/src/init.c 2009-07-14 11:16:03.000000000 -0400
|
|
||||||
+++ libselinux-2.0.90/src/init.c 2010-02-22 11:04:16.000000000 -0500
|
|
||||||
@@ -23,7 +23,7 @@
|
|
||||||
static void init_selinuxmnt(void)
|
|
||||||
{
|
|
||||||
char *buf=NULL, *p;
|
|
||||||
- FILE *fp;
|
|
||||||
+ FILE *fp=NULL;
|
|
||||||
struct statfs sfbuf;
|
|
||||||
int rc;
|
|
||||||
size_t len;
|
|
||||||
@@ -57,16 +57,17 @@
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
- fclose(fp);
|
|
||||||
|
|
||||||
- if (!exists)
|
|
||||||
- return;
|
|
||||||
+ if (!exists)
|
|
||||||
+ goto out;
|
|
||||||
+
|
|
||||||
+ fclose(fp);
|
|
||||||
|
|
||||||
/* At this point, the usual spot doesn't have an selinuxfs so
|
|
||||||
* we look around for it */
|
|
||||||
fp = fopen("/proc/mounts", "r");
|
|
||||||
if (!fp)
|
|
||||||
- return;
|
|
||||||
+ goto out;
|
|
||||||
|
|
||||||
__fsetlocking(fp, FSETLOCKING_BYCALLER);
|
|
||||||
while ((num = getline(&buf, &len, fp)) != -1) {
|
|
||||||
@@ -90,7 +91,8 @@
|
|
||||||
|
|
||||||
out:
|
|
||||||
free(buf);
|
|
||||||
- fclose(fp);
|
|
||||||
+ if (fp)
|
|
||||||
+ fclose(fp);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
diff --exclude-from=exclude -N -u -r nsalibselinux/src/libselinux.pc.in libselinux-2.0.90/src/libselinux.pc.in
|
|
||||||
--- nsalibselinux/src/libselinux.pc.in 2009-11-02 12:58:30.000000000 -0500
|
|
||||||
+++ libselinux-2.0.90/src/libselinux.pc.in 2010-02-18 10:02:46.000000000 -0500
|
|
||||||
@@ -1,6 +1,6 @@
|
|
||||||
prefix=@prefix@
|
|
||||||
exec_prefix=${prefix}
|
|
||||||
-libdir=${exec_prefix}/lib
|
|
||||||
+libdir=${exec_prefix}/@libdir@
|
|
||||||
includedir=@includedir@
|
|
||||||
|
|
||||||
Name: libselinux
|
|
||||||
diff --exclude-from=exclude -N -u -r nsalibselinux/src/Makefile libselinux-2.0.90/src/Makefile
|
|
||||||
--- nsalibselinux/src/Makefile 2009-12-01 15:46:50.000000000 -0500
|
|
||||||
+++ libselinux-2.0.90/src/Makefile 2010-02-18 10:20:27.000000000 -0500
|
|
||||||
@@ -11,6 +11,7 @@
|
|
||||||
RUBYPLATFORM ?= $(shell ruby -e 'print RUBY_PLATFORM')
|
|
||||||
RUBYINC ?= $(LIBDIR)/ruby/$(RUBYLIBVER)/$(RUBYPLATFORM)
|
|
||||||
RUBYINSTALL ?= $(LIBDIR)/ruby/site_ruby/$(RUBYLIBVER)/$(RUBYPLATFORM)
|
|
||||||
+LIBBASE=$(shell basename $(LIBDIR))
|
|
||||||
|
|
||||||
VERSION = $(shell cat ../VERSION)
|
|
||||||
LIBVERSION = 1
|
|
||||||
@@ -85,7 +86,7 @@
|
|
||||||
ln -sf $@ $(TARGET)
|
|
||||||
|
|
||||||
$(LIBPC): $(LIBPC).in
|
|
||||||
- sed -e 's/@VERSION@/$(VERSION)/; s:@prefix@:$(PREFIX):; s:@libdir@:$(LIBDIR):; s:@includedir@:$(INCLUDEDIR):' < $< > $@
|
|
||||||
+ sed -e 's/@VERSION@/$(VERSION)/; s:@prefix@:$(PREFIX):; s:@libdir@:$(LIBBASE):; s:@includedir@:$(INCLUDEDIR):' < $< > $@
|
|
||||||
|
|
||||||
selinuxswig_python_exception.i: ../include/selinux/selinux.h
|
|
||||||
bash exception.sh > $@
|
|
||||||
diff --exclude-from=exclude -N -u -r nsalibselinux/src/matchpathcon.c libselinux-2.0.90/src/matchpathcon.c
|
diff --exclude-from=exclude -N -u -r nsalibselinux/src/matchpathcon.c libselinux-2.0.90/src/matchpathcon.c
|
||||||
--- nsalibselinux/src/matchpathcon.c 2009-03-06 14:41:45.000000000 -0500
|
--- nsalibselinux/src/matchpathcon.c 2009-03-06 14:41:45.000000000 -0500
|
||||||
+++ libselinux-2.0.90/src/matchpathcon.c 2010-01-18 16:52:28.000000000 -0500
|
+++ libselinux-2.0.90/src/matchpathcon.c 2010-01-18 16:52:28.000000000 -0500
|
||||||
|
22
libselinux-ruby.patch
Normal file
22
libselinux-ruby.patch
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
--- ./src/Makefile.orig 2012-06-04 08:20:19.000000000 +0000
|
||||||
|
+++ ./src/Makefile 2012-06-04 09:43:23.000000000 +0000
|
||||||
|
@@ -15,8 +15,8 @@ PYTHONLIBDIR ?= $(shell pkg-config --lib
|
||||||
|
PYLIBDIR ?= $(LIBDIR)/$(PYLIBVER)
|
||||||
|
RUBYLIBVER ?= $(shell ruby -e 'print RUBY_VERSION.split(".")[0..1].join(".")')
|
||||||
|
RUBYPLATFORM ?= $(shell ruby -e 'print RUBY_PLATFORM')
|
||||||
|
-RUBYINC ?= $(LIBDIR)/ruby/$(RUBYLIBVER)/$(RUBYPLATFORM)
|
||||||
|
-RUBYINSTALL ?= $(LIBDIR)/ruby/site_ruby/$(RUBYLIBVER)/$(RUBYPLATFORM)
|
||||||
|
+RUBYINC ?= $(shell ruby -r rbconfig -e "print Config::CONFIG['rubyhdrdir'].nil? ? '$(LIBDIR)/ruby/$(RUBYLIBVER)' : Config::CONFIG['rubyhdrdir']")
|
||||||
|
+RUBYINSTALL ?= $(shell ruby -r rbconfig -e "print Config::CONFIG['vendorarchdir'].nil? ? '$(DESTDIR)'+Config::CONFIG['sitearchdir'] : '$(DESTDIR)'+Config::CONFIG['vendorarchdir']")
|
||||||
|
LIBBASE=$(shell basename $(LIBDIR))
|
||||||
|
|
||||||
|
VERSION = $(shell cat ../VERSION)
|
||||||
|
@@ -76,7 +76,7 @@ $(SWIGLOBJ): $(SWIGCOUT)
|
||||||
|
$(CC) $(filter-out -Werror, $(CFLAGS)) $(PYINC) -fPIC -DSHARED -c -o $@ $<
|
||||||
|
|
||||||
|
$(SWIGRUBYLOBJ): $(SWIGRUBYCOUT)
|
||||||
|
- $(CC) $(filter-out -Werror, $(CFLAGS)) -I$(RUBYINC) -fPIC -DSHARED -c -o $@ $<
|
||||||
|
+ $(CC) $(filter-out -Werror, $(CFLAGS)) -I$(RUBYINC) -I$(RUBYINC)/$(RUBYPLATFORM) -fPIC -DSHARED -c -o $@ $<
|
||||||
|
|
||||||
|
$(SWIGSO): $(SWIGLOBJ)
|
||||||
|
$(CC) $(CFLAGS) $(LDFLAGS) -shared -o $@ $< -L. -lselinux -L$(LIBDIR) $(PYTHONLIBDIR) -Wl,-soname,$@,-z,defs
|
@ -1,3 +1,12 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Jun 1 18:34:04 CEST 2012 - mls@suse.de
|
||||||
|
|
||||||
|
- update to libselinux-2.1.9
|
||||||
|
* better man pages
|
||||||
|
* selinux_status interfaces
|
||||||
|
* simple interface for access checks
|
||||||
|
* multiple bug fixes
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Oct 5 15:09:25 UTC 2011 - uli@suse.com
|
Wed Oct 5 15:09:25 UTC 2011 - uli@suse.com
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package libselinux
|
# spec file for package libselinux
|
||||||
#
|
#
|
||||||
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -15,22 +15,23 @@
|
|||||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||||
#
|
#
|
||||||
|
|
||||||
# norootforbuild
|
|
||||||
|
|
||||||
%define libsepol_ver 2.0.32
|
%define libsepol_ver 2.0.32
|
||||||
BuildRequires: libsepol-devel >= %{libsepol_ver} pkg-config
|
BuildRequires: libsepol-devel >= %{libsepol_ver}
|
||||||
|
BuildRequires: pkg-config
|
||||||
|
|
||||||
Name: libselinux
|
Name: libselinux
|
||||||
Version: 2.0.91
|
Version: 2.1.9
|
||||||
Release: 9
|
Release: 0
|
||||||
Url: http://www.nsa.gov/selinux/
|
Url: http://www.nsa.gov/selinux/
|
||||||
License: GPLv2 ; Public Domain, Freeware
|
|
||||||
Group: System/Libraries
|
|
||||||
Summary: SELinux library and simple utilities
|
Summary: SELinux library and simple utilities
|
||||||
Source: %{name}-%{version}.tar.bz2
|
License: GPL-2.0 ; SUSE-Public-Domain
|
||||||
|
Group: System/Libraries
|
||||||
|
Source: %{name}-%{version}.tar.gz
|
||||||
Source1: selinux-ready
|
Source1: selinux-ready
|
||||||
Source2: baselibs.conf
|
Source2: baselibs.conf
|
||||||
Patch0: %{name}-rhat.patch
|
Patch0: %{name}-rhat.patch
|
||||||
|
Patch1: %{name}-ruby.patch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
%define debug_package_requires libselinux1 = %{version}-%{release}
|
%define debug_package_requires libselinux1 = %{version}-%{release}
|
||||||
|
|
||||||
@ -52,9 +53,8 @@ decisions. Required for any applications that use the SELinux API.
|
|||||||
|
|
||||||
|
|
||||||
%package -n libselinux1
|
%package -n libselinux1
|
||||||
License: GPLv2 ; Public Domain, Freeware
|
|
||||||
Group: System/Libraries
|
|
||||||
Summary: SELinux library and simple utilities
|
Summary: SELinux library and simple utilities
|
||||||
|
Group: System/Libraries
|
||||||
|
|
||||||
%description -n libselinux1
|
%description -n libselinux1
|
||||||
Security-enhanced Linux is a feature of the Linux(R) kernel and a
|
Security-enhanced Linux is a feature of the Linux(R) kernel and a
|
||||||
@ -74,9 +74,8 @@ decisions. Required for any applications that use the SELinux API.
|
|||||||
|
|
||||||
|
|
||||||
%package -n selinux-tools
|
%package -n selinux-tools
|
||||||
License: GPLv2 ; Public Domain, Freeware
|
|
||||||
Group: System/Base
|
|
||||||
Summary: SELinux library and simple utilities
|
Summary: SELinux library and simple utilities
|
||||||
|
Group: System/Base
|
||||||
|
|
||||||
%description -n selinux-tools
|
%description -n selinux-tools
|
||||||
Security-enhanced Linux is a feature of the Linux(R) kernel and a
|
Security-enhanced Linux is a feature of the Linux(R) kernel and a
|
||||||
@ -96,7 +95,6 @@ decisions. Required for any applications that use the SELinux API.
|
|||||||
|
|
||||||
|
|
||||||
%package devel
|
%package devel
|
||||||
License: GPLv2 ; Public Domain, Freeware
|
|
||||||
Summary: Development Include Files and Libraries for SELinux
|
Summary: Development Include Files and Libraries for SELinux
|
||||||
Group: Development/Libraries/C and C++
|
Group: Development/Libraries/C and C++
|
||||||
Requires: libselinux1 = %{version}
|
Requires: libselinux1 = %{version}
|
||||||
@ -109,7 +107,6 @@ necessary to develop your own software using libselinux.
|
|||||||
|
|
||||||
|
|
||||||
%package devel-static
|
%package devel-static
|
||||||
License: GPLv2 ; Public Domain, Freeware
|
|
||||||
Summary: Static development Include Files and Libraries for SELinux
|
Summary: Static development Include Files and Libraries for SELinux
|
||||||
Group: Development/Libraries/C and C++
|
Group: Development/Libraries/C and C++
|
||||||
Requires: libselinux-devel = %{version}
|
Requires: libselinux-devel = %{version}
|
||||||
@ -122,6 +119,7 @@ necessary to develop your own software using libselinux.
|
|||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
%patch0 -p1
|
%patch0 -p1
|
||||||
|
%patch1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
make %{?_smp_mflags} LIBDIR="%{_libdir}" CC="%{__cc}" CFLAGS="$RPM_OPT_FLAGS"
|
make %{?_smp_mflags} LIBDIR="%{_libdir}" CC="%{__cc}" CFLAGS="$RPM_OPT_FLAGS"
|
||||||
@ -166,6 +164,7 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%{_sbindir}/selinuxconlist
|
%{_sbindir}/selinuxconlist
|
||||||
%{_sbindir}/selinuxdefcon
|
%{_sbindir}/selinuxdefcon
|
||||||
%{_sbindir}/selinuxenabled
|
%{_sbindir}/selinuxenabled
|
||||||
|
%{_sbindir}/selinuxexeccon
|
||||||
%{_sbindir}/setenforce
|
%{_sbindir}/setenforce
|
||||||
%{_sbindir}/togglesebool
|
%{_sbindir}/togglesebool
|
||||||
%{_sbindir}/selinux-ready
|
%{_sbindir}/selinux-ready
|
||||||
|
Loading…
Reference in New Issue
Block a user