Kern,

Did you ever have the opportunity to look at extending Bacula's ACL
mechanism to handle SELinux xattrs as discussed back in January?

--Gary Kopp

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Kern Sibbald
Sent: Wednesday, January 04, 2006 2:16 PM
To: Frank Sweetser; bacula-users
Subject: Re: [Bacula-users] Backup xattrs (SELinux)?

Thanks. That is what I needed.  I'll look at this in more detail in the near

future to see if there isn't some simple extension to the currrent Bacula
ACL 
mechanism for handling it ...

On Wednesday 04 January 2006 22:07, you wrote:
> 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, ...

-- 
Best regards,

Kern

  (">
  /\
  V_V


-------------------------------------------------------
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
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to