<?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>9858</bug_id>
          
          <creation_ts>2016-06-30 15:07:23 +0000</creation_ts>
          <short_desc>Make xattrs in images work [meta]</short_desc>
          <delta_ts>2026-07-23 15:29:42 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>core</component>
          <version>2.1</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard> </status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>6.99</target_milestone>
          <dependson>9229</dependson>
    
    <dependson>9317</dependson>
    
    <dependson>9857</dependson>
    
    <dependson>9859</dependson>
    
    <dependson>9929</dependson>
    
    <dependson>15091</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ross Burton">ross.burton</reporter>
          <assigned_to name="Unassigned">unassigned</assigned_to>
          <cc>liezhi.yang</cc>
    
    <cc>maxin.john</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>p.lobacz</cc>
    
    <cc>patrick.ohly</cc>
    
    <cc>paul</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>sgw</cc>
    
    <cc>yi.zhao</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>63526</commentid>
    <comment_count>0</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2016-06-30 15:07:23 +0000</bug_when>
    <thetext>It should be possible to use fsetattr or setcap inside do_install and end up with a file in an image with the relevant xattrs.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>63530</commentid>
    <comment_count>1</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2016-06-30 15:16:29 +0000</bug_when>
    <thetext>We also need a test to verify that a recipe using setcap or fsetattr in do_install ends up with the right attributes on the target.  Last time I tried this I couldn&apos;t set an xattr on the target, despite using ext4.  Does ext4 disable xattrs if EMBEDDED is enabled?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>63531</commentid>
    <comment_count>2</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2016-06-30 15:18:31 +0000</bug_when>
    <thetext>Note: also check CONFIG_EXT4_FS_POSIX_ACL and CONFIG_EXT4_FS_SECURITY.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64828</commentid>
    <comment_count>3</comment_count>
    <who name="Joshua Lock">joshuagloe</who>
    <bug_when>2016-08-03 12:48:26 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; We also need a test to verify that a recipe using setcap or fsetattr in
&gt; do_install ends up with the right attributes on the target.  Last time I
&gt; tried this I couldn&apos;t set an xattr on the target, despite using ext4.  Does
&gt; ext4 disable xattrs if EMBEDDED is enabled?

Works for me, did you namespace your extended attribute? AIUI an xattr *must* be prefixed with one of the 4 defined namespaces from xattr(7): security, system, trusted or user.

$ setfattr -n user.foo -v bar myfile
$ getfattr -d myfile
# file: myfile
user.foo=&quot;bar&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64841</commentid>
    <comment_count>4</comment_count>
    <who name="Joshua Lock">joshuagloe</who>
    <bug_when>2016-08-03 16:30:23 +0000</bug_when>
    <thetext>It&apos;s trivial to support xattrs up to do_package but preserving those xattr into the rootfs would ideally require support from the package manager, unfortunately neither rpm5[1] or dpkg[] currently provide that support.

The obvious alternative is to set the file attributes in a postinst script but it feels like it could introduce some overhead if we want to support fsetattr in do_install. We&apos;d need to walk the files in the package, dump any xattr and generate a script fragment to replicate detected xattr at postinst.

An alternative (to the alternative) could be to have recipe authors set a variable containing filepath:xattrname:xattrvalue triplets which could be transformed into a postinst, i.e.

XATTR_${PN} = &quot;${datadir}/${PN}/datafile:system.xattrname:xattrvalue \
               ${sysconfdir}/${PN}/conffile:system.xattrname:xattrvalue&quot;

I&apos;ll think about this some more…</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64847</commentid>
    <comment_count>5</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2016-08-03 19:27:34 +0000</bug_when>
    <thetext>&quot;Dude, where&apos;s my footnotes&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64848</commentid>
    <comment_count>6</comment_count>
    <who name="Joshua Lock">joshuagloe</who>
    <bug_when>2016-08-03 19:57:50 +0000</bug_when>
    <thetext>*ahem*

I forgot to include references:

DPKG &amp; xattr:
https://lists.debian.org/debian-dpkg/2014/09/msg00004.html
https://lists.debian.org/debian-dpkg/2014/11/msg00023.html
https://wiki.ubuntu.com/Security/FilesystemCapabilties
https://blueprints.launchpad.net/ubuntu/+spec/security-m-dpkg-fscaps

RPM5 &amp; xattr:
http://rpm5.org/community/rpm-devel/2977.html (yup, 2008)

