Add Python constants for SELinux enforcing modes
This commit is contained in:
parent
aa9384564f
commit
a21a1b7e23
@ -1049,10 +1049,21 @@ index 2c7c85c..4a4aebc 100644
|
|||||||
hidden_proto(selinux_booleans_subs_path)
|
hidden_proto(selinux_booleans_subs_path)
|
||||||
hidden_proto(selinux_default_context_path)
|
hidden_proto(selinux_default_context_path)
|
||||||
diff --git a/libselinux/src/selinuxswig_python.i b/libselinux/src/selinuxswig_python.i
|
diff --git a/libselinux/src/selinuxswig_python.i b/libselinux/src/selinuxswig_python.i
|
||||||
index 359bd02..0ab0bae 100644
|
index 359bd02..9884454 100644
|
||||||
--- a/libselinux/src/selinuxswig_python.i
|
--- a/libselinux/src/selinuxswig_python.i
|
||||||
+++ b/libselinux/src/selinuxswig_python.i
|
+++ b/libselinux/src/selinuxswig_python.i
|
||||||
@@ -74,6 +74,10 @@ def install(src, dest):
|
@@ -10,6 +10,10 @@
|
||||||
|
|
||||||
|
import shutil, os, stat
|
||||||
|
|
||||||
|
+DISABLED = -1
|
||||||
|
+PERMISSIVE = 0
|
||||||
|
+ENFORCING = 1
|
||||||
|
+
|
||||||
|
def restorecon(path, recursive=False):
|
||||||
|
""" Restore SELinux context on a given path """
|
||||||
|
|
||||||
|
@@ -74,6 +78,10 @@ def install(src, dest):
|
||||||
$1 = &temp;
|
$1 = &temp;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
Summary: SELinux library and simple utilities
|
Summary: SELinux library and simple utilities
|
||||||
Name: libselinux
|
Name: libselinux
|
||||||
Version: 2.1.13
|
Version: 2.1.13
|
||||||
Release: 17%{?dist}
|
Release: 18%{?dist}
|
||||||
License: Public Domain
|
License: Public Domain
|
||||||
Group: System Environment/Libraries
|
Group: System Environment/Libraries
|
||||||
Source: %{name}-%{version}.tgz
|
Source: %{name}-%{version}.tgz
|
||||||
@ -240,6 +240,9 @@ rm -rf %{buildroot}
|
|||||||
%{ruby_sitearch}/selinux.so
|
%{ruby_sitearch}/selinux.so
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Sep 3 2013 Dan Walsh <dwalsh@redhat.com> - 2.1.13-17
|
||||||
|
- Add Python constants for SELinux enforcing modes
|
||||||
|
|
||||||
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.13-17
|
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.13-17
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user