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

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

    <bug>
          <bug_id>41205</bug_id>
          
          <creation_ts>2021-10-24 23:52:04 +0300</creation_ts>
          <short_desc>Harden permissions for weston-launch</short_desc>
          <delta_ts>2021-10-31 08:47: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>weston</component>
          <version>unstable</version>
          <rep_platform>x86_64</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>P5</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Vladimir D. Seleznev">vseleznv</reporter>
          <assigned_to name="Yuri N. Sedunov">aris</assigned_to>
          <cc>aris</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>204099</commentid>
    <comment_count>0</comment_count>
    <who name="Vladimir D. Seleznev">vseleznv</who>
    <bug_when>2021-10-24 23:52:04 +0300</bug_when>
    <thetext>Сейчас права на weston-launch установлены в 6711/-rws--s--x. При этом weston-launch нужен для того, чтобы мочь запустить сам weston в случае отсутствия logind.

Т.к. weston-launch в любом случае проверяет, что запустивший исполняемый файл пользователь входит в группу weston-launch, то я предлагаю при установке пакета создавать системную группу с таким именем, а права на запуск исполняемого файла выставить в 6710/-rws--s---.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>204100</commentid>
    <comment_count>1</comment_count>
    <who name="Yuri N. Sedunov">aris</who>
    <bug_when>2021-10-25 01:20:51 +0300</bug_when>
    <thetext>Нужен ли кому weston на системах без logind?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>204101</commentid>
    <comment_count>2</comment_count>
    <who name="Vladimir D. Seleznev">vseleznv</who>
    <bug_when>2021-10-25 01:28:55 +0300</bug_when>
    <thetext>(In reply to Yuri N. Sedunov from comment #1)
&gt; Нужен ли кому weston на системах без logind?

Ну вот я один из пользователей.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>204102</commentid>
    <comment_count>3</comment_count>
    <who name="Yuri N. Sedunov">aris</who>
    <bug_when>2021-10-25 01:44:53 +0300</bug_when>
    <thetext>Не хотите ли доверить членам группы xgrp запуск weston на таких системах?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>204103</commentid>
    <comment_count>4</comment_count>
    <who name="Vladimir D. Seleznev">vseleznv</who>
    <bug_when>2021-10-25 01:52:44 +0300</bug_when>
    <thetext>(In reply to Yuri N. Sedunov from comment #3)
&gt; Не хотите ли доверить членам группы xgrp запуск weston на таких системах?

Это был бы отличный вариант, но тогда придётся запатчить weston-launch:

https://github.com/wayland-project/weston/blob/58dba727c910665c7d4891b8b991226e4d3b28f2/libweston/weston-launch.c#L165</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>204104</commentid>
    <comment_count>5</comment_count>
    <who name="Yuri N. Sedunov">aris</who>
    <bug_when>2021-10-25 02:05:07 +0300</bug_when>
    <thetext>Бинго! Предлагаю вам сделать такой патч для weston, чтобы можно было задавать группу в meson_options.txt. Со своей стороны обязуюсь одобрить задание в сизиф прежде, чем ваш патч примет апстрим.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>204275</commentid>
    <comment_count>6</comment_count>
    <who name="Vladimir D. Seleznev">vseleznv</who>
    <bug_when>2021-10-31 06:41:23 +0300</bug_when>
    <thetext>(In reply to Yuri N. Sedunov from comment #5)
&gt; Бинго! Предлагаю вам сделать такой патч для weston, чтобы можно было
&gt; задавать группу в meson_options.txt. Со своей стороны обязуюсь одобрить
&gt; задание в сизиф прежде, чем ваш патч примет апстрим.

https://gitlab.freedesktop.org/wayland/weston/-/merge_requests/718</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>204276</commentid>
    <comment_count>7</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2021-10-31 08:47:37 +0300</bug_when>
    <thetext>weston-9.0.0-alt1.2 -&gt; sisyphus:

 Sun Oct 31 2021 Vladimir D. Seleznev &lt;vseleznv@altlinux&gt; 9.0.0-alt1.2
 - weston-launch: changed perms mode, subject of xgrp group (closes #41205)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>