Re: [LAD] QTractor: QThreads: Not realtime on Linux without root?

From: Felipe Ferreri Tonello <eu@email-addr-hidden>
Date: Wed Jan 11 2017 - 15:20:30 EET

Hi Ralf,

On 11/01/17 12:52, Ralf Mattes wrote:
>
> Am Mittwoch, 11. Januar 2017 13:21 CET, Felipe Ferreri Tonello <eu@email-addr-hidden> schrieb:
>
>> Hi Ralf,
>>
>> On 03/01/17 21:37, Ralf Mattes wrote:
>>>
>>> Am Dienstag, 03. Januar 2017 19:31 CET, Felipe Ferreri Tonello <eu@email-addr-hidden> schrieb:
>>>
>>>
>>>> If sched_setscheduler() returns -1, check if errno is set to EPERM. In
>>>> this case the user trying to perform this operation does not have
>>>> CAP_SYS_NICE[1] capability, which is *required*.
>>>>
>>>> [1] http://man7.org/linux/man-pages/man7/capabilities.7.html
>>>>
>>>> If you want this type of feature, set CAP_SYS_NICE to the group audio
>>>> that you are referring.
>>>
>>> ??? How can I grant capabilities to a group? I thought capabilites where either given to
>>> a user (via /etc/security/capability.conf) or to a binary (by means of setcap).
>>
>> AFAIK, pam_cap support users and groups.
>
> Not according to my local manpages (pam_cap(8) 09/23/2011 and CAPABILITY.CONF(5) -- 09/23/2011).
> Do you have any y reference for your information?

I never tested, but try out based on this reference[1] paragraph 2.2.

Apparently there are two implementations for pam_cap. One supports the
other doesn't.

[1]
http://blog.sevagas.com/?Linux-security-using-a-limited-group-PAM-modules
[2] https://github.com/ekline/pamcap/blob/master/pam_capability.c
[3] https://github.com/pexip/os-libcap2/blob/master/pam_cap/pam_cap.c

Good luck.

-- 
Felipe


_______________________________________________
Linux-audio-dev mailing list
Linux-audio-dev@email-addr-hidden
http://lists.linuxaudio.org/listinfo/linux-audio-dev

Received on Wed Jan 11 16:15:01 2017

This archive was generated by hypermail 2.1.8 : Wed Jan 11 2017 - 16:15:02 EET