public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
* getfattr and -d options
@ 2008-10-29 16:01 Zdenek Prikryl
  0 siblings, 0 replies; only message in thread
From: Zdenek Prikryl @ 2008-10-29 16:01 UTC (permalink / raw)
  To: linux-xfs

[-- Attachment #1: Type: text/plain, Size: 452 bytes --]

Hello,
in getfattr's man page there is "-d Dump the values of all extended attributes
associated with path-name". If you use SELinux, files have this extended attribute:

security.selinux="...".

-d option works in such way that it only prints extended attributes, which names
begin with "user." So, in this case, selinux attribute isn't printed. I'm
sending simple patch, which corrects this.

Best regards.

-- 
Zdenek Prikryl <zprikryl@redhat.com>


[-- Attachment #2: attr-2.4.43-dump.patch --]
[-- Type: text/plain, Size: 415 bytes --]

diff -up attr-2.4.43/getfattr/getfattr.c.dump attr-2.4.43/getfattr/getfattr.c
--- attr-2.4.43/getfattr/getfattr.c.dump	2008-10-29 16:55:43.000000000 +0100
+++ attr-2.4.43/getfattr/getfattr.c	2008-10-29 16:55:45.000000000 +0100
@@ -408,6 +408,7 @@ int main(int argc, char *argv[])
 
 			case 'd': /* dump attribute values */
 				opt_dump = 1;
+				opt_name_pattern = "";
 				break;
 
 			case 'e':  /* encoding */

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-10-29 16:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-29 16:01 getfattr and -d options Zdenek Prikryl

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox