Fix off by one error that is causing file_name transition rules to be expanded
- incorrectly on i686 machines
This commit is contained in:
parent
9d04e817bf
commit
96e6f72927
@ -22,3 +22,16 @@ index 71970b1..e003bc7 100644
|
||||
NULL
|
||||
};
|
||||
|
||||
diff --git a/libsepol/src/policydb.c b/libsepol/src/policydb.c
|
||||
index a84de2f..ff292f6 100644
|
||||
--- a/libsepol/src/policydb.c
|
||||
+++ b/libsepol/src/policydb.c
|
||||
@@ -2380,7 +2380,7 @@ int filename_trans_read(filename_trans_t **t, struct policy_file *fp)
|
||||
return -1;
|
||||
len = le32_to_cpu(buf[0]);
|
||||
|
||||
- name = calloc(len, sizeof(*name));
|
||||
+ name = calloc(len + 1, sizeof(*name));
|
||||
if (!name)
|
||||
return -1;
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
Summary: SELinux binary policy manipulation library
|
||||
Name: libsepol
|
||||
Version: 2.1.5
|
||||
Release: 2%{?dist}
|
||||
Release: 3%{?dist}
|
||||
License: LGPLv2+
|
||||
Group: System Environment/Libraries
|
||||
Source: http://www.nsa.gov/selinux/archives/libsepol-%{version}.tgz
|
||||
@ -99,6 +99,10 @@ exit 0
|
||||
/%{_lib}/libsepol.so.1
|
||||
|
||||
%changelog
|
||||
* Mon Apr 23 2012 Dan Walsh <dwalsh@redhat.com> - 2.1.5-3
|
||||
- Fix off by one error that is causing file_name transition rules to be expanded
|
||||
- incorrectly on i686 machines
|
||||
|
||||
* Tue Apr 17 2012 Dan Walsh <dwalsh@redhat.com> - 2.1.5-2
|
||||
- Add support for ptrace_child
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user