The branch, v4-1-test has been updated
       via  2cfa1ef xattr: fix listing EAs on *BSD for non-root users
      from  a52afc3 VERSION: Bump version number up to 4.1.2...

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v4-1-test


- Log -----------------------------------------------------------------
commit 2cfa1ef6a9e2728c9cdd185d6d08a452e0485200
Author: Björn Jacke <[email protected]>
Date:   Wed Nov 6 12:37:07 2013 +0100

    xattr: fix listing EAs on *BSD for non-root users
    
    Thanks to Stefan Rompf for reporting.
    
    This fixes bug #10247
    
    Signed-off-by: Bjoern Jacke <[email protected]>
    Reviewed-by: Jeremy Allison <[email protected]>
    
    Autobuild-User(master): Jeremy Allison <[email protected]>
    Autobuild-Date(master): Fri Nov  8 20:43:30 CET 2013 on sn-devel-104
    (cherry picked from commit 374b2cfde74e0c61f4b2da724b30d0e430596092)
    
    Autobuild-User(v4-1-test): Karolin Seeger <[email protected]>
    Autobuild-Date(v4-1-test): Tue Nov 12 13:28:26 CET 2013 on sn-devel-104

-----------------------------------------------------------------------

Summary of changes:
 lib/replace/xattr.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)


Changeset truncated at 500 lines:

diff --git a/lib/replace/xattr.c b/lib/replace/xattr.c
index a26ff67..459b7f3 100644
--- a/lib/replace/xattr.c
+++ b/lib/replace/xattr.c
@@ -194,6 +194,10 @@ static ssize_t bsd_attr_list (int type, extattr_arg arg, 
char *list, size_t size
        char *buf;
        /* Iterate through extattr(2) namespaces */
        for(t = 0; t < ARRAY_SIZE(extattr); t++) {
+               if (t != EXTATTR_NAMESPACE_USER && geteuid() != 0) {
+                       /* ignore all but user namespace when we are not root, 
see bug 10247 */
+                       continue;
+               }
                switch(type) {
 #if defined(HAVE_EXTATTR_LIST_FILE)
                        case 0:


-- 
Samba Shared Repository

Reply via email to