Re: corosync running as non-root?

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

 



On 06/03/2013 02:54 PM, Eric Duda wrote:

What’s the reason corosync process needs to run as root (uid 0)? Why is there no setuid() to switch to a non-root user after startup?

 

Corosync requires some root capabilities to do mlock and binding.  We could setuid to a nonroot user after the mlock, but the binding occurs during runtime and can change dynamically during program execution.

For a long time the binding code has need to be reworked to not be dynamic.  Feel free to submit a patch to that effect which would allow for a setuid to a more appropriate user (such as corosync).

Regards
-steve

Thanks,

Eric



_______________________________________________
discuss mailing list
discuss@xxxxxxxxxxxx
http://lists.corosync.org/mailman/listinfo/discuss

_______________________________________________
discuss mailing list
discuss@xxxxxxxxxxxx
http://lists.corosync.org/mailman/listinfo/discuss

[Index of Archives]     [Linux Clusters]     [Corosync Project]     [Linux USB Devel]     [Linux Audio Users]     [Photo]     [Yosemite News]    [Yosemite Photos]    [Linux Kernel]     [Linux SCSI]     [X.Org]

  Powered by Linux