Fix python bindings for selinux_check_access
This commit is contained in:
		
							parent
							
								
									58f9722469
								
							
						
					
					
						commit
						70712b9211
					
				| @ -631,6 +631,21 @@ index 2c7c85c..4a4aebc 100644 | ||||
|      hidden_proto(selinux_binary_policy_path) | ||||
|      hidden_proto(selinux_booleans_subs_path) | ||||
|      hidden_proto(selinux_default_context_path) | ||||
| diff --git a/libselinux/src/selinuxswig_python.i b/libselinux/src/selinuxswig_python.i
 | ||||
| index 359bd02..0ab0bae 100644
 | ||||
| --- a/libselinux/src/selinuxswig_python.i
 | ||||
| +++ b/libselinux/src/selinuxswig_python.i
 | ||||
| @@ -74,6 +74,10 @@ def install(src, dest):
 | ||||
|    $1 = &temp; | ||||
|  } | ||||
|   | ||||
| +%typemap(in, numinputs=0) void *(char *temp=NULL) {
 | ||||
| +	$1 = temp;
 | ||||
| +}
 | ||||
| +
 | ||||
|  /* Makes security_compute_user() return a Python list of contexts */ | ||||
|  %typemap(argout) (security_context_t **con) { | ||||
|  	PyObject* plist; | ||||
| diff --git a/libselinux/src/setrans_internal.h b/libselinux/src/setrans_internal.h
 | ||||
| index a801ee8..b3bdca2 100644
 | ||||
| --- a/libselinux/src/setrans_internal.h
 | ||||
|  | ||||
| @ -10,7 +10,7 @@ | ||||
| Summary: SELinux library and simple utilities | ||||
| Name: libselinux | ||||
| Version: 2.1.13 | ||||
| Release: 10%{?dist} | ||||
| Release: 11%{?dist} | ||||
| License: Public Domain | ||||
| Group: System Environment/Libraries | ||||
| Source: %{name}-%{version}.tgz | ||||
| @ -241,6 +241,9 @@ rm -rf %{buildroot} | ||||
| %{ruby_sitearch}/selinux.so | ||||
| 
 | ||||
| %changelog | ||||
| * Wed Mar 20 2013 Dan Walsh <dwalsh@redhat.com> - 2.1.13-11 | ||||
| - Fix python bindings for selinux_check_access | ||||
| 
 | ||||
| * Tue Mar 19 2013 Dan Walsh <dwalsh@redhat.com> - 2.1.13-10 | ||||
| - Fix reseting the policy root in matchpathcon | ||||
| 
 | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user