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

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

    <bug>
          <bug_id>33393</bug_id>
          
          <creation_ts>2017-04-19 12:25:31 +0300</creation_ts>
          <short_desc>/etc/init.d/udevd неправильно обрабатывает наличие /dev/pts и /dev/shm</short_desc>
          <delta_ts>2018-06-07 21:02:02 +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>udev</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc>https://bugzilla.altlinux.org/show_bug.cgi?id=32068#c13</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="Alexey Gladkov">legion</reporter>
          <assigned_to name="Alexey Shabalin">shaba</assigned_to>
          <cc>arseny</cc>
    
    <cc>lav</cc>
    
    <cc>shaba</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>163336</commentid>
    <comment_count>0</comment_count>
    <who name="Alexey Gladkov">legion</who>
    <bug_when>2017-04-19 12:25:31 +0300</bug_when>
    <thetext>В системах с SysV используется сервис /etc/init.d/udevd для старта udev. В инит скрипте есть код для монтирования /dev/pts и /dev/shm, но если они уже смонтированы, то скрипт пытается переместить их в /dev [1][2].

Проблема в том, что в скрипте отсутствует проверка на то, что мы перемещаем и место назначения это одно и тоже. Более того, код ищет &quot;$udev_root/pts&quot; в /proc/mounts и если находит, то пытается перенести pts в &quot;$udev_root/pts&quot; т.е. мы уже знаем, что &quot;$udev_root/pts&quot; уже смонтирован.

В тоже время в этом месте отсутствует проверка на то, что в &quot;$udev_root/pts&quot; смонтировано действительно devpts.

[1] http://git.altlinux.org/gears/s/systemd.git?p=systemd.git;a=blob;f=udevd.init;h=d42717a435c2400e24462a2c0b0ce6beca4c20cb;hb=f7c4653220e7b262687f4133c47c8768e27c78b3#l82
[2] http://git.altlinux.org/gears/s/systemd.git?p=systemd.git;a=blob;f=udevd.init;h=d42717a435c2400e24462a2c0b0ce6beca4c20cb;hb=f7c4653220e7b262687f4133c47c8768e27c78b3#l100</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>163435</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Shabalin">shaba</who>
    <bug_when>2017-04-24 16:06:02 +0300</bug_when>
    <thetext>А можно с патчи с фиксами?
PS: sysV у меня уже нигде нет.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>