<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>49048</bug_id>
          
          <creation_ts>2004-04-26 10:37 0000</creation_ts>
          <short_desc>Partimage 0.6.4 gives incorrect SSL permissions</short_desc>
          <delta_ts>2004-05-14 00:10:18 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Ebuilds</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>r2d2@gentoo.org</reporter>
          <assigned_to>robbat2@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>r2d2@gentoo.org</who>
            <bug_when>2004-04-26 10:37:00 0000</bug_when>
            <thetext>The new ebuild for partimaged sets some permissions on ebuild config incorrectly.

The partimaged.cert must have 0600 permissions, and be owned by at least partimag:root, as with the partimaged.key file.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>robbat2@gentoo.org</who>
            <bug_when>2004-04-28 02:01:30 0000</bug_when>
            <thetext>partimaged.cert contains NOTHING private, therefore does not need to be 0600.
i don&apos;t want partimaged to be able to change it&apos;s cert, so owned by root:root is correct.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>r2d2@gentoo.org</who>
            <bug_when>2004-04-28 05:29:50 0000</bug_when>
            <thetext>I a not questioning your motives but am rather questioning what works. Below is all combinations of 600 644 root:root partimag:root... At first it it 644 and partimag:root, then 644 with root:root, then 600 with root:root and finally, 600 with partimag:root :


confucius partimaged # ls -l partimaged.cert
-rw-------    1 partimag root         3498 Apr 26 13:31 partimaged.cert
confucius partimaged # chmod 644 partimaged.cert
confucius partimaged # partimaged
error when verifying /etc/partimaged/partimaged.cert, check logfile for help
logfile is /var/log/partimaged.log
if you don&apos;t have logfile, use partimaged --debug=1
confucius partimaged # chown root:root partimaged.cert
confucius partimaged # partimaged
error when verifying /etc/partimaged/partimaged.cert, check logfile for help
logfile is /var/log/partimaged.log
if you don&apos;t have logfile, use partimaged --debug=1
confucius partimaged # chmod 600 partimaged.cert
confucius partimaged # partimaged
27351:error:0200100D:system library:fopen:Permission denied:bss_file.c:276:fopen(&apos;/etc/partimaged/partimaged.cert&apos;,&apos;r&apos;)
27351:error:20074002:BIO routines:FILE_CTRL:system lib:bss_file.c:278:
27351:error:140AD002:SSL routines:SSL_CTX_use_certificate_file:system lib:ssl_rsa.c:515:
confucius partimaged # chown partimag:root partimaged.cert
confucius partimaged # partimaged         &lt;- Now it runs</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>robbat2@gentoo.org</who>
            <bug_when>2004-05-12 21:14:23 0000</bug_when>
            <thetext>looking at upstream&apos;s code, it&apos;s a definate bug in their work.
i&apos;ll look at a fix.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>robbat2@gentoo.org</who>
            <bug_when>2004-05-14 00:10:18 0000</bug_when>
            <thetext>ok, i&apos;ve disabled partimage&apos;s stupid checks for permissions.
it doesn&apos;t need them as they are, and it&apos;s more secure with it properly configured by the ebuild.
should a hole ever be found, we&apos;ll be better protected.

and i tested it this time as well, with the user login and SSL functionality and it works 100%.</thetext>
          </long_desc>
      
    </bug>

</bugzilla>