On Friday 31 March 2006 18:11, Gary Kopp wrote:
> Kern,
>
> Did you ever have the opportunity to look at extending Bacula's ACL
> mechanism to handle SELinux xattrs as discussed back in January?

Yes, of course. However, it looks like it is a new significant project itself 
and not just a quickie patch. So either someone will need to contribute the 
code (best approach), or you should follow the Request for new feature 
procedure outlined somewhere on the Web site, and during the next project 
vote (probably about 9 months from now), it will be on the list and obtain a 
priority.

>
> --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 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