forked from pool/libselinux
This commit is contained in:
parent
733a222333
commit
a0cfa9884e
@ -23,7 +23,7 @@ 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
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
@ -22,7 +22,7 @@ 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
|
||||||
|
@ -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}')
|
||||||
|
Loading…
Reference in New Issue
Block a user