- Update from NSA

Added public functions to export context translation to users of libselinux
    (selinux_trans_to_raw_context, selinux_raw_to_trans_context).
This commit is contained in:
Daniel J Walsh 2005-09-01 15:23:17 +00:00
parent eb500fb164
commit 59d6552e7d
4 changed files with 28 additions and 21 deletions

View File

@ -43,3 +43,4 @@ libselinux-1.25.2.tgz
libselinux-1.25.3.tgz libselinux-1.25.3.tgz
libselinux-1.25.4.tgz libselinux-1.25.4.tgz
libselinux-1.25.5.tgz libselinux-1.25.5.tgz
libselinux-1.25.6.tgz

View File

@ -1,21 +1,19 @@
diff --exclude-from=exclude -N -u -r nsalibselinux/src/context.c libselinux-1.25.3/src/context.c diff --exclude-from=exclude -N -u -r nsalibselinux/src/init.c libselinux-1.25.6/src/init.c
--- nsalibselinux/src/context.c 2005-08-25 16:18:01.000000000 -0400 --- nsalibselinux/src/init.c 2005-08-25 16:18:01.000000000 -0400
+++ libselinux-1.25.3/src/context.c 2005-08-24 16:48:20.000000000 -0400 +++ libselinux-1.25.6/src/init.c 2005-09-01 11:23:11.000000000 -0400
@@ -181,16 +180,8 @@ @@ -86,6 +86,7 @@
def_set(type,COMP_TYPE) {
def_set(role,COMP_ROLE) int (*lib_trans_init)(void) = NULL;
def_set(user,COMP_USER)
+def_set(range,COMP_RANGE)
-int context_range_set(context_t context,const char* str) +#ifdef __PIC__
-{ translation_lib_handle = dlopen("libsetrans.so.0", RTLD_NOW);
- context_private_t *n = context->ptr; if (!translation_lib_handle)
- if ( ! n->component[COMP_RANGE] ) { return;
- return 0; @@ -108,6 +109,7 @@
- } else { return;
- return set_comp(n,COMP_RANGE,str);
- }
-}
hidden_def(context_range_set)
#ifdef L1TEST context_translations = 1;
+#endif
}
static void fini_translations(void)

View File

@ -1,10 +1,11 @@
Summary: SELinux library and simple utilities Summary: SELinux library and simple utilities
Name: libselinux Name: libselinux
Version: 1.25.5 Version: 1.25.6
Release: 1 Release: 1
License: Public domain (uncopyrighted) License: Public domain (uncopyrighted)
Group: System Environment/Libraries Group: System Environment/Libraries
Source: http://www.nsa.gov/selinux/archives/%{name}-%{version}.tgz Source: http://www.nsa.gov/selinux/archives/%{name}-%{version}.tgz
Patch: libselinux-rhat.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot
@ -34,6 +35,7 @@ needed for developing SELinux applications.
%prep %prep
%setup -q %setup -q
%patch -p1 -b .rhat
%build %build
make CFLAGS="-g %{optflags}" make CFLAGS="-g %{optflags}"
@ -83,6 +85,12 @@ rm -rf ${RPM_BUILD_ROOT}
%{_mandir}/man8/* %{_mandir}/man8/*
%changelog %changelog
* Thu Sep 1 2005 Dan Walsh <dwalsh@redhat.com> 1.25.6-1
- Update from NSA
* Added public functions to export context translation to
users of libselinux (selinux_trans_to_raw_context,
selinux_raw_to_trans_context).
* Mon Aug 29 2005 Dan Walsh <dwalsh@redhat.com> 1.25.5-1 * Mon Aug 29 2005 Dan Walsh <dwalsh@redhat.com> 1.25.5-1
- Update from NSA - Update from NSA
* Remove special definition for context_range_set; use * Remove special definition for context_range_set; use

View File

@ -1 +1 @@
93382e8d891c90d40e973ed61c10a76c libselinux-1.25.5.tgz 8bf97b33ed29d9a7a8b5d6c285310013 libselinux-1.25.6.tgz