On Wed, Jan 04, 2006 at 09:57:46PM +0100, Kern Sibbald wrote:
> Not quite.  
> 
> I run SELinux here on my server so I have a reasonable idea (rather primitave 
> though) of how it works.  Are you telling me that libacl returns only a 
> subset of the possible extended attributes?   If that is the case, it seems 
> to me that we should modify the Bacula ACL code to save/restore *all* the 
> extended attributes.  However, maybe that is not so easy.  

If possible, yes, I'd certainly agree =)

> Do you have any idea what the low level system calls are that get/set 
> extended 
> attributes?  (i.e. what does getfattr and setfattr use?).

It uses the *xattr family of functions

       #include <sys/types.h>
       #include <attr/xattr.h>

       ssize_t getxattr (const char *path, const char *name, ...
       ssize_t lgetxattr (const char *path, const char *name, ...
       ssize_t fgetxattr (int filedes, const char *name, ...

       ssize_t listxattr (const char *path, ...
       ssize_t llistxattr (const char *path, ...
       ssize_t flistxattr (int filedes, ...

       int setxattr (const char *path, const char *name, ...
       int lsetxattr (const char *path, const char *name, ...
       int fsetxattr (int filedes, const char *name, ...


-- 
Frank Sweetser fs at wpi.edu  |  For every problem, there is a solution that
WPI Network Engineer          |  is simple, elegant, and wrong. - HL Mencken
    GPG fingerprint = 6174 1257 129E 0D21 D8D4  E8A3 8E39 29E3 E2E8 8CEC


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Bacula-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to