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

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

    <bug>
          <bug_id>29425</bug_id>
          
          <creation_ts>2013-10-03 19:17:29 +0400</creation_ts>
          <short_desc>и опять права на устройства</short_desc>
          <delta_ts>2014-01-05 17:34:40 +0400</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>sane</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="Michael Shigorin">mike</reporter>
          <assigned_to name="Vitaly Lipatov">lav</assigned_to>
          <cc>cas</cc>
    
    <cc>lav</cc>
    
    <cc>led</cc>
    
    <cc>mike</cc>
    
    <cc>nickel</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>142963</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Shigorin">mike</who>
    <bug_when>2013-10-03 19:17:29 +0400</bug_when>
    <thetext>Как уже обсуждалось в bug #9638 и в рассылках, есть проблемы с правами на файлы устройств, наблюдаю на sane-1.0.24-alt1, udev-208-alt1 и Canon LiDE 25.

Вот проверенный патчик:

--- /etc/udev/rules.d/25-libsane.rules~ 2013-10-02 23:54:17.000000000 +0400
+++ /etc/udev/rules.d/25-libsane.rules  2013-10-03 18:56:03.887212677 +0400
@@ -1981,6 +1981,6 @@
 KERNEL==&quot;sg[0-9]*&quot;, ATTRS{type}==&quot;3&quot;, ATTRS{vendor}==&quot;HP&quot;, ATTRS{model}==&quot;C7670A&quot;, MODE=&quot;0664&quot;, ENV{libsane_matched}=&quot;yes&quot;
 LABEL=&quot;libsane_scsi_rules_end&quot;
 
-ENV{libsane_matched}==&quot;yes&quot;, MODE=&quot;664&quot;
+ENV{libsane_matched}==&quot;yes&quot;, MODE=&quot;664&quot;, GROUP=&quot;scanner&quot;
 
 LABEL=&quot;libsane_rules_end&quot;

По-хорошему, касается и сборки в p7/branch.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>142971</commentid>
    <comment_count>1</comment_count>
    <who name="Vitaly Lipatov">lav</who>
    <bug_when>2013-10-04 13:53:30 +0400</bug_when>
    <thetext>По результатам bug #21808 почему-то был приложен патч к sane, удаляющий GROUP. Убрал исправление, теперь GROUP будет. Отправляю 1.0.24-alt2.
В p7 надо будет портировать после подтверждения снятия проблемы.
Я понял, откуда проблема. У меня сканер через saned работает, который запускается под рутом.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>142973</commentid>
    <comment_count>2</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2013-10-04 15:47:14 +0400</bug_when>
    <thetext>sane-1.0.24-alt2 -&gt; sisyphus:

* Fri Oct 04 2013 Vitaly Lipatov &lt;lav@altlinux&gt; 1.0.24-alt2
- return GROUP=scanner (ALT bug #29425)
- remove obsoleted patches
- add user _saned and run saned under _saned:scanner</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>142974</commentid>
    <comment_count>3</comment_count>
    <who name="Andrey Cherepanov">cas</who>
    <bug_when>2013-10-04 15:59:36 +0400</bug_when>
    <thetext>(В ответ на комментарий №1)
&gt; По результатам bug #21808 почему-то был приложен патч к sane, удаляющий GROUP.
Потому что авторизация велась через PolicyKit (а ныне вообще logind) для любых пользователей с активными сеансами. Причём через attr. Как теперь ты будешь печатать на МФУ с таким sane - пока не знаю, хватит ли прав.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>142975</commentid>
    <comment_count>4</comment_count>
    <who name="Vitaly Lipatov">lav</who>
    <bug_when>2013-10-04 16:31:46 +0400</bug_when>
    <thetext>(В ответ на комментарий №3)
&gt; (В ответ на комментарий №1)
&gt; &gt; По результатам bug #21808 почему-то был приложен патч к sane, удаляющий GROUP.
&gt; Потому что авторизация велась через PolicyKit (а ныне вообще logind) для любых
Не знаю ни первого, ни второго.

&gt; пользователей с активными сеансами. Причём через attr. Как теперь ты будешь
Подход с группами всегда был более привычен.

&gt; печатать на МФУ с таким sane - пока не знаю, хватит ли прав.
Печатать, видимо, будет сложновато :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>142976</commentid>
    <comment_count>5</comment_count>
    <who name="Andrey Cherepanov">cas</who>
    <bug_when>2013-10-04 17:27:42 +0400</bug_when>
    <thetext>(В ответ на комментарий №4)
&gt; &gt; пользователей с активными сеансами. Причём через attr. Как теперь ты будешь
&gt; Подход с группами всегда был более привычен.
Ага. До тех пор, пока понадобиться для устройства назначить более одной группы. Ну не зря же так сделали!
 
&gt; &gt; печатать на МФУ с таким sane - пока не знаю, хватит ли прав.
&gt; Печатать, видимо, будет сложновато :)
Поэтому нужно проверять. Переоткрываю баг.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>142980</commentid>
    <comment_count>6</comment_count>
    <who name="Michael Shigorin">mike</who>
    <bug_when>2013-10-04 18:38:09 +0400</bug_when>
    <thetext>(В ответ на комментарий №5)
&gt; &gt; &gt; пользователей с активными сеансами. Причём через attr.
&gt; &gt; Подход с группами всегда был более привычен.
&gt; Ага. До тех пор, пока понадобиться для устройства назначить более одной группы.
&gt; Ну не зря же так сделали!
А группа мешала?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>142982</commentid>
    <comment_count>7</comment_count>
    <who name="Andrey Cherepanov">cas</who>
    <bug_when>2013-10-04 19:13:43 +0400</bug_when>
    <thetext>(В ответ на комментарий №6)
&gt; А группа мешала?
Сам подумай почему.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>143001</commentid>
    <comment_count>8</comment_count>
    <who name="Vitaly Lipatov">lav</who>
    <bug_when>2013-10-06 20:42:56 +0400</bug_when>
    <thetext>(В ответ на комментарий №5)
...
&gt; Поэтому нужно проверять. Переоткрываю баг.
Только надо перевесить на того, кто будет это делать.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>144454</commentid>
    <comment_count>9</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2014-01-05 17:34:40 +0400</bug_when>
    <thetext>sane-1.0.24-alt2.2 -&gt; p7:

* Sun Jan 05 2014 Andrey Cherepanov &lt;cas@altlinux&gt; 1.0.24-alt2.2
- Add all provides for sane-backends-* for Red Hat compatibility

* Sat Jan 04 2014 Andrey Cherepanov &lt;cas@altlinux&gt; 1.0.24-alt2.1
- Add sane-backends-devel provides for Red Hat compatibility

* Fri Oct 04 2013 Vitaly Lipatov &lt;lav@altlinux&gt; 1.0.24-alt2
- return GROUP=scanner (ALT bug #29425)
- remove obsoleted patches
- add user _saned and run saned under _saned:scanner</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>