<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>9036</bug_id>
          
          <creation_ts>2016-02-02 13:47:15 +0000</creation_ts>
          <short_desc>bitbake-prserv should not force umask in daemon mode</short_desc>
          <delta_ts>2016-02-11 20:59:24 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>BitBake</product>
          <component>bitbake</component>
          <version>2.0.2</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.1 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Diego Santa cruz">Diego.SantaCruz</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>58446</commentid>
    <comment_count>0</comment_count>
      <attachid>2964</attachid>
    <who name="Diego Santa cruz">Diego.SantaCruz</who>
    <bug_when>2016-02-02 13:47:15 +0000</bug_when>
    <thetext>Created attachment 2964
Do not clear umask of the PR Service in daemon mode

The current bitbake-prserv forces the umask to 0 when daemonizing.

I think his should not be done, as it will make all files be created with permissions 0777 (world writable!) by default.

For instance, the PID file (/tmp/PRServer_*.pid) is created with permissions 0777 on my system (CentOS 7.2.1511).

It would be better to leave the umask unchanged, so whoever is starting bitbake-preserv gets to choose the umask it wants to use.

The attached patch does exactly this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>58924</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2016-02-11 20:59:24 +0000</bug_when>
    <thetext>Thanks for the patches! http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=56454f6fb2aed2bbfd6e1c1759f15d97db086d90</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>2964</attachid>
            <date>2016-02-02 13:47:15 +0000</date>
            <delta_ts>2016-02-02 13:47:15 +0000</delta_ts>
            <desc>Do not clear umask of the PR Service in daemon mode</desc>
            <filename>0001-bitbake-prserv-do-not-clear-umask-when-daemonizing.patch</filename>
            <type>text/plain</type>
            <size>1115</size>
            <attacher name="Diego Santa cruz">Diego.SantaCruz</attacher>
            
              <data encoding="base64">RnJvbSAyNGY2NTEwOTVhZWIzMDA3OGVjZWRiNmI2MWViMTdiMDhkYjhhMzM4IE1vbiBTZXAgMTcg
MDA6MDA6MDAgMjAwMQpGcm9tOiBEaWVnbyBTYW50YSBDcnV6IDxEaWVnby5TYW50YUNydXpAc3Bp
bmV0aXguY29tPgpEYXRlOiBUdWUsIDIgRmViIDIwMTYgMTM6MDg6MDUgKzAxMDAKU3ViamVjdDog
W1BBVENIXSBiaXRiYWtlOiBwcnNlcnY6IGRvIG5vdCBjbGVhciB1bWFzayB3aGVuIGRhZW1vbml6
aW5nCgpDbGVhcmluZyB0aGUgdW1hc2sgd2hlbiBkYWVtb25pemluZyBpcyBub3QgdGhlIGNvcnJl
Y3QgdGhpbmcKdG8gZG8sIGFzIGl0IHdpbGwgY3JlYXRlIGZpbGVzIHdyaXRhYmxlIGJ5IGFueW9u
ZSBieSBkZWZhdWx0LgpGb3IgaW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