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
Version: 2.0.80
Release: 3
Release: 4
Url: http://www.nsa.gov/selinux/
License: GPL v2 only ; Public Domain, Freeware
License: GPL v2 only ; Public Domain, Freeware
Group: System/Libraries
Summary: SELinux library and simple utilities
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

View File

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

View File

@ -22,7 +22,7 @@ check_dir()
check_filesystem()
{
FSPATH="/proc/filesystems"
FSNAME="securityfs"
FSNAME="selinuxfs"
grep -w $FSNAME $FSPATH 1>&2 >/dev/null
@ -37,11 +37,11 @@ check_filesystem()
check_boot()
{
BPARAM="selinux=1"
BPARAM="security=selinux.*selinux=1.*enforcing=?" # XXX order not mandatory
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
K=$(echo $BLINE | awk -F' ' '{print $2}')