SHA256
1
0
forked from pool/libselinux
OBS User unknown 2009-07-24 15:24:37 +00:00 committed by Git OBS Bridge
parent 733a222333
commit a0cfa9884e
4 changed files with 15 additions and 10 deletions

View File

@ -23,9 +23,9 @@ BuildRequires: libsepol-devel-static >= %{libsepol_ver}
Name: libselinux-bindings Name: libselinux-bindings
Version: 2.0.80 Version: 2.0.80
Release: 3 Release: 4
Url: http://www.nsa.gov/selinux/ Url: http://www.nsa.gov/selinux/
License: GPL v2 only ; Public Domain, Freeware License: GPL v2 only ; Public Domain, Freeware
Group: System/Libraries Group: System/Libraries
Summary: SELinux library and simple utilities Summary: SELinux library and simple utilities
Source: libselinux-%{version}.tar.bz2 Source: libselinux-%{version}.tar.bz2

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri Jul 24 17:09:50 CEST 2009 - thomas@novell.com
- updated selinux-ready script
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Jul 22 15:17:25 CEST 2009 - prusnak@suse.cz Wed Jul 22 15:17:25 CEST 2009 - prusnak@suse.cz

View File

@ -22,9 +22,9 @@ BuildRequires: libsepol-devel >= %{libsepol_ver}
Name: libselinux Name: libselinux
Version: 2.0.80 Version: 2.0.80
Release: 3 Release: 4
Url: http://www.nsa.gov/selinux/ Url: http://www.nsa.gov/selinux/
License: GPL v2 only ; Public Domain, Freeware License: GPL v2 only ; Public Domain, Freeware
Group: System/Libraries Group: System/Libraries
Summary: SELinux library and simple utilities Summary: SELinux library and simple utilities
Source: %{name}-%{version}.tar.bz2 Source: %{name}-%{version}.tar.bz2
@ -51,7 +51,7 @@ decisions. Required for any applications that use the SELinux API.
%package -n libselinux1 %package -n libselinux1
License: GPL v2 only ; Public Domain, Freeware License: GPL v2 only ; Public Domain, Freeware
Group: System/Libraries Group: System/Libraries
Summary: SELinux library and simple utilities Summary: SELinux library and simple utilities
@ -73,7 +73,7 @@ decisions. Required for any applications that use the SELinux API.
%package -n selinux-tools %package -n selinux-tools
License: GPL v2 only ; Public Domain, Freeware License: GPL v2 only ; Public Domain, Freeware
Group: System/Base Group: System/Base
Summary: SELinux library and simple utilities Summary: SELinux library and simple utilities
@ -95,7 +95,7 @@ decisions. Required for any applications that use the SELinux API.
%package devel %package devel
License: GPL v2 only ; Public Domain, Freeware License: GPL v2 only ; 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}

View File

@ -22,7 +22,7 @@ check_dir()
check_filesystem() check_filesystem()
{ {
FSPATH="/proc/filesystems" FSPATH="/proc/filesystems"
FSNAME="securityfs" FSNAME="selinuxfs"
grep -w $FSNAME $FSPATH 1>&2 >/dev/null grep -w $FSNAME $FSPATH 1>&2 >/dev/null
@ -37,11 +37,11 @@ check_filesystem()
check_boot() check_boot()
{ {
BPARAM="selinux=1" BPARAM="security=selinux.*selinux=1.*enforcing=?" # XXX order not mandatory
printf "\tcheck_boot: Assuming GRUB as bootloader.\n" printf "\tcheck_boot: Assuming GRUB as bootloader.\n"
BLINE=$(grep -- $BPARAM /boot/grub/menu.lst 2>/dev/null) # XXX check for multiple lines in config BLINE=$(grep -E $BPARAM /boot/grub/menu.lst 2>/dev/null) # XXX check for multiple lines in config
if [ $? == 0 ]; then if [ $? == 0 ]; then
K=$(echo $BLINE | awk -F' ' '{print $2}') K=$(echo $BLINE | awk -F' ' '{print $2}')