xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] also override library path for hotplug scripts
@ 2013-06-25 14:12 Jan Beulich
  2013-06-26 13:59 ` Ian Campbell
  0 siblings, 1 reply; 3+ messages in thread
From: Jan Beulich @ 2013-06-25 14:12 UTC (permalink / raw)
  To: xen-devel

[-- Attachment #1: Type: text/plain, Size: 596 bytes --]

Overriding PATH but not LD_LIBRARY_PATH is bogus, as it may result in
the use of mismatched binaries and libraries.

Signed-off-by: Jan Beulich <jbeulich@suse.com>

--- a/tools/hotplug/Linux/xen-hotplug-common.sh
+++ b/tools/hotplug/Linux/xen-hotplug-common.sh
@@ -31,6 +31,7 @@ dir=$(dirname "$0")
 exec 2>>/var/log/xen/xen-hotplug.log
 
 export PATH="${BINDIR}:${SBINDIR}:${LIBEXEC}:${PRIVATE_BINDIR}:/sbin:/bin:/usr/bin:/usr/sbin:$PATH"
+export LD_LIBRARY_PATH="${LIBDIR}${LD_LIBRARY_PATH+:}$LD_LIBRARY_PATH"
 export LANG="POSIX"
 unset $(set | grep ^LC_ | cut -d= -f1)
 




[-- Attachment #2: hotplug-scripts-lib-path.patch --]
[-- Type: text/plain, Size: 640 bytes --]

also override library path for hotplug scripts

Overriding PATH but not LD_LIBRARY_PATH is bogus, as it may result in
the use of mismatched binaries and libraries.

Signed-off-by: Jan Beulich <jbeulich@suse.com>

--- a/tools/hotplug/Linux/xen-hotplug-common.sh
+++ b/tools/hotplug/Linux/xen-hotplug-common.sh
@@ -31,6 +31,7 @@ dir=$(dirname "$0")
 exec 2>>/var/log/xen/xen-hotplug.log
 
 export PATH="${BINDIR}:${SBINDIR}:${LIBEXEC}:${PRIVATE_BINDIR}:/sbin:/bin:/usr/bin:/usr/sbin:$PATH"
+export LD_LIBRARY_PATH="${LIBDIR}${LD_LIBRARY_PATH+:}$LD_LIBRARY_PATH"
 export LANG="POSIX"
 unset $(set | grep ^LC_ | cut -d= -f1)
 

[-- Attachment #3: Type: text/plain, Size: 126 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] also override library path for hotplug scripts
  2013-06-25 14:12 [PATCH] also override library path for hotplug scripts Jan Beulich
@ 2013-06-26 13:59 ` Ian Campbell
  2013-06-26 15:44   ` George Dunlap
  0 siblings, 1 reply; 3+ messages in thread
From: Ian Campbell @ 2013-06-26 13:59 UTC (permalink / raw)
  To: Jan Beulich; +Cc: George Dunlap, xen-devel

On Tue, 2013-06-25 at 15:12 +0100, Jan Beulich wrote:
> Overriding PATH but not LD_LIBRARY_PATH is bogus, as it may result in
> the use of mismatched binaries and libraries.
> 
> Signed-off-by: Jan Beulich <jbeulich@suse.com>

Acked-by: Ian Campbell <ian.campbell@citrix.com>

George, opinion RE 4.3? I think it should be pretty safe.

> 
> --- a/tools/hotplug/Linux/xen-hotplug-common.sh
> +++ b/tools/hotplug/Linux/xen-hotplug-common.sh
> @@ -31,6 +31,7 @@ dir=$(dirname "$0")
>  exec 2>>/var/log/xen/xen-hotplug.log
>  
>  export PATH="${BINDIR}:${SBINDIR}:${LIBEXEC}:${PRIVATE_BINDIR}:/sbin:/bin:/usr/bin:/usr/sbin:$PATH"
> +export LD_LIBRARY_PATH="${LIBDIR}${LD_LIBRARY_PATH+:}$LD_LIBRARY_PATH"
>  export LANG="POSIX"
>  unset $(set | grep ^LC_ | cut -d= -f1)
>  
> 
> 
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xen.org
> http://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] also override library path for hotplug scripts
  2013-06-26 13:59 ` Ian Campbell
@ 2013-06-26 15:44   ` George Dunlap
  0 siblings, 0 replies; 3+ messages in thread
From: George Dunlap @ 2013-06-26 15:44 UTC (permalink / raw)
  To: Ian Campbell; +Cc: Jan Beulich, xen-devel

On 26/06/13 14:59, Ian Campbell wrote:
> On Tue, 2013-06-25 at 15:12 +0100, Jan Beulich wrote:
>> Overriding PATH but not LD_LIBRARY_PATH is bogus, as it may result in
>> the use of mismatched binaries and libraries.
>>
>> Signed-off-by: Jan Beulich <jbeulich@suse.com>
> Acked-by: Ian Campbell <ian.campbell@citrix.com>
>
> George, opinion RE 4.3? I think it should be pretty safe.

Hmm, so this is only changing things for Xen hotplug scripts.

Yes, on the whole it seems like the risk of *not* applying this patch is 
bigger than the risk of applying it.

Re the release:

Acked-by: George Dunlap <george.dunlap@eu.citrix.com>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-06-26 15:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-25 14:12 [PATCH] also override library path for hotplug scripts Jan Beulich
2013-06-26 13:59 ` Ian Campbell
2013-06-26 15:44   ` George Dunlap

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).