[PATCH] fix SELinux function checks in configure

This is a discussion on [PATCH] fix SELinux function checks in configure within the OpenSSH Development forums, part of the Networking and Network Related category; The following patch fixes the function checks in configure for getseuserbyname() and get_default_context_with_level(). These functions are in libselinux, and since -...


Go Back   Usenet Forums > Networking and Network Related > OpenSSH Development

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 10-06-2006
Chris PeBenito
 
Posts: n/a
Default [PATCH] fix SELinux function checks in configure

The following patch fixes the function checks in configure for
getseuserbyname() and get_default_context_with_level(). These functions
are in libselinux, and since -lselinux is not added to LIBS, these
functions could never be found.

Please apply.

configure.ac | 3 +++
1 file changed, 3 insertions(+)

--- openssh-4.4p1.orig/configure.ac 2006-09-24 15:08:59.000000000 -0400
+++ openssh-4.4p1/configure.ac 2006-10-02 22:22:41.658955080 -0400
@@ -3145,7 +3145,10 @@
AC_MSG_ERROR(SELinux support requires selinux.h header))
AC_CHECK_LIB(selinux, setexeccon, [ LIBSELINUX="-lselinux" ],
AC_MSG_ERROR(SELinux support requires libselinux library))
+ save_LIBS="$LIBS"
+ LIBS="$LIBS $LIBSELINUX"
AC_CHECK_FUNCS(getseuserbyname get_default_context_with_level)
+ LIBS="$save_LIBS"
fi ]
)
AC_SUBST(LIBSELINUX)


--
Chris PeBenito
<pebenito@gentoo.org>
Developer,
Hardened Gentoo Linux

Public Key: http://pgp.mit.edu:11371/pks/lookup?...rch=0xE6AF9243
Key fingerprint = B0E6 877A 883F A57A 8E6A CB00 BC8E E42D E6AF 9243

_______________________________________________
openssh-unix-dev mailing list
openssh-unix-dev@mindrot.org
http://lists.mindrot.org/mailman/lis...enssh-unix-dev
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 01:51 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0