From: Zdenek Prikryl <zprikryl@redhat.com>
To: linux-xfs@oss.sgi.com
Subject: getfattr and -d options
Date: Wed, 29 Oct 2008 17:01:58 +0100 [thread overview]
Message-ID: <490888F6.8000101@redhat.com> (raw)
[-- 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 */
reply other threads:[~2008-10-29 16:02 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=490888F6.8000101@redhat.com \
--to=zprikryl@redhat.com \
--cc=linux-xfs@oss.sgi.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox