Bug 841899 - bacula: Please compile with capabilities support
Summary: bacula: Please compile with capabilities support
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: bacula
Version: 16
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Simone Caronni
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-07-20 13:52 UTC by Florian Weimer
Modified: 2012-07-23 12:03 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-07-23 12:03:19 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Florian Weimer 2012-07-20 13:52:51 UTC
Bacula does not compile/link to libcap, so the -k option is not supported:

# bacula-fd -k -u bacula -f
18-Jun 12:55 bacula-fd: ERROR TERMINATION at priv.c:131
Keep readall caps not implemented this OS or missing libraries.
#

Running the file daemon with -k might be a good option if you don't need restore functionality.

Comment 1 Simone Caronni 2012-07-20 17:07:37 UTC
Hello,

ReadAll Capabilities support has been enabled by default in Fedora 15+. This, however, has the side effect of disabling backups of extended attributes because this requires super user privileges. There's a note in the sysconfig file for Fedora 17, I will make the change also in Fedora 16.

You should see that the correct libraries are linked into the binary:

 $ ldd /usr/sbin/bacula-fd  | grep cap
 libcap.so.2 => /lib64/libcap.so.2 (0x0000003223e00000)

I'm on RHEL and Fedora 17 systems at the moment so I cannot test what's the problem here, can you perform the following?

1) Launching the daemon this way, and paste the output here:

 # bacula-fd -k -u bacula -f -d 200

2) Update the bacula file daemon to version 5.2.10 on a box that has the client only and try again to launch it with the "-k" flag, so we can check if it's a problem in 5.0.3.

You can find a precompiled binary here:

http://repos.fedorapeople.org/repos/slaanesh/bacula/

Please execute the following:

 # wget http://repos.fedorapeople.org/repos/slaanesh/bacula/fedora-bacula.repo \
        -O /etc/yum.repos.d/fedora-bacula.repo
 # yum update bacula*
 # bacula-fd -k -u bacula -f -d 200

To revert back to the Fedora 16 version, simply execute the following:

 # rm -f /etc/yum.repos.d/fedora-bacula.repo
 # yum distro-sync bacula*

Thanks,
--Simone

Comment 2 Florian Weimer 2012-07-23 12:03:19 UTC
(In reply to comment #1)
> I'm on RHEL and Fedora 17 systems at the moment so I cannot test what's the
> problem here, can you perform the following?

Sorry, it turns out that I misinterpreted my notes.  The functionality is clearly present in the Fedora 16 package.


Note You need to log in before you can comment on or make changes to this bug.