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

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

    <bug>
          <bug_id>32075</bug_id>
          
          <creation_ts>2016-05-07 08:50:16 +0300</creation_ts>
          <short_desc>Отказ в авторизации при монтировании fs системных устройств не прописанных в /etc/fstab</short_desc>
          <delta_ts>2016-05-12 13:24: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>xfce4-full</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="Speccyfighter">zxwarior</reporter>
          <assigned_to name="Mikhail Efremov">sem</assigned_to>
          <cc>antohami</cc>
    
    <cc>cas</cc>
    
    <cc>mike</cc>
    
    <cc>sem</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>156591</commentid>
    <comment_count>0</comment_count>
    <who name="Speccyfighter">zxwarior</who>
    <bug_when>2016-05-07 08:50:16 +0300</bug_when>
    <thetext>Сабж.

https://forum.altlinux.org/index.php?topic=36739.msg285632#msg285632

http://nightly.altlinux.org/p8/release/basealt-p8-xfce-20160429-i586.iso
Загрузка:
live-режим с кардридера

Не отрабатывает экшн:

$ grep -rHi mount-system /usr/share/polkit-1/actions/
/usr/share/polkit-1/actions/org.freedesktop.udisks2.policy:  &lt;action id=&quot;org.freedesktop.udisks2.filesystem-mount-system&quot;&gt;

Отказ в авторизации при монтировании файловых систем системных устройств не прописанных в /etc/fstab:

$ udisksctl info -b /dev/sda1|grep &apos; Device:\|Drive\|IdType\|HintSystem&apos;|grep -v Crypt
    Device:                     /dev/sda1
    Drive:                      &apos;/org/freedesktop/UDisks2/drives/IC25N080ATMR04_0_MRA401K6KLRT0H&apos;
    HintSystem:                 true
    IdType:                     ext4

Лечится хаком:

# touch /etc/polkit-1/rules.d/60-systemd-mount-system.rules
# mcedit /etc/polkit-1/rules.d/60-systemd-mount-system.rules

# cat /etc/polkit-1/rules.d/60-systemd-mount-system.rules
polkit.addRule(function(action, subject) {
    if ( action.id == &quot;org.freedesktop.udisks2.filesystem-mount-system&quot; &amp;&amp; subject.isInGroup(&quot;xgrp&quot;)   )
    {
    return polkit.Result.YES;
    }
});</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>156598</commentid>
    <comment_count>1</comment_count>
    <who name="Антон Мидюков">antohami</who>
    <bug_when>2016-05-07 10:38:44 +0300</bug_when>
    <thetext>А агент авторизации polkit установлен? Если нет, установите mate-polkit.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>156622</commentid>
    <comment_count>2</comment_count>
    <who name="Speccyfighter">zxwarior</who>
    <bug_when>2016-05-08 00:00:03 +0300</bug_when>
    <thetext>(В ответ на комментарий №1)
&gt; А агент авторизации polkit установлен?

А как же.
Не отрабатывает только это правило:
Монтирование файловых системных устройств не прописанных в /etc/fstab.
Флэшки монтируются и отмонтируются.

&gt; Если нет, установите mate-polkit.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>156628</commentid>
    <comment_count>3</comment_count>
    <who name="Антон Мидюков">antohami</who>
    <bug_when>2016-05-08 13:58:48 +0300</bug_when>
    <thetext>(In reply to comment #2)
&gt; (В ответ на комментарий №1)
&gt; &gt; А агент авторизации polkit установлен?
&gt; 
&gt; А как же.
&gt; Не отрабатывает только это правило:
&gt; Монтирование файловых системных устройств не прописанных в /etc/fstab.
&gt; Флэшки монтируются и отмонтируются.

Вы меня не поняли. Под агентом я понимаю графическую утилиту, которая спрашивает пароль пользователя. Это правило предполагет вызов агента polkit, который спрашивает пароль. А так как утилиты этой нет, то ничего и не отрабатывает.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>156629</commentid>
    <comment_count>4</comment_count>
    <who name="Антон Мидюков">antohami</who>
    <bug_when>2016-05-08 14:28:25 +0300</bug_when>
    <thetext>Проверил. Действительно в сборке стартеркита с xfce отсутствует агент аутентификации polkit.

В репозитории p8 есть пакет xfce-polkit. Поэтому предлагаю включить xfce-polkit в зависимости xfce4-full, который уже входит в состав стартеркита. Соответственно баг перевешиваю на xfce4-full сразу на Сизиф.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>156631</commentid>
    <comment_count>5</comment_count>
    <who name="Антон Мидюков">antohami</who>
    <bug_when>2016-05-08 14:32:17 +0300</bug_when>
    <thetext>*** Bug 32076 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>156752</commentid>
    <comment_count>6</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2016-05-12 04:14:28 +0300</bug_when>
    <thetext>xfce4-4.12-alt4 -&gt; sisyphus:

* Wed May 11 2016 Mikhail Efremov &lt;sem@altlinux&gt; 4.12-alt4
- default: Add gnome-icon-theme (closes: #32003).
- full: Add xfce-polkit (closes: #32075).</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>