commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Damien Raude-Morvan (JIRA)" <>
Subject [jira] Created: (DAEMON-168) [daemon][jsvc] Handling of capabilities should use libcap
Date Wed, 28 Jul 2010 17:34:16 GMT
[daemon][jsvc] Handling of capabilities should use libcap

                 Key: DAEMON-168
             Project: Commons Daemon
          Issue Type: Improvement
          Components: Jsvc
    Affects Versions: 1.0.2
         Environment: Debian Unstable
            Reporter: Damien Raude-Morvan
         Attachments: old_capabilities.diff


[For full story, please see here :]

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 :

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

Damien Raude-Morvan

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message