Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH v2 1/2] shadow-native: use 'users' group by default
@ 2012-07-20 19:17 Otavio Salvador
  0 siblings, 0 replies; 6+ messages in thread
From: Otavio Salvador @ 2012-07-20 19:17 UTC (permalink / raw)
  To: openembedded-core

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
---
 .../shadow/shadow-native_4.1.4.3.bb                |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/meta/recipes-extended/shadow/shadow-native_4.1.4.3.bb b/meta/recipes-extended/shadow/shadow-native_4.1.4.3.bb
index 1e071f1..cd5605f 100644
--- a/meta/recipes-extended/shadow/shadow-native_4.1.4.3.bb
+++ b/meta/recipes-extended/shadow/shadow-native_4.1.4.3.bb
@@ -7,7 +7,7 @@ LICENSE = "BSD | Artistic-1.0"
 LIC_FILES_CHKSUM = "file://COPYING;md5=08c553a87d4e51bbed50b20e0adcaede \
                     file://src/passwd.c;firstline=8;endline=30;md5=2899a045e90511d0e043b85a7db7e2fe"
 
-PR = "r6"
+PR = "r7"
 
 SRC_URI = "http://pkg-shadow.alioth.debian.org/releases/${BPN}-${PV}.tar.bz2 \
            file://shadow.automake-1.11.patch \
@@ -46,4 +46,7 @@ do_install_append() {
 	# Now we don't have a mail system. Disable mail creation for now.
 	sed -i 's:/bin/bash:/bin/sh:g' ${D}${sysconfdir}/default/useradd
 	sed -i '/^CREATE_MAIL_SPOOL/ s:^:#:' ${D}${sysconfdir}/default/useradd
+
+	# Use users group by default
+	sed -i 's,^GROUP=1000,GROUP=100,g' ${D}${sysconfdir}/default/useradd
 }
-- 
1.7.2.5




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

