<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>16379</bug_id>
          
          <creation_ts>2026-07-29 14:38:17 +0000</creation_ts>
          <short_desc>Wrapper for open_tree missing</short_desc>
          <delta_ts>2026-10-22 15:22:49 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>6</classification_id>
          <classification>Yocto Project Subprojects</classification>
          <product>Pseudo</product>
          <component>pseudo</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>6.1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Richard Purdie">richard.purdie</reporter>
          <assigned_to name="Dmitry Sakhonchik">frezidok1</assigned_to>
          <cc>frezidok1</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>yp.pseudo.watcher</cc>
    
    <cc>yp.watcher</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>106365</commentid>
    <comment_count>0</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2026-07-29 14:38:17 +0000</bug_when>
    <thetext>Pseudo has no wrapper for open_tree (https://man7.org/linux/man-pages/man2/open_tree.2.html) and should have since it opens an fd.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>106367</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2026-07-29 14:49:23 +0000</bug_when>
    <thetext>There is also open_tree_attr we need to add too. For the version which doesn&apos;t behave like openat, you need CAP_SYS_ADMIN so in most of our use cases, it would never success so is less likely to get called in the first place.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>106724</commentid>
    <comment_count>2</comment_count>
    <who name="Dmitry Sakhonchik">frezidok1</who>
    <bug_when>2026-09-04 07:57:49 +0000</bug_when>
    <thetext>Do we need syscall implementation for this as well? 

glibc&apos;s open_tree() appeared only in glibc 2.36, while kernel supports it from 5.2, so syscall(SYS_open_tree) may be common use case.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>106733</commentid>
    <comment_count>3</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2026-09-04 16:42:14 +0000</bug_when>
    <thetext>I was just looking at your patches, thanks! I think unless we find such usage in the wild, we probably don&apos;t need to do that.

The key thing is to make sure at least glibc is wrapped as hopefully most users would use that first over direct syscalls.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>106736</commentid>
    <comment_count>4</comment_count>
    <who name="Dmitry Sakhonchik">frezidok1</who>
    <bug_when>2026-09-04 16:53:32 +0000</bug_when>
    <thetext>I was investigating the open_tree_attr thing and found out that add syscall coverage is easier than I expected, so I did it too. It helped me to find some drawbacks in my first implementation, so I think it won’t hurt.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>107169</commentid>
    <comment_count>5</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2026-10-22 15:22:49 +0000</bug_when>
    <thetext>Thanks, Dmitry, sorry about the delays but we got there!

https://git.yoctoproject.org/pseudo/commit/?id=609e59be33bcc1d614f1347514a9ea4042b56f20</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>