RPM4&apos;s only mention of xattr is in the IMA plugin, which sets the IMA xattr at postinst:
https://github.com/rpm-software-management/rpm/blob/e9e9b667795b749e63c41f53e55839ee6e8d8bbd/plugins/ima.c#L57</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>65239</commentid>
    <comment_count>7</comment_count>
    <who name="Joshua Lock">joshuagloe</who>
    <bug_when>2016-08-16 19:56:30 +0000</bug_when>
    <thetext>We have a report to the mailing list that an ACL set with facl at postinst is visible on the rootfs from a devshell on the image recipe, but that it isn&apos;t preserved into the image when booted via QEMU:

https://lists.yoctoproject.org/pipermail/yocto/2016-August/031570.html

Obviously we&apos;ll need to root cause that and fix it as part of this issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>66077</commentid>
    <comment_count>8</comment_count>
    <who name="Patrick Ohly">patrick.ohly</who>
    <bug_when>2016-09-13 10:17:36 +0000</bug_when>
    <thetext>I agree that per-file capabilities set during compilation would be useful. I tried to use that at some point and had to resort to a postinst script, which is more cumbersome. OTOH, that&apos;s not very common, so I don&apos;t know how important it really is.

The bigger use of xattrs in Ostro was for security.ima, the xattr storing a hash of the file content. But that already works by setting the xattr in do_image. Adding support for file xattrs in packages won&apos;t be usable for that, because the security.ima xattr also depends on a per-image signing key.

Ostro also used some Smack labels, but not many, so again the approach with postinst scripts wasn&apos;t too cumbersome.

The bigger problem was the lack of proper Smack semantics under pseudo: Smack supports a &quot;transmute&quot; flag which influences the Smack label of files created inside a directory such that they inherit the Smack label of the directory. pseudo can set that flag for a directory (it&apos;s just an xattr), but then new files created in that directory do not inherit the Smack label. meta-intel-iot-security fixes that in a post-processing step.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72865</commentid>
    <comment_count>9</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2017-04-26 16:21:22 +0000</bug_when>
    <thetext>I think we need to bump the priority of this bug to medium+, and rescope it slightly.

It&apos;s not going to be possible to fix all the package managers (dpkg, opkg, and rpm4) to support xattrs directly.  But we can have a class that will write a postinst snippet that runs setcap for you, so the recipe just has to inherit the class and set a variable.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88800</commentid>
    <comment_count>10</comment_count>
    <who name="Paul Barker">paul</who>
    <bug_when>2020-12-21 14:43:03 +0000</bug_when>
    <thetext>Accidentally assigned the wrong bug to myself due to bugzilla&apos;s stupid interface.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>95266</commentid>
    <comment_count>11</comment_count>
    <who name="Piotr Łobacz">p.lobacz</who>
    <bug_when>2023-04-01 20:07:59 +0000</bug_when>
    <thetext>Actually this can be handled with opkg and ipk packages as Stefan has added support for xattr to libarchive in this https://github.com/libarchive/libarchive/pull/691 pull request.

Question is, does we only need to add these options &quot;--xattrs --acls&quot; to opkg-build? Because, from what I have seen, this script is set in OPKGBUILDCMD.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>95268</commentid>
    <comment_count>12</comment_count>
    <who name="Piotr Łobacz">p.lobacz</who>
    <bug_when>2023-04-02 10:42:39 +0000</bug_when>
    <thetext>OK it is enough just to set this in this opkg-build script but afterwards I&apos;m trying to call setfacl in do_install and I do not see that the file has changed its acls...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>95269</commentid>
    <comment_count>13</comment_count>
    <who name="Piotr Łobacz">p.lobacz</who>
    <bug_when>2023-04-02 11:21:01 +0000</bug_when>
    <thetext>(In reply to Piotr Łobacz from comment #12)
&gt; OK it is enough just to set this in this opkg-build script but afterwards
&gt; I&apos;m trying to call setfacl in do_install and I do not see that the file has
&gt; changed its acls...

OK I have added a test command getfacl after setfacl in do_install and verified that it actually sets the proper acls, which can be verified reading the log.do_install log:

DEBUG: Executing python function extend_recipe_sysroot
NOTE: Direct dependencies are [&apos;/work/build/yocto/meta-iotedge/recipes-core/aziotd/aziotd_1.4.3.bb:do_populate_sysroot&apos;, &apos;/work/build/yocto/meta-rust/recipes-devtools/rust/libstd-rs_1.66.0.bb:do_populate_sysroot&apos;, &apos;/work/build/yocto/meta-rust/recipes-devtools/rust/rust-cross_1.66.0.bb:do_populate_sysroot&apos;, &apos;/work/build/yocto/meta-virtualization/recipes-containers/docker/docker-moby_git.bb:do_populate_sysroot&apos;, &apos;/work/build/yocto/openembedded-core/meta/recipes-connectivity/openssl/openssl_3.0.7.bb:do_populate_sysroot&apos;, &apos;/work/build/yocto/openembedded-core/meta/recipes-core/base-files/base-files_3.0.14.bb:do_populate_sysroot&apos;, &apos;/work/build/yocto/openembedded-core/meta/recipes-core/base-passwd/base-passwd_3.5.29.bb:do_populate_sysroot&apos;, &apos;/work/build/yocto/openembedded-core/meta/recipes-core/glibc/glibc_2.35.bb:do_populate_sysroot&apos;, &apos;/work/build/yocto/openembedded-core/meta/recipes-devtools/gcc/gcc-cross_11.3.bb:do_populate_sysroot&apos;, &apos;/work/build/yocto/openembedded-core/meta/recipes-devtools/gcc/gcc-runtime_11.3.bb:do_populate_sysroot&apos;, &apos;/work/build/yocto/openembedded-core/meta/recipes-devtools/quilt/quilt-native_0.67.bb:do_populate_sysroot&apos;, &apos;/work/build/yocto/openembedded-core/meta/recipes-extended/shadow/shadow-sysroot_4.6.bb:do_populate_sysroot&apos;, &apos;/work/build/yocto/openembedded-core/meta/recipes-extended/shadow/shadow_4.11.1.bb:do_populate_sysroot&apos;, &apos;virtual:native:/work/build/yocto/meta-rust/recipes-devtools/cargo/cargo_1.66.0.bb:do_populate_sysroot&apos;, &apos;virtual:native:/work/build/yocto/openembedded-core/meta/recipes-devtools/patch/patch_2.7.6.bb:do_populate_sysroot&apos;, &apos;virtual:native:/work/build/yocto/openembedded-core/meta/recipes-devtools/pseudo/pseudo_git.bb:do_populate_sysroot&apos;, &apos;virtual:native:/work/build/yocto/openembedded-core/meta/recipes-devtools/python/python3_3.10.9.bb:do_populate_sysroot&apos;, &apos;virtual:native:/work/build/yocto/openembedded-core/meta/recipes-extended/shadow/shadow_4.11.1.bb:do_populate_sysroot&apos;, &apos;virtual:native:/work/build/yocto/openembedded-core/meta/recipes-support/attr/acl_2.3.1.bb:do_populate_sysroot&apos;]
NOTE: Installed into sysroot: []
NOTE: Skipping as already exists in sysroot: [&apos;aziotd&apos;, &apos;libstd-rs&apos;, &apos;rust-cross-core2-64-glibc&apos;, &apos;docker-moby&apos;, &apos;openssl&apos;, &apos;base-files&apos;, &apos;base-passwd&apos;, &apos;glibc&apos;, &apos;gcc-cross-x86_64&apos;, &apos;gcc-runtime&apos;, &apos;quilt-native&apos;, &apos;shadow-sysroot&apos;, &apos;shadow&apos;, &apos;cargo-native&apos;, &apos;patch-native&apos;, &apos;pseudo-native&apos;, &apos;python3-native&apos;, &apos;shadow-native&apos;, &apos;acl-native&apos;, &apos;opkg-utils&apos;, &apos;libtool-native&apos;, &apos;attr-native&apos;, &apos;linux-libc-headers&apos;, &apos;zlib-native&apos;, &apos;texinfo-dummy-native&apos;, &apos;xz-native&apos;, &apos;mpfr-native&apos;, &apos;gnu-config-native&apos;, &apos;flex-native&apos;, &apos;zstd-native&apos;, &apos;binutils-cross-x86_64&apos;, &apos;libmpc-native&apos;, &apos;gmp-native&apos;, &apos;libffi-native&apos;, &apos;readline-native&apos;, &apos;sqlite3-native&apos;, &apos;gdbm-native&apos;, &apos;util-linux-libuuid-native&apos;, &apos;bzip2-native&apos;, &apos;ncurses-native&apos;, &apos;libnsl2-native&apos;, &apos;openssl-native&apos;, &apos;libtirpc-native&apos;, &apos;gettext-minimal-native&apos;, &apos;libpam&apos;, &apos;libxcrypt&apos;, &apos;attr&apos;, &apos;libssh2-native&apos;, &apos;curl-native&apos;, &apos;ca-certificates-native&apos;, &apos;rust-native&apos;, &apos;aziot-keys&apos;, &apos;tpm2-abrmd&apos;, &apos;libgcc&apos;, &apos;tpm2-tss&apos;, &apos;rust-llvm-native&apos;, &apos;go-pty&apos;, &apos;go-patricia&apos;, &apos;go-logrus&apos;, &apos;go-runtime&apos;, &apos;libtool&apos;, &apos;lvm2&apos;, &apos;go-capability&apos;, &apos;go-systemd&apos;, &apos;go-cli&apos;, &apos;go-context&apos;, &apos;go-mux&apos;, &apos;compose-file&apos;, &apos;btrfs-tools&apos;, &apos;grpc-go&apos;, &apos;go-distribution&apos;, &apos;go-fsnotify&apos;, &apos;go-connections&apos;, &apos;go-dbus&apos;, &apos;libseccomp&apos;, &apos;sqlite3&apos;, &apos;acl&apos;, &apos;notary&apos;, &apos;m4-native&apos;, &apos;perl-native&apos;, &apos;cracklib&apos;, &apos;flex&apos;, &apos;dbus&apos;, &apos;autoconf-archive&apos;, &apos;glib-2.0&apos;, &apos;libgcrypt&apos;, &apos;json-c&apos;, &apos;curl&apos;, &apos;cmake-native&apos;, &apos;libaio&apos;, &apos;util-linux&apos;, &apos;systemd&apos;, &apos;python3&apos;, &apos;lzo&apos;, &apos;e2fsprogs&apos;, &apos;zlib&apos;, &apos;make-native&apos;, &apos;expat&apos;, &apos;libffi&apos;, &apos;bash-completion&apos;, &apos;libpcre&apos;, &apos;libgpg-error&apos;, &apos;libcap&apos;, &apos;libidn2&apos;, &apos;libcap-ng&apos;, &apos;util-linux-libuuid&apos;, &apos;ncurses&apos;, &apos;xz&apos;, &apos;kmod&apos;, &apos;bzip2&apos;, &apos;readline&apos;, &apos;gdbm&apos;, &apos;libnsl2&apos;, &apos;libtirpc&apos;, &apos;libunistring&apos;]
DEBUG: Python function extend_recipe_sysroot finished
DEBUG: Executing shell function do_install
getfacl: Removing leading &apos;/&apos; from absolute path names
# file: work/build/tmp-glibc/work/core2-64-WelotecGmbH-linux/aziotctl/1.4.3.AUTOINC+cfa39b58ec-r0/image/etc/aziot/config.toml
# owner: iotedge
# group: iotedge
user::rw-
user:iotedge:rwx
group::rw-
mask::rwx
other::r--

DEBUG: Shell function do_install finished
DEBUG: Executing shell function remove_libtool_la
DEBUG: Shell function remove_libtool_la finished

But if I do that on my own by calling the getfacl on the same file, there are no visible acls at all. I do not know if that is normal behaviour. Could somebody explain that to me?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>95270</commentid>
    <comment_count>14</comment_count>
    <who name="Piotr Łobacz">p.lobacz</who>
    <bug_when>2023-04-02 11:23:34 +0000</bug_when>
    <thetext>I&apos;m sorry but I should say rather that not preserved acls instead of none because there are acls visible e.g:

getfacl build/tmp-glibc/work/core2-64-WelotecGmbH-linux/aziotctl/1.4.3.AUTOINC+cfa39b58ec-r0/image/etc/aziot/config.toml
# file: build/tmp-glibc/work/core2-64-WelotecGmbH-linux/aziotctl/1.4.3.AUTOINC+cfa39b58ec-r0/image/etc/aziot/config.toml
# owner: plobacz
# group: plobacz
user::rw-
group::r--
other::r--</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>95272</commentid>
    <comment_count>15</comment_count>
      <attachid>4943</attachid>
    <who name="Piotr Łobacz">p.lobacz</who>
    <bug_when>2023-04-02 21:38:51 +0000</bug_when>
    <thetext>Created attachment 4943
Add xattrs and acl support for tar archives

This is a patch for setting</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>95273</commentid>
    <comment_count>16</comment_count>
    <who name="Piotr Łobacz">p.lobacz</who>
    <bug_when>2023-04-03 07:59:26 +0000</bug_when>
    <thetext>OK I have verified that packages are being created from packages-split/pkg, where pkg is the dir name for package. This is what I have verified in package_ipk.bbclass.

Additionally I have also verified that if I&apos;m getting to package with `bitbake -c devshell package` command and calling `getfacl` on the file on which I&apos;m setting ACLs with `setfacl` in do_install all privileges are indeed persisted, but still within this devshell calling on the same file but in packages-split/pkg these privileges are not persisted. So my guess is that they are disappearing on some copy command or so on. So question is, where can it be?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>95275</commentid>
    <comment_count>17</comment_count>
    <who name="Piotr Łobacz">p.lobacz</who>
    <bug_when>2023-04-03 09:42:30 +0000</bug_when>
    <thetext>OK finally I have discovered it and it works just as I wanted to :D I will create a patch for package.bbclass and share it on the mailing list with additional link in here to it</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>95276</commentid>
    <comment_count>18</comment_count>
    <who name="Piotr Łobacz">p.lobacz</who>
    <bug_when>2023-04-03 10:44:45 +0000</bug_when>
    <thetext>This is the link to the patch https://lists.openembedded.org/g/openembedded-core/message/179609 I will send also other patches for opkg as well.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>95278</commentid>
    <comment_count>19</comment_count>
    <who name="Piotr Łobacz">p.lobacz</who>
    <bug_when>2023-04-03 12:33:52 +0000</bug_when>
    <thetext>OK I have submitted my patches to the list which are in here:
https://lists.openembedded.org/g/openembedded-core/message/179626
https://lists.openembedded.org/g/openembedded-core/message/179627
https://lists.openembedded.org/g/openembedded-core/message/179628
https://lists.openembedded.org/g/openembedded-core/message/179629

I have also added Richard to CC as he already had some comments before regarding https://lists.openembedded.org/g/openembedded-core/message/179609 which, I have to admit, was an ugly approach of mine, to send those patches separately.

Thanks Richard :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>95279</commentid>
    <comment_count>20</comment_count>
    <who name="Piotr Łobacz">p.lobacz</who>
    <bug_when>2023-04-03 14:00:28 +0000</bug_when>
    <thetext>Hmmm unfortunately these patches still does not solve the issue. I have just verified that on rootfs I&apos;m still having problem that the attributes are not being preserved. For ipk files they are. I have even verified by installing ipk package with ACLs but in the rootfs they are not, not even in bitbake -c devshell image-package-name... I still ned to investigate:]</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>95280</commentid>
    <comment_count>21</comment_count>
    <who name="Piotr Łobacz">p.lobacz</who>
    <bug_when>2023-04-03 14:10:06 +0000</bug_when>
    <thetext>Ech it seems that there is also a completly different part for extracting ipk poackages in yocto/openembedded-core/meta/lib/oe/package_manager/ipk which I also need to adapt to this solution...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>95281</commentid>
    <comment_count>22</comment_count>
    <who name="Piotr Łobacz">p.lobacz</who>
    <bug_when>2023-04-03 14:20:16 +0000</bug_when>
    <thetext>OK finally I&apos;ve got my answer:

https://git.openembedded.org/openembedded-core/tree/meta/lib/oeqa/utils/package_manager.py?h=kirkstone#n163

and according to the documentation of shutil package https://docs.python.org/3/library/shutil.html


Warning

Even the higher-level file copying functions (shutil.copy(), shutil.copy2()) cannot copy all file metadata.

On POSIX platforms, this means that file owner and group are lost as well as ACLs. On Mac OS, the resource fork and other metadata are not used. This means that resources will be lost and file type and creator codes will not be correct. On Windows, file owners, ACLs and alternate data streams are not copied.


So this definitely has to be changed...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>95297</commentid>
    <comment_count>23</comment_count>
    <who name="Piotr Łobacz">p.lobacz</who>
    <bug_when>2023-04-06 10:27:22 +0000</bug_when>
    <thetext>OK I have finally fixed the problem and everything is working for me. The issue regarding not putting acls for native image was due to missing acl feautre in DISTRO_FEATURES_NATIVE even that it was set in DISTRO_FEATURE.

I think that we should discuss it, how it should be solved, because right now if I choose it only in DISTRO_FEATURES, than it is not being set for DISTRO_FEATURES_NATIVE which right now I do not know if it is a proper way to go and would like to get second opinions.

I had also this small talk about putting this into Kirkstone with Richard and he stated that new feature development work happens on master, not
on our LTS stable release branches, which means that this will not happen for kikrstone. I can try to handle it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>95891</commentid>
    <comment_count>24</comment_count>
    <who name="Piotr Łobacz">p.lobacz</who>
    <bug_when>2023-07-07 08:00:08 +0000</bug_when>
    <thetext>Hi all, I have finally managed to do the fixes for yocto master :-)

I will try to upload the patches today evening or during the weekend.

BR
Piotr</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>95895</commentid>
    <comment_count>25</comment_count>
    <who name="Piotr Łobacz">p.lobacz</who>
    <bug_when>2023-07-10 10:06:12 +0000</bug_when>
    <thetext>Ok I have pushed the changes for the master as Richard asked me. These are the patches:
https://lists.openembedded.org/g/openembedded-core/message/184063
https://lists.openembedded.org/g/openembedded-core/message/184064
https://lists.openembedded.org/g/openembedded-core/message/184065

Additionaly keep in mind that first this one https://bugzilla.yoctoproject.org/show_bug.cgi?id=15097 has to be merged in order to have it properly working.

BR
Piotr</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>96961</commentid>
    <comment_count>26</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2023-10-24 14:24:51 +0000</bug_when>
    <thetext>Bulk move from 4.99 or 0.00 to 5.99</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>4943</attachid>
            <date>2023-04-02 21:38:51 +0000</date>
            <delta_ts>2023-04-02 21:38:51 +0000</delta_ts>
            <desc>Add xattrs and acl support for tar archives</desc>
            <filename>0001-opkg-build-Add-xattrs-support-for-tar-archives.patch</filename>
            <type>text/plain</type>
            <size>2326</size>
            <attacher name="Piotr Łobacz">p.lobacz</attacher>
            
              <data encoding="base64">RnJvbSAwODA2ZTAyYzQzODc0MzdlNzg2ZTEwMTk4MmJkMDViNmZmN2I5YTgzIE1vbiBTZXAgMTcg
MDA6MDA6MDAgMjAwMQpGcm9tOiA9P1VURi04P3E/UGlvdHI9MjA9QzU9ODFvYmFjej89IDxwLmxv
YmFjekB3ZWxvdGVjLmNvbT4KRGF0ZTogU3VuLCAyIEFwciAyMDIzIDAxOjEwOjA1ICswMjAwClN1
YmplY3Q6IFtQQVRDSF0gb3BrZy1idWlsZDogQWRkIHhhdHRycyBzdXBwb3J0IGZvciB0YXIgYXJj
aGl2ZXMKTUlNRS1WZXJzaW9uOiAxLjAKQ29udGVudC1UeXBlOiB0ZXh0L3BsYWluOyBjaGFyc2V0
PVVURi04CkNvbnRlbnQtVHJhbnNmZXItRW5jb2Rpbmc6IDhiaXQKCkFkZCBzdXBwb3J0IGZvciB0
YXIgYXJjaGl2ZXMgY3JlYXRlZCB3aXRoIC0teGF0dHJzIG9wdGlvbiwgUEFYIGhlYWRlciBmb3Jt
YXQuCgpHTlUgdGFyIGFuZCBsaWJhcmNoaXZlIGFscmVhZHkgc3VwcG9ydHMgZXh0ZW5kZWQgYXR0
cmlidXRlcy4gV2UgY2FuIG5vdwphZGQgdGhpcyBzdXBwb3J0IGFzIHdlbGwgdG8gb3BrZy1idWls
ZCBzY3JpcHQgaW4gb3JkZXIgdG8gdXNlIGZzZXRhdHRyIG9yCnNldGNhcCBpbnNpZGUgZG9faW5z
dGFsbCBjb21tYW5kIGFuZCBlbmQgdXAgd2l0aCBhIGZpbGUgaW4gYW4gaW1hZ2Ugd2l0aAp0aGUg
cmVsZXZhbnQgeGF0dHJzLgoKU2lnbmVkLW9mZi1ieTogUGlvdHIgxYFvYmFjeiA8cC5sb2JhY3pA
d2Vsb3RlYy5jb20+CgolJSBvcmlnaW5hbCBwYXRjaDogMDAwMS1vcG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