All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH for-4.12 0/3] tools: Init scripts minor fixes
@ 2019-02-07 15:02 Ian Jackson
  2019-02-07 15:02 ` [PATCH 1/3] tools: init scripts: xencommons: Provides `xen' Ian Jackson
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Ian Jackson @ 2019-02-07 15:02 UTC (permalink / raw)
  To: xen-devel; +Cc: Juergen Gross, Hans van Kranenburg, Ian Jackson, Wei Liu

The Debian Xen maintainers had a review of the init scripts.  Debian
has its completely own set of scripts.  This is something that needs
to be tackled in the medium term but not now.

However, we did identify some things which could be remedied upstream
right away.

Ian Jackson (3):
  tools: init scripts: xencommons: Provides `xen'
  tools: init scripts: xencommons: Fixes to Description
  tools: init scripts: make XEN_RUN_DIR and XEN_LOCK_DIR mode 700

 tools/hotplug/Linux/init.d/xencommons.in | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

-- 
2.11.0


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

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

* [PATCH 1/3] tools: init scripts: xencommons: Provides `xen'
  2019-02-07 15:02 [PATCH for-4.12 0/3] tools: Init scripts minor fixes Ian Jackson
@ 2019-02-07 15:02 ` Ian Jackson
  2019-02-07 15:02 ` [PATCH 2/3] tools: init scripts: xencommons: Fixes to Description Ian Jackson
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: Ian Jackson @ 2019-02-07 15:02 UTC (permalink / raw)
  To: xen-devel; +Cc: Juergen Gross, Wei Liu, Ian Jackson

It is useful to have a single `xen' facility (in the LSB Provides
namespace).  That allows other facilities to specify that they should
go after `xen' without needing to know the implementation details.

This service name is already Provide'd by the (fairly different) init
scripts used in Debian.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
---
 tools/hotplug/Linux/init.d/xencommons.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/hotplug/Linux/init.d/xencommons.in b/tools/hotplug/Linux/init.d/xencommons.in
index a33058ed44..581b02c27a 100644
--- a/tools/hotplug/Linux/init.d/xencommons.in
+++ b/tools/hotplug/Linux/init.d/xencommons.in
@@ -7,7 +7,7 @@
 # chkconfig: 2345 70 10
 # description: Starts and stops xenstored and xenconsoled
 ### BEGIN INIT INFO
-# Provides:          xenstored xenconsoled
+# Provides:          xenstored xenconsoled xen
 # Required-Start:    $syslog $remote_fs
 # Should-Start:
 # Required-Stop:     $syslog $remote_fs
-- 
2.11.0


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

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

* [PATCH 2/3] tools: init scripts: xencommons: Fixes to Description
  2019-02-07 15:02 [PATCH for-4.12 0/3] tools: Init scripts minor fixes Ian Jackson
  2019-02-07 15:02 ` [PATCH 1/3] tools: init scripts: xencommons: Provides `xen' Ian Jackson
@ 2019-02-07 15:02 ` Ian Jackson
  2019-02-07 15:02 ` [PATCH 3/3] tools: init scripts: make XEN_RUN_DIR and XEN_LOCK_DIR mode 700 Ian Jackson
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: Ian Jackson @ 2019-02-07 15:02 UTC (permalink / raw)
  To: xen-devel; +Cc: Juergen Gross, Wei Liu, Ian Jackson

`neeeded' is a typo.  And xend is long gone.

No functional change.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
---
 tools/hotplug/Linux/init.d/xencommons.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/hotplug/Linux/init.d/xencommons.in b/tools/hotplug/Linux/init.d/xencommons.in
index 581b02c27a..aa62e4c92f 100644
--- a/tools/hotplug/Linux/init.d/xencommons.in
+++ b/tools/hotplug/Linux/init.d/xencommons.in
@@ -15,7 +15,7 @@
 # Default-Start:     2 3 5
 # Default-Stop:      0 1 6
 # Short-Description: Start/stop xenstored and xenconsoled
-# Description:       Starts and stops the daemons neeeded for xl/xend
+# Description:       Starts and stops the daemons needed for xl
 ### END INIT INFO
 
 BACKEND_MODULES="@LINUX_BACKEND_MODULES@"
-- 
2.11.0


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

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

* [PATCH 3/3] tools: init scripts: make XEN_RUN_DIR and XEN_LOCK_DIR mode 700
  2019-02-07 15:02 [PATCH for-4.12 0/3] tools: Init scripts minor fixes Ian Jackson
  2019-02-07 15:02 ` [PATCH 1/3] tools: init scripts: xencommons: Provides `xen' Ian Jackson
  2019-02-07 15:02 ` [PATCH 2/3] tools: init scripts: xencommons: Fixes to Description Ian Jackson
