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

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

    <bug>
          <bug_id>34335</bug_id>
          
          <creation_ts>2017-12-13 16:50:49 +0300</creation_ts>
          <short_desc>logrotate из коробки не хочет ротировать sssd логи</short_desc>
          <delta_ts>2018-03-01 12:54:04 +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>sssd</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></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>C, backport</keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Andrey Cherepanov">cas</reporter>
          <assigned_to name="Evgeny Sinelnikov">sin</assigned_to>
          <cc>aen</cc>
    
    <cc>asheplyakov</cc>
    
    <cc>iv</cc>
    
    <cc>lav</cc>
    
    <cc>shaba</cc>
    
    <cc>sin</cc>
    
    <cc>slev</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>167928</commentid>
    <comment_count>0</comment_count>
    <who name="Andrey Cherepanov">cas</who>
    <bug_when>2017-12-13 16:50:49 +0300</bug_when>
    <thetext>папка /var/log/sssd 
 
логи растут и забивают место. Служба logrotate не хочет ротировать логи. 
... 
because parent directory has insecure permissions (It&apos;s world writable or writable by group which is not &quot;root&quot;) Set &quot;su&quot; directive in config file to tell logrotate which user/group should be used for rotation. 
... 
 
Починить можно добавив строку 
 
su root _sssd 
 
т.е. 
 
/var/log/sssd/*.log { 
su root _sssd 
weekly 
missingok 
notifempty 
sharedscripts 
rotate 2 
compress 
delaycompress 
postrotate 
/bin/kill -HUP `cat /var/run/sssd.pid 2&gt;/dev/null` 2&gt; /dev/null || true 
endscript 
}

drwxrwx--- 2 root _sssd 4096 авг 20 03:03 /var/log/sssd/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>169272</commentid>
    <comment_count>1</comment_count>
    <who name="Vitaly Lipatov">lav</who>
    <bug_when>2018-02-26 21:02:00 +0300</bug_when>
    <thetext>А логи так и не ротируются.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>169276</commentid>
    <comment_count>2</comment_count>
    <who name="Evgeny Sinelnikov">sin</who>
    <bug_when>2018-02-26 22:21:57 +0300</bug_when>
    <thetext>(In reply to comment #1)
&gt; А логи так и не ротируются.

По той же причине? Вроде бы исправлено. Сценарий для воспроизведения?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>169299</commentid>
    <comment_count>3</comment_count>
    <who name="Vitaly Lipatov">lav</who>
    <bug_when>2018-02-27 14:58:06 +0300</bug_when>
    <thetext>(В ответ на комментарий №2)
&gt; (In reply to comment #1)
&gt; &gt; А логи так и не ротируются.
&gt; 
&gt; По той же причине? Вроде бы исправлено. Сценарий для воспроизведения?
Если было бы исправлено, эта бага бы сама закрылась, потому что в changelog пакета была бы запись об исправлении со ссылкой на багу вида (ALT bug 34335).

А сценарий, видимо, такой:
# grep su /etc/logrotate.d/sssd 
#

# rpm -qf /etc/logrotate.d/sssd
sssd-1.15.3-alt5.S1.x86_64</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>169313</commentid>
    <comment_count>4</comment_count>
    <who name="Evgeny Sinelnikov">sin</who>
    <bug_when>2018-02-28 11:35:03 +0300</bug_when>
    <thetext>Да, сборка где-то застряла:

commit b0bfdaf136ce31c84a88cbd0f59dfc0bf7817d32
Author: Evgeny Sinelnikov &lt;sin@altlinux.org&gt;
Date:   Fri Dec 22 07:02:03 2017 +0400

    1.15.3-alt5%ubt.3
    
    - Fix logrotate insecure parent directory permissions (closes: 34335)
    - Fix trouble with incomplete group object found during initgroups</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>169334</commentid>
    <comment_count>5</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2018-03-01 12:54:04 +0300</bug_when>
    <thetext>sssd-1.15.3-alt5.M80P.1.3 -&gt; p8:

Fri Dec 22 2017 Evgeny Sinelnikov &lt;sin@altlinux&gt; 1.15.3-alt5.M80P.1.3
- Fix logrotate insecure parent directory permissions (closes: 34335)
- Fix trouble with incomplete group object found during initgroups

Thu Nov 23 2017 Evgeny Sinelnikov &lt;sin@altlinux&gt; 1.15.3-alt5.M80P.1.2
- Backport sssd to legacy stable branches
- Fix trouble with ubt macros id on branch c8</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>