<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>31899</bug_id>
          
          <creation_ts>2016-03-18 06:12:37 +0300</creation_ts>
          <short_desc>Нарушает ALT Secure Packaging Policy</short_desc>
          <delta_ts>2016-03-18 18:28:01 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>mariadb-server</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>https://www.altlinux.org/Secure_Packaging_Policy</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>blocker</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Evgenii Terechkov">evg</reporter>
          <assigned_to name="Alexey Shabalin">shaba</assigned_to>
          <cc>mike</cc>
    
    <cc>shaba</cc>
    
    <cc>taf</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>155762</commentid>
    <comment_count>0</comment_count>
    <who name="Evgenii Terechkov">evg</who>
    <bug_when>2016-03-18 06:12:37 +0300</bug_when>
    <thetext>Пакет нарушает ALT Secure Packaging Policy, на что ежедневно в почту жалуется
logrotate (3.9.1-alt2 и выше):

=8&lt;=================================================
error: skipping &quot;/var/log/mysql/error.log&quot; because parent directory has insecure permissions (it&apos;s not owned by &quot;root&quot;); consider using &quot;su&quot; directive in config file to tell logrotate which user/group should be used for rotation.
error: skipping &quot;/var/log/mysql/slow.log&quot; because parent directory has insecure permissions (it&apos;s not owned by &quot;root&quot;); consider using &quot;su&quot; directive in config file to tell logrotate which user/group should be used for rotation.
=8&lt;=================================================

и логи НЕ ротируются.

Полиси гласит:
=8&lt;=================================================
Пакеты не должны содержать каталоги, принадлежащие псевдо-пользователям. Вместо
этого следует использовать каталоги, принадлежащие root, с установленным sticky
bit и доступом группы по записи.
=8&lt;=================================================

P.S.: согласно определению ldv в багтрекере, пакеты нарушающие SPP это блокер
для выпуска продуктов, основанных на сизифе (цитата не дословная).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>155766</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Shabalin">shaba</who>
    <bug_when>2016-03-18 09:47:01 +0300</bug_when>
    <thetext>строчка
%attr(750,mysql,adm) %dir %_logdir/mysql
была тупо скопирована из MySQL.
Ок, сделаю 
%attr(770,root,mysql)
Но хотелось бы группе adm тоже оставить доступ. Как?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>155767</commentid>
    <comment_count>2</comment_count>
    <who name="Evgenii Terechkov">evg</who>
    <bug_when>2016-03-18 09:58:15 +0300</bug_when>
    <thetext>Насколько помню SPP, должно быть 1770, чтобы группа mysql не могла повлиять отротированные логи (см. по ссылке).

Как оставить доступ для adm, сходу не знаю, для меня первично чтобы логи из коробки ротировались.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>155779</commentid>
    <comment_count>3</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2016-03-18 18:28:01 +0300</bug_when>
    <thetext>mariadb-10.1.12-alt1 -&gt; sisyphus:

* Fri Mar 18 2016 Alexey Shabalin &lt;shaba@altlinux&gt; 10.1.12-alt1
- 10.1.12
- fix log permitions (ALT #31899)
- build with kerberos auth_gssapi plugin
- add innodb_file_per_table to server.cnf (ALT #31885)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>