@ 2019-02-07 15:02 ` Ian Jackson
  2019-02-07 15:36 ` [PATCH for-4.12 0/3] tools: Init scripts minor fixes Wei Liu
  2019-02-07 16:18 ` Juergen Gross
  4 siblings, 0 replies; 6+ messages in thread
From: Ian Jackson @ 2019-02-07 15:02 UTC (permalink / raw)
  To: xen-devel; +Cc: Juergen Gross, Wei Liu, Ian Jackson

These directories ought not to be even world-readable.  If this script
for some reason runs with a lax umask they might be created
overly-writeable.  Avoid any such bug by setting the mode explicitly.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
---
 tools/hotplug/Linux/init.d/xencommons.in | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tools/hotplug/Linux/init.d/xencommons.in b/tools/hotplug/Linux/init.d/xencommons.in
index aa62e4c92f..7fd6903b98 100644
--- a/tools/hotplug/Linux/init.d/xencommons.in
+++ b/tools/hotplug/Linux/init.d/xencommons.in
@@ -56,8 +56,8 @@ do_start () {
 
 	for mod in $BACKEND_MODULES ; do modprobe "$mod" &>/dev/null ; done
 
-	mkdir -p ${XEN_RUN_DIR}
-	mkdir -p ${XEN_LOCK_DIR}
+	mkdir -m700 -p ${XEN_RUN_DIR}
+	mkdir -m700 -p ${XEN_LOCK_DIR}
 	mkdir -p ${XEN_LOG_DIR}
 
 	@XEN_SCRIPT_DIR@/launch-xenstore || exit 1
-- 
2.11.0


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

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

* Re: [PATCH for-4.12 0/3] tools: Init scripts minor fixes
  2019-02-07 15:02 [PATCH for-4.12 0/3] tools: Init scripts minor fixes Ian Jackson
                   ` (2 preceding siblings ...)
  2019-02-07 15:02 ` [PATCH 3/3] tools: init scripts: make XEN_RUN_DIR and XEN_LOCK_DIR mode 700 Ian Jackson
@ 2019-02-07 15:36 ` Wei Liu
  2019-02-07 16:18 ` Juergen Gross
  4 siblings, 0 replies; 6+ messages in thread
From: Wei Liu @ 2019-02-07 15:36 UTC (permalink / raw)
  To: Ian Jackson; +Cc: Juergen Gross, xen-devel, Hans van Kranenburg, Wei Liu

On Thu, Feb 07, 2019 at 03:02:24PM +0000, Ian Jackson wrote:
> The Debian Xen maintainers had a review of the init scripts.  Debian
> has its completely own set of scripts.  This is something that needs
> to be tackled in the medium term but not now.
> 
> However, we did identify some things which could be remedied upstream
> right away.
> 
> Ian Jackson (3):
>   tools: init scripts: xencommons: Provides `xen'
>   tools: init scripts: xencommons: Fixes to Description
>   tools: init scripts: make XEN_RUN_DIR and XEN_LOCK_DIR mode 700

Acked-by: Wei Liu <wei.liu2@citrix.com>

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

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

* Re: [PATCH for-4.12 0/3] tools: Init scripts minor fixes
  2019-02-07 15:02 [PATCH for-4.12 0/3] tools: Init scripts minor fixes Ian Jackson
                   ` (3 preceding siblings ...)
  2019-02-07 15:36 ` [PATCH for-4.12 0/3] tools: Init scripts minor fixes Wei Liu
@ 2019-02-07 16:18 ` Juergen Gross
  4 siblings, 0 replies; 6+ messages in thread
From: Juergen Gross @ 2019-02-07 16:18 UTC (permalink / raw)
  To: Ian Jackson, xen-devel; +Cc: Wei Liu, Hans van Kranenburg

On 07/02/2019 16:02, Ian Jackson wrote:
> The Debian Xen maintainers had a review of the init scripts.  Debian
> has its completely own set of scripts.  This is something that needs
> to be tackled in the medium term but not now.
> 
> However, we did identify some things which could be remedied upstream
> right away.
> 
> Ian Jackson (3):
>   tools: init scripts: xencommons: Provides `xen'
>   tools: init scripts: xencommons: Fixes to Description
>   tools: init scripts: make XEN_RUN_DIR and XEN_LOCK_DIR mode 700
> 
>  tools/hotplug/Linux/init.d/xencommons.in | 8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)
> 

For the series:

Release-acked-by: Juergen Gross <jgross@suse.com>


Juergen

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

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

end of thread, other threads:[~2019-02-07 16:18 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-07 15:02 [PATCH for-4.12 0/3] tools: Init scripts minor fixes Ian Jackson
2019-02-07 15:02 ` [PATCH 1/3] tools: init scripts: xencommons: Provides `xen' Ian Jackson
2019-02-07 15:02 ` [PATCH 2/3] tools: init scripts: xencommons: Fixes to Description Ian Jackson
2019-02-07 15:02 ` [PATCH 3/3] tools: init scripts: make XEN_RUN_DIR and XEN_LOCK_DIR mode 700 Ian Jackson
2019-02-07 15:36 ` [PATCH for-4.12 0/3] tools: Init scripts minor fixes Wei Liu
2019-02-07 16:18 ` Juergen Gross

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.