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

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

    <bug>
          <bug_id>33551</bug_id>
          
          <creation_ts>2017-06-15 12:34:20 +0300</creation_ts>
          <short_desc>Init script starts searchd under root user</short_desc>
          <delta_ts>2017-06-16 09:43:37 +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>sphinx</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></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Nikolay A. Fetisov">naf</reporter>
          <assigned_to name="serjigva@altlinux.org">serjigva</assigned_to>
          <cc>serjigva</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>164131</commentid>
    <comment_count>0</comment_count>
      <attachid>7109</attachid>
    <who name="Nikolay A. Fetisov">naf</who>
    <bug_when>2017-06-15 12:34:20 +0300</bug_when>
    <thetext>Created attachment 7109
Fix init script to run searchd under _sphinx user

Для sphinx-2.2.11 init-script запускает searchd от root&apos;а - 
хотя предполагается использование учётной записи _sphinx.

Сам searchd понижать привилегии не умеет, а stop/status в init-скрипте,
как и работа indexer&apos;а, предполает работу searchd под _sphinx.

Патч приложен.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>164135</commentid>
    <comment_count>1</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2017-06-15 14:52:11 +0300</bug_when>
    <thetext>sphinx-2.2.11-alt3.S1 -&gt; sisyphus:

Thu Jun 15 2017 Anton Farygin &lt;rider@altlinux.ru&gt; 2.2.11-alt3.S1
- fix for searchd process uid (closes: #33551)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>164146</commentid>
    <comment_count>2</comment_count>
    <who name="Nikolay A. Fetisov">naf</who>
    <bug_when>2017-06-16 09:00:39 +0300</bug_when>
    <thetext>Правка в 7.1.6-alt2 решает вопрос с запуском searchd от пользователя,
но теперь searchd не может создать PID-file в /var/run по очевидным причинам.

В патче также правился PIDFILE на /var/run/sphinx - этот каталог уже есть
в пакете, и с возможностью записи туда от _sphinx. 

Т.е., теперь searchd запускается от _sphinx, но
service searchd status,  service searchd stop и пр. не рабочие.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>164147</commentid>
    <comment_count>3</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2017-06-16 09:43:37 +0300</bug_when>
    <thetext>sphinx-2.2.11-alt4.S1 -&gt; sisyphus:

Fri Jun 16 2017 Anton Farygin &lt;rider@altlinux.ru&gt; 2.2.11-alt4.S1
- pidfile location fixed (closes: #33551)</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>7109</attachid>
            <date>2017-06-15 12:34:20 +0300</date>
            <delta_ts>2017-06-15 12:34:20 +0300</delta_ts>
            <desc>Fix init script to run searchd under _sphinx user</desc>
            <filename>sphinx-2.2.11-init.patch</filename>
            <type>text/plain</type>
            <size>532</size>
            <attacher name="Nikolay A. Fetisov">naf</attacher>
            
              <data encoding="base64">LS0tIC4vc3BoaW54LmluaXQKKysrIC4vc3BoaW54LmluaXQKQEAgLTE1LDEzICsxNSwxMyBAQCBX
SVRIT1VUX1JDX0NPTVBBVD0xCiAjIFNvdXJjZSBmdW5jdGlvbiBsaWJyYXJ5LgogLiAvZXRjL2lu
aXQuZC9mdW5jdGlvbnMKCi1QSURGSUxFPS92YXIvcnVuL3NlYXJjaGQucGlkCitQSURGSUxFPS92
YXIvcnVuL3NwaGlueC9zZWFyY2hkLnBpZAogTE9DS0ZJTEU9L3Zhci9sb2NrL3N1YnN5cy9zZWFy
Y2hkCiBSRVRWQUw9MAoKIHN0YXJ0KCkKIHsKLSAgICAgICBzdGFydF9kYWVtb24gLS1waWRmaWxl
ICIkUElERklMRSIgLS1sb2NrZmlsZSAiJExPQ0tGSUxFIiAtLWV4cGVjdC11c2VyIF9zcGhpbngg
LS0gL3Vzci9iaW4vc2VhcmNoZAorICAgICAgIHN0YXJ0X2RhZW1vbiAtLXBpZGZpbGUgIiRQSURG
SUxFIiAtLWxvY2tmaWxlICIkTE9DS0ZJTEUiIC0tZXhwZWN0LXVzZXIgX3NwaGlueCAtLXNldC11
c2VyIF9zcGhpbnggLS0gL3Vzci9iaW4vc2VhcmNoZAogICAgICAgIFJFVFZBTD0kPwogICAgICAg
IHJldHVybiAkUkVUVkFMCiB9Cg==
</data>

          </attachment>
      

    </bug>

</bugzilla>