Uploaded image for project: 'Commons Daemon'
  1. Commons Daemon
  2. DAEMON-168

[daemon][jsvc] Handling of capabilities should use libcap

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.0.2
    • 1.0.3
    • Jsvc
    • None
    • Debian Unstable

    Description

      Hi,

      [For full story, please see here : http://bugs.debian.org/412690]

      As 1.0.2 release, jsvc component use a syscall to handle capabilities settings.
      Here is an example in src/native/unix/native/jsvc-unix.c:
      if (syscall(__NR_capset, &caphead, &cap) < 0) {

      It's not recommended usage of capabilities since ABI/API can change at each kernel release.
      And in fact, it's already changed and kernel handle some backward compat layer like described here :
      http://marc.info/?l=linux-kernel&m=120883245227970&w=2

      For now, I'm forced to patch jsvc to force usage of the backward compatibility layer.
      (see attached patch)

      Cheers,

      Damien Raude-Morvan

      Attachments

        1. old_capabilities.diff
          1.0 kB
          Damien Raude-Morvan

        Activity

          People

            Unassigned Unassigned
            drazzib Damien Raude-Morvan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: