| Summary: | lsetxattr: value truncated | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Yocto Project Subprojects] Pseudo | Reporter: | Patrick Ohly <patrick.ohly> | ||||
| Component: | pseudo | Assignee: | Seebs <seebs> | ||||
| Status: | VERIFIED FIXED | QA Contact: | Daniel Istrate <daniel.alexandrux.istrate> | ||||
| Severity: | normal | ||||||
| Priority: | Medium+ | CC: | alexandru.c.georgescu, ross.burton, yp.pseudo.watcher, yp.watcher | ||||
| Version: | unspecified | ||||||
| Target Milestone: | 1.9 M2 | ||||||
| Hardware: | x86 | ||||||
| OS: | Multiple | ||||||
| Whiteboard: | |||||||
| OS type for building Yocto: | --- | Type of Regression: | --- | ||||
| Verified: | Documentation change: | No (bug/feature does not impact docs) | |||||
| Attachments: |
|
||||||
|
Description
Patrick Ohly
2015-07-13 08:44:41 UTC
Created attachment 2587 [details]
don't truncate xattr values
It was the pseudo server which removed the trailing slash from the xattr value. Here's a patch against 1.6.4 (as in Poky Fido) which avoids that for those operations where "oldpath" is not really a path.
D'oh. That's a really beautiful bug, and one I'd completely failed to think of. Nice catch! Yes, that needs to get fixed. Fixed in pseudo 1.6.7, merged in oe-core 0295947a2ccc66037f9c20f06b4b69a781a046bd. Verified on master: 7b86c771c80d0759c2ca0e57c46c4c966f89c49e Steps to verify: 1. bitbake m4 -c devshell 2. When the terminal pops up attempt the commands from the Description: [root@fedora-ws m4-1.4.17]# touch foobar [root@fedora-ws m4-1.4.17]# setfattr -n security.ima -v 0x032f foobar [root@fedora-ws m4-1.4.17]# getfattr -d -m . -e hex foobar # file: foobar security.ima=0x032f [root@fedora-ws m4-1.4.17]# |