NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pthread_setaffinity_np() permissions



On Thu, 03 Nov 2011 00:20:18 +0100
Jean-Yves Migeon <jeanyves.migeon%free.fr@localhost> wrote:

> On 02.11.2011 17:03, Sad Clouds wrote:
> > Hi, is there some setting that would allow pthread_setaffinity_np()
> > to succeed for non-root users, i.e. some form of RBAC?
> 
> Not that I know of. There was a discussion to introduce a sysctl(7),
> but never got implemented actually (here's a quick patch).
> 
> sysctl -w security.models.suser.usersetaffinity=1
> 
> I would not call kauth(9) RBAC though, it's more ACLs.
> 
> -- 
> Jean-Yves Migeon
> jeanyves.migeon%free.fr@localhost

OK thanks I'll try out the patch when I have some time.


Home | Main Index | Thread Index | Old Index