* [PATCH v2 1/2] shadow-native: use 'users' group by default
@ 2012-07-23 17:37 Otavio Salvador
  2012-07-23 17:37 ` [PATCH v2 2/2] shadow: " Otavio Salvador
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Otavio Salvador @ 2012-07-23 17:37 UTC (permalink / raw)
  To: openembedded-core

The rootfs has 'users' group at number 100 and without this fix it
would assign to a non-existent group and if a group with gid as 1000
is created later it would own all files for users created.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
---
 .../shadow/shadow-native_4.1.4.3.bb                |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/meta/recipes-extended/shadow/shadow-native_4.1.4.3.bb b/meta/recipes-extended/shadow/shadow-native_4.1.4.3.bb
index 1e071f1..cd5605f 100644
--- a/meta/recipes-extended/shadow/shadow-native_4.1.4.3.bb
+++ b/meta/recipes-extended/shadow/shadow-native_4.1.4.3.bb
@@ -7,7 +7,7 @@ LICENSE = "BSD | Artistic-1.0"
 LIC_FILES_CHKSUM = "file://COPYING;md5=08c553a87d4e51bbed50b20e0adcaede \
                     file://src/passwd.c;firstline=8;endline=30;md5=2899a045e90511d0e043b85a7db7e2fe"
 
-PR = "r6"
+PR = "r7"
 
 SRC_URI = "http://pkg-shadow.alioth.debian.org/releases/${BPN}-${PV}.tar.bz2 \
            file://shadow.automake-1.11.patch \
@@ -46,4 +46,7 @@ do_install_append() {
 	# Now we don't have a mail system. Disable mail creation for now.
 	sed -i 's:/bin/bash:/bin/sh:g' ${D}${sysconfdir}/default/useradd
 	sed -i '/^CREATE_MAIL_SPOOL/ s:^:#:' ${D}${sysconfdir}/default/useradd
+
+	# Use users group by default
+	sed -i 's,^GROUP=1000,GROUP=100,g' ${D}${sysconfdir}/default/useradd
 }
-- 
1.7.2.5




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

* [PATCH v2 2/2] shadow: use 'users' group by default
  2012-07-23 17:37 [PATCH v2 1/2] shadow-native: use 'users' group by default Otavio Salvador
@ 2012-07-23 17:37 ` Otavio Salvador
  2012-08-02 14:36   ` Otavio Salvador
  2012-07-26 19:23 ` [PATCH v2 1/2] shadow-native: " Saul Wold
  2012-08-02 14:34 ` Otavio Salvador
  2 siblings, 1 reply; 6+ messages in thread
From: Otavio Salvador @ 2012-07-23 17:37 UTC (permalink / raw)
  To: openembedded-core

The rootfs has 'users' group at number 100 and without this fix it
would assign to a non-existent group and if a group with gid as 1000
is created later it would own all files for users created.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
---
 meta/recipes-extended/shadow/shadow_4.1.4.3.bb |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/meta/recipes-extended/shadow/shadow_4.1.4.3.bb b/meta/recipes-extended/shadow/shadow_4.1.4.3.bb
index 506f4e6..de10f64 100644
--- a/meta/recipes-extended/shadow/shadow_4.1.4.3.bb
+++ b/meta/recipes-extended/shadow/shadow_4.1.4.3.bb
@@ -9,7 +9,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=08c553a87d4e51bbed50b20e0adcaede \
 
 DEPENDS = "${@base_contains('DISTRO_FEATURES', 'pam', 'libpam', '', d)}"
 RDEPENDS_${PN} = "shadow-securetty ${@base_contains('DISTRO_FEATURES', 'pam', '${PAM_PLUGINS}', '', d)}"
-PR = "r10"
+PR = "r11"
 
 SRC_URI = "http://pkg-shadow.alioth.debian.org/releases/${BPN}-${PV}.tar.bz2 \
            file://login_defs_pam.sed \
@@ -85,6 +85,9 @@ do_install_append() {
 	sed -i 's:/bin/bash:/bin/sh:g' ${D}${sysconfdir}/default/useradd
 	sed -i '/^CREATE_MAIL_SPOOL/ s:^:#:' ${D}${sysconfdir}/default/useradd
 
+	# Use users group by default
+	sed -i 's,^GROUP=1000,GROUP=100,g' ${D}${sysconfdir}/default/useradd
+
 	install -d ${D}${sbindir} ${D}${base_sbindir} ${D}${base_bindir} 
 
 	# Move binaries to the locations we want
-- 
1.7.2.5




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

* Re: [PATCH v2 1/2] shadow-native: use 'users' group by default
  2012-07-23 17:37 [PATCH v2 1/2] shadow-native: use 'users' group by default Otavio Salvador
  2012-07-23 17:37 ` [PATCH v2 2/2] shadow: " Otavio Salvador
@ 2012-07-26 19:23 ` Saul Wold
  2012-08-02 14:34 ` Otavio Salvador
  2 siblings, 0 replies; 6+ messages in thread
From: Saul Wold @ 2012-07-26 19:23 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

