diff options
author | Andreas Oberritter <obi@opendreambox.org> | 2012-03-10 03:11:57 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-04-04 17:17:51 +0100 |
commit | 8b797c6b6e4c35c9b5ebaf1f6ca6c3332943ec61 (patch) | |
tree | 9276c001a29ebd5b10fbe715f4a17e730f09b6c3 /meta | |
parent | 9ce92e439f2995b8e201461a0f76910b0b9a12f9 (diff) | |
download | poky-8b797c6b6e4c35c9b5ebaf1f6ca6c3332943ec61.tar.gz |
package_{deb,ipk,rpm}: apply umask to files generated in do_package_write_{deb,ipk,rpm}
* Explicitly set umask to 022. Otherwise the build system's
umask may leak into the image.
(From OE-Core rev: d2a54427481856238bdfec9723cf575088320512)
Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes/package_deb.bbclass | 1 | ||||
-rw-r--r-- | meta/classes/package_ipk.bbclass | 1 | ||||
-rw-r--r-- | meta/classes/package_rpm.bbclass | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/meta/classes/package_deb.bbclass b/meta/classes/package_deb.bbclass index 1f7ec9ca3e..9880258853 100644 --- a/meta/classes/package_deb.bbclass +++ b/meta/classes/package_deb.bbclass | |||
@@ -421,6 +421,7 @@ python do_package_write_deb () { | |||
421 | bb.build.exec_func("do_package_deb", d) | 421 | bb.build.exec_func("do_package_deb", d) |
422 | } | 422 | } |
423 | do_package_write_deb[dirs] = "${PKGWRITEDIRDEB}" | 423 | do_package_write_deb[dirs] = "${PKGWRITEDIRDEB}" |
424 | do_package_write_deb[umask] = "022" | ||
424 | addtask package_write_deb before do_package_write after do_package | 425 | addtask package_write_deb before do_package_write after do_package |
425 | 426 | ||
426 | 427 | ||
diff --git a/meta/classes/package_ipk.bbclass b/meta/classes/package_ipk.bbclass index 565ef93315..e4a217ba57 100644 --- a/meta/classes/package_ipk.bbclass +++ b/meta/classes/package_ipk.bbclass | |||
@@ -453,6 +453,7 @@ python do_package_write_ipk () { | |||
453 | bb.build.exec_func("do_package_ipk", d) | 453 | bb.build.exec_func("do_package_ipk", d) |
454 | } | 454 | } |
455 | do_package_write_ipk[dirs] = "${PKGWRITEDIRIPK}" | 455 | do_package_write_ipk[dirs] = "${PKGWRITEDIRIPK}" |
456 | do_package_write_ipk[umask] = "022" | ||
456 | addtask package_write_ipk before do_package_write after do_package | 457 | addtask package_write_ipk before do_package_write after do_package |
457 | 458 | ||
458 | PACKAGEINDEXES += "package_update_index_ipk;" | 459 | PACKAGEINDEXES += "package_update_index_ipk;" |
diff --git a/meta/classes/package_rpm.bbclass b/meta/classes/package_rpm.bbclass index 0ccf574850..16a2c8751b 100644 --- a/meta/classes/package_rpm.bbclass +++ b/meta/classes/package_rpm.bbclass | |||
@@ -1103,6 +1103,7 @@ python do_package_write_rpm () { | |||
1103 | } | 1103 | } |
1104 | 1104 | ||
1105 | do_package_write_rpm[dirs] = "${PKGWRITEDIRRPM}" | 1105 | do_package_write_rpm[dirs] = "${PKGWRITEDIRRPM}" |
1106 | do_package_write_rpm[umask] = "022" | ||
1106 | addtask package_write_rpm before do_package_write after do_package | 1107 | addtask package_write_rpm before do_package_write after do_package |
1107 | 1108 | ||
1108 | PACKAGEINDEXES += "package_update_index_rpm; createrepo ${DEPLOY_DIR_RPM};" | 1109 | PACKAGEINDEXES += "package_update_index_rpm; createrepo ${DEPLOY_DIR_RPM};" |