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

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

    <bug>
          <bug_id>35302</bug_id>
          
          <creation_ts>2018-08-29 04:02:49 +0300</creation_ts>
          <short_desc>Пользовательская прога (e4crypt) заинсталена в /sbin</short_desc>
          <delta_ts>2026-09-12 19:00:08 +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>e2fsprogs</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Vitaly Chikunov">vt</reporter>
          <assigned_to name="Gleb F-Malinovskiy">glebfm</assigned_to>
          <cc>glebfm</cc>
    
    <cc>ldv</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>173661</commentid>
    <comment_count>0</comment_count>
    <who name="Vitaly Chikunov">vt</who>
    <bug_when>2018-08-29 04:02:49 +0300</bug_when>
    <thetext>e4crypt заинсталена в /sbin, хотя может использоваться из под юзера.

  depo:~$ rpm -q e2fsprogs -l | grep bin/e4crypt
  /sbin/e4crypt

  depo:~$ /sbin/e4crypt add_key
  Enter passphrase (echo disabled):
  Added key with descriptor [51b28406f857c1cb]

  depo:~$ keyctl show
  Session Keyring
     8692647 --alswrv      0     0  keyring: _ses
    98625205 ----s-rv      0     0   \_ user: invocation_id
   510621636 --alsw-v    500   500   \_ logon: ext4:51b28406f857c1cb

  depo:~$ /sbin/e4crypt set_policy 51b28406f857c1cb t
  Key with descriptor [51b28406f857c1cb] applied to t.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>298298</commentid>
    <comment_count>1</comment_count>
    <who name="Anton Farygin">rider</who>
    <bug_when>2026-09-12 19:00:08 +0300</bug_when>
    <thetext>Состояние прежнее: e2fsprogs 1.47.4.0.2.a9f48-alt1, rpm -ql e2fsprogs | grep e4crypt → /sbin/e4crypt (с usrmerge /sbin → usr/sbin; в /usr/bin файла нет). У непривилегированного пользователя в контейнере Sisyphus PATH=/home/u1/bin:/usr/bin:/bin:/usr/local/bin:/usr/games, type e4crypt → not found.

Причина в e2fsprogs.spec:239 --sbindir=/sbin, но и апстрим кладёт e4crypt в sbindir: misc/Makefile.in:41-42 (USPROGS = … $(E4CRYPT_PROG)), man-страница в секции 8. То есть это не ошибка сборки, а пожелание отойти от апстримной раскладки; решение за сопровождающим (симлинк в %_bindir или перенос). Для пользовательской работы с шифрованием в Sisyphus есть fscrypt и fscryptctl, которые лежат в /usr/bin.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>