1
I want to change network configurations like dhcp, ip address and so on programmatically.
But what I don't want, is to run my application as root. So my question is: What would be a common approach to solve that? Is this even possible?
Is there maybe any group that is allowed to do that without gaining any other rights? Or should I 'chown' the config files to a special group and add the user to that group?
Related to this (If that is off topic, tell me and I will open another question): The target is an embedded device and the application should be the only one that is accessible by the user. Is there any good (best) practice? Should I create a special user for that application. Any hints are appreciated.
That could be interesting to me. Do not have enough reputation to upvote, sorry. – exilit – 2014-03-26T18:35:38.353
I am curious about the handling of shared objects. The manual is only talking about threads. So am I right that setting a SO's capability doesn't have any effect on the executed code? As far as I understand the code of the shared object is executed with the capabilities inherited from the thread in which the object is executed in, right? – exilit – 2014-03-27T09:41:34.020
I think capabilities only have effect on executables. Difficult wording, hrm… those things with main() functions. ;) – Andreas Wiese – 2014-03-27T10:19:01.727
So a shared object would inherit capabilitys from the "thing with the main() function" :) ? – exilit – 2014-03-27T10:37:58.023
As far as I can see… yes. – Andreas Wiese – 2014-03-27T10:43:05.647