Skip to contentSkip to conversation

samba: disable services for sysvinit

PATCH In review [email protected] 3 participants 7 messages Mar 4, 2015 – Mar 29, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 samba: disable services for sysvinit

From: Wenzong Fan <[email protected]>

The smb, nmb, winbind services have been disabled for systemd system by default, disable them for sysvinit as well.

---
 meta-oe/recipes-connectivity/samba/samba.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-oe/recipes-connectivity/samba/samba.inc +1 -1
index abfd5ca..99216ce 100644
@@ -69,7 +69,7 @@ INITSCRIPT_NAME_winbind = "winbind"
 # No dependencies, goes in at level 20 (NOTE: take care with the
 # level, later levels put the shutdown later too - see the links
 # in rc6.d, the shutdown must precede network shutdown).
-INITSCRIPT_PARAMS = "defaults"
+INITSCRIPT_PARAMS = "disable"
 CONFFILES_${PN} = "${sysconfdir}/samba/smb.conf"
 
 do_configure_prepend () {
Signature · 1 line
1.9.1
#1 lore raw

Dear Wenzong Fan,

Quoted 4 lines · On 04.03.2015 07:18, [email protected] wrote:

From: Wenzong Fan <[email protected]>

The smb, nmb, winbind services have been disabled for systemd system by default, disable them for sysvinit as well.

why would anybody install these services without the desire for using them? Did the patch disabling them for systemd get merged by mistake? I remember Paul objecting to it.

Regards,
Andreas

Quoted 20 lines
---
 meta-oe/recipes-connectivity/samba/samba.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-oe/recipes-connectivity/samba/samba.inc +1 -1
index abfd5ca..99216ce 100644
@@ -69,7 +69,7 @@ INITSCRIPT_NAME_winbind = "winbind"
 # No dependencies, goes in at level 20 (NOTE: take care with the
 # level, later levels put the shutdown later too - see the links
 # in rc6.d, the shutdown must precede network shutdown).
-INITSCRIPT_PARAMS = "defaults"
+INITSCRIPT_PARAMS = "disable"
 CONFFILES_${PN} = "${sysconfdir}/samba/smb.conf"
 
 do_configure_prepend () {
#2 lore raw
Quoted 11 lines · Andreas Oberritter

Dear Wenzong Fan,

Quoted 4 lines · On 04.03.2015 07:18, [email protected] wrote:

From: Wenzong Fan <[email protected]>

The smb, nmb, winbind services have been disabled for systemd system by default, disable them for sysvinit as well.

why would anybody install these services without the desire for using them? Did the patch disabling them for systemd get merged by mistake? I remember Paul objecting to it.

The samba is not a common service that required by system, especially in some security environment, it should be configured correctly first - This is why I incline to disable it by default.

Yes, it did - this may give me some hints that it should be disabled ...

Thanks
Wenzong

Quoted 25 lines

Regards,
Andreas

Quoted 20 lines
---
  meta-oe/recipes-connectivity/samba/samba.inc | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
meta-oe/recipes-connectivity/samba/samba.inc +1 -1
index abfd5ca..99216ce 100644
@@ -69,7 +69,7 @@ INITSCRIPT_NAME_winbind = "winbind"
  # No dependencies, goes in at level 20 (NOTE: take care with the
  # level, later levels put the shutdown later too - see the links
  # in rc6.d, the shutdown must precede network shutdown).
-INITSCRIPT_PARAMS = "defaults"
+INITSCRIPT_PARAMS = "disable"
  CONFFILES_${PN} = "${sysconfdir}/samba/smb.conf"
 
  do_configure_prepend () {
#3 lore raw
Quoted 9 lines · wenzong fan
Quoted 8 lines · Andreas Oberritter

Dear Wenzong Fan,

Quoted 4 lines · On 04.03.2015 07:18, [email protected] wrote:

From: Wenzong Fan <[email protected]>

The smb, nmb, winbind services have been disabled for systemd system by default, disable them for sysvinit as well.

Quoted 7 lines
Quoted 3 lines

why would anybody install these services without the desire for using them? Did the patch disabling them for systemd get merged by mistake? I remember Paul objecting to it.

The samba is not a common service that required by system, especially in some security environment, it should be configured correctly first - This is why I incline to disable it by default.

This doesn't convince me, as the line you're drawing between samba and other services seems to be chosen arbitrarily.

"git grep INITSCRIPT_PARAMS.*disable" shows no results in both openembedded-core and meta-openembedded (dizzy). So samba will be the first and only service that's disabled by default and requires manual intervention by the user? Why don't you ship a safe configuration instead?

As Paul stated, the distro is responsible for correct configuration. IMHO there's no reason to deviate from common behaviour just because samba seems to be less safe than any other network service in your view.

Quoted 1 line

Yes, it did - this may give me some hints that it should be disabled ...

Unfortunately I don't understand what you're referring to here.

Regards,
Andreas

#4 lore raw
Quoted 21 lines · Andreas Oberritter
Quoted 9 lines · wenzong fan
Quoted 8 lines · Andreas Oberritter

Dear Wenzong Fan,

Quoted 4 lines · On 04.03.2015 07:18, [email protected] wrote:

From: Wenzong Fan <[email protected]>

The smb, nmb, winbind services have been disabled for systemd system by default, disable them for sysvinit as well.

Quoted 7 lines
Quoted 3 lines

why would anybody install these services without the desire for using them? Did the patch disabling them for systemd get merged by mistake? I remember Paul objecting to it.

The samba is not a common service that required by system, especially in some security environment, it should be configured correctly first - This is why I incline to disable it by default.

This doesn't convince me, as the line you're drawing between samba and other services seems to be chosen arbitrarily.

Quoted 9 lines

"git grep INITSCRIPT_PARAMS.*disable" shows no results in both openembedded-core and meta-openembedded (dizzy). So samba will be the first and only service that's disabled by default and requires manual intervention by the user? Why don't you ship a safe configuration instead?

As Paul stated, the distro is responsible for correct configuration. IMHO there's no reason to deviate from common behaviour just because samba seems to be less safe than any other network service in your view.

Ok, thanks for your advises, I agree with you.

Please maintainer ignore my patch.

Quoted 3 lines
Quoted 1 line

Yes, it did - this may give me some hints that it should be disabled ...

Unfortunately I don't understand what you're referring to here.

Sorry for the confusion, it answered you second question about if "the patch disabling them for systemd get merged by mistake?".

Yes, the patch for systemd has been merged - It gives me hint that it's a proper behavior for samba, but looks it isn't ...

Please refer to the commit: 20a624928c030fa13d8b7d45b4f4d7e1ac624f60

It should be reverted now!

Thanks
Wenzong

Quoted 5 lines

Regards,
Andreas

#5 lore raw

Hi Martin,

Quoted 44 lines · wenzong fan
Quoted 27 lines · Andreas Oberritter
Quoted 9 lines · wenzong fan
Quoted 8 lines · Andreas Oberritter

Dear Wenzong Fan,

Quoted 4 lines · On 04.03.2015 07:18, [email protected] wrote:

From: Wenzong Fan <[email protected]>

The smb, nmb, winbind services have been disabled for systemd system by default, disable them for sysvinit as well.

Quoted 7 lines
Quoted 3 lines

why would anybody install these services without the desire for using them? Did the patch disabling them for systemd get merged by mistake? I remember Paul objecting to it.

The samba is not a common service that required by system, especially in some security environment, it should be configured correctly first - This is why I incline to disable it by default.

This doesn't convince me, as the line you're drawing between samba and other services seems to be chosen arbitrarily.

"git grep INITSCRIPT_PARAMS.*disable" shows no results in both openembedded-core and meta-openembedded (dizzy). So samba will be the first and only service that's disabled by default and requires manual intervention by the user? Why don't you ship a safe configuration instead?

Quoted 4 lines

As Paul stated, the distro is responsible for correct configuration. IMHO there's no reason to deviate from common behaviour just because samba seems to be less safe than any other network service in your view.

Ok, thanks for your advises, I agree with you.

Please maintainer ignore my patch.

Quoted 3 lines
Quoted 1 line

Yes, it did - this may give me some hints that it should be disabled ...

Unfortunately I don't understand what you're referring to here.

Sorry for the confusion, it answered you second question about if "the patch disabling them for systemd get merged by mistake?".

Quoted 6 lines

Yes, the patch for systemd has been merged - It gives me hint that it's a proper behavior for samba, but looks it isn't ...

Please refer to the commit: 20a624928c030fa13d8b7d45b4f4d7e1ac624f60

It should be reverted now!

You applied this patch to jansa/master. Would you mind reverting 20a624928c030fa13d8b7d45b4f4d7e1ac624f60 instead, as discussed in this thread?

Regards,
Andreas

#6 lore raw
Quoted 50 lines · Andreas Oberritter

Hi Martin,

Quoted 47 lines · wenzong fan
Quoted 27 lines · Andreas Oberritter
Quoted 9 lines · wenzong fan
Quoted 8 lines · Andreas Oberritter

Dear Wenzong Fan,

Quoted 4 lines · On 04.03.2015 07:18, [email protected] wrote:

From: Wenzong Fan <[email protected]>

The smb, nmb, winbind services have been disabled for systemd system by default, disable them for sysvinit as well.

Quoted 7 lines
Quoted 3 lines

why would anybody install these services without the desire for using them? Did the patch disabling them for systemd get merged by mistake? I remember Paul objecting to it.

The samba is not a common service that required by system, especially in some security environment, it should be configured correctly first - This is why I incline to disable it by default.

This doesn't convince me, as the line you're drawing between samba and other services seems to be chosen arbitrarily.

"git grep INITSCRIPT_PARAMS.*disable" shows no results in both openembedded-core and meta-openembedded (dizzy). So samba will be the first and only service that's disabled by default and requires manual intervention by the user? Why don't you ship a safe configuration instead?

Quoted 4 lines

As Paul stated, the distro is responsible for correct configuration. IMHO there's no reason to deviate from common behaviour just because samba seems to be less safe than any other network service in your view.

Ok, thanks for your advises, I agree with you.

Please maintainer ignore my patch.

Quoted 3 lines
Quoted 1 line

Yes, it did - this may give me some hints that it should be disabled ...

Unfortunately I don't understand what you're referring to here.

Sorry for the confusion, it answered you second question about if "the patch disabling them for systemd get merged by mistake?".

Yes, the patch for systemd has been merged - It gives me hint that it's a proper behavior for samba, but looks it isn't ...

Quoted 7 lines
Quoted 3 lines

Please refer to the commit: 20a624928c030fa13d8b7d45b4f4d7e1ac624f60

It should be reverted now!

You applied this patch to jansa/master. Would you mind reverting 20a624928c030fa13d8b7d45b4f4d7e1ac624f60 instead, as discussed in this thread?

It was applied there before this discussion started and I wasn't planing to merge it before seeing some conclusion from this.

But you're right, I've moved it to jansa/master-next-unresolved-review branch to make it more obvious and I've added revert of 20a624 to master-next.

Thanks,

Signature · 1 line
Martin 'JaMa' Jansa     jabber: [email protected]