On 07/23/2012 10:37 AM, Otavio Salvador wrote:
> The rootfs has 'users' group at number 100 and without this fix it
> would assign to a non-existent group and if a group with gid as 1000
> is created later it would own all files for users created.
>
> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
> ---
>   .../shadow/shadow-native_4.1.4.3.bb                |    5 ++++-
>   1 files changed, 4 insertions(+), 1 deletions(-)
>
> diff --git a/meta/recipes-extended/shadow/shadow-native_4.1.4.3.bb b/meta/recipes-extended/shadow/shadow-native_4.1.4.3.bb
> index 1e071f1..cd5605f 100644
> --- a/meta/recipes-extended/shadow/shadow-native_4.1.4.3.bb
> +++ b/meta/recipes-extended/shadow/shadow-native_4.1.4.3.bb
> @@ -7,7 +7,7 @@ LICENSE = "BSD | Artistic-1.0"
>   LIC_FILES_CHKSUM = "file://COPYING;md5=08c553a87d4e51bbed50b20e0adcaede \
>                       file://src/passwd.c;firstline=8;endline=30;md5=2899a045e90511d0e043b85a7db7e2fe"
>
> -PR = "r6"
> +PR = "r7"
>
>   SRC_URI = "http://pkg-shadow.alioth.debian.org/releases/${BPN}-${PV}.tar.bz2 \
>              file://shadow.automake-1.11.patch \
> @@ -46,4 +46,7 @@ do_install_append() {
>   	# Now we don't have a mail system. Disable mail creation for now.
>   	sed -i 's:/bin/bash:/bin/sh:g' ${D}${sysconfdir}/default/useradd
>   	sed -i '/^CREATE_MAIL_SPOOL/ s:^:#:' ${D}${sysconfdir}/default/useradd
> +
> +	# Use users group by default
> +	sed -i 's,^GROUP=1000,GROUP=100,g' ${D}${sysconfdir}/default/useradd
>   }
>

Merged these 2 into OE-Core

Thanks
	Sau!



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

* Re: [PATCH v2 1/2] shadow-native: use 'users' group by default
  2012-07-23 17:37 [PATCH v2 1/2] shadow-native: use 'users' group by default Otavio Salvador
  2012-07-23 17:37 ` [PATCH v2 2/2] shadow: " Otavio Salvador
  2012-07-26 19:23 ` [PATCH v2 1/2] shadow-native: " Saul Wold
@ 2012-08-02 14:34 ` Otavio Salvador
  2 siblings, 0 replies; 6+ messages in thread
From: Otavio Salvador @ 2012-08-02 14:34 UTC (permalink / raw)
  To: openembedded-core

On Mon, Jul 23, 2012 at 2:37 PM, Otavio Salvador
<otavio@ossystems.com.br> wrote:
> The rootfs has 'users' group at number 100 and without this fix it
> would assign to a non-existent group and if a group with gid as 1000
> is created later it would own all files for users created.
>
> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>

Can this be included on 1.2.2?

-- 
Otavio Salvador                             O.S. Systems
E-mail: otavio@ossystems.com.br  http://www.ossystems.com.br
Mobile: +55 53 9981-7854              http://projetos.ossystems.com.br



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

* Re: [PATCH v2 2/2] shadow: use 'users' group by default
  2012-07-23 17:37 ` [PATCH v2 2/2] shadow: " Otavio Salvador
@ 2012-08-02 14:36   ` Otavio Salvador
  0 siblings, 0 replies; 6+ messages in thread
From: Otavio Salvador @ 2012-08-02 14:36 UTC (permalink / raw)
  To: openembedded-core

On Mon, Jul 23, 2012 at 2:37 PM, Otavio Salvador
<otavio@ossystems.com.br> wrote:
> The rootfs has 'users' group at number 100 and without this fix it
> would assign to a non-existent group and if a group with gid as 1000
> is created later it would own all files for users created.
>
> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>

Can it be included on 1.2.2?

-- 
Otavio Salvador                             O.S. Systems
E-mail: otavio@ossystems.com.br  http://www.ossystems.com.br
Mobile: +55 53 9981-7854              http://projetos.ossystems.com.br



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

end of thread, other threads:[~2012-08-02 14:48 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-23 17:37 [PATCH v2 1/2] shadow-native: use 'users' group by default Otavio Salvador
2012-07-23 17:37 ` [PATCH v2 2/2] shadow: " Otavio Salvador
2012-08-02 14:36   ` Otavio Salvador
2012-07-26 19:23 ` [PATCH v2 1/2] shadow-native: " Saul Wold
2012-08-02 14:34 ` Otavio Salvador
  -- strict thread matches above, loose matches on Subject: below --
2012-07-20 19:17 Otavio Salvador

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox