From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <54B3D624.1050203@siemens.com> Date: Mon, 12 Jan 2015 15:11:48 +0100 From: Jan Kiszka MIME-Version: 1.0 References: <54B3A339.7040501@xenomai.org> <54B3C134.5020101@siemens.com> <54B3D39B.7040900@siemens.com> In-Reply-To: <54B3D39B.7040900@siemens.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [Xenomai] [Xenomai-git] Jan Kiszka : sysregd: Install as suid List-Id: Discussions about the Xenomai project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Philippe Gerum , xenomai@xenomai.org On 2015-01-12 15:00, Jan Kiszka wrote: > On 2015-01-12 13:42, Jan Kiszka wrote: >> On 2015-01-12 11:34, Philippe Gerum wrote: >>> On 01/08/2015 05:30 PM, git repository hosting wrote: >>>> Module: xenomai-jki >>>> Branch: for-forge >>>> Commit: 7d56f2b19f987069ef0025f9ce5f8cc52781f340 >>>> URL: http://git.xenomai.org/?p=xenomai-jki.git;a=commit;h=7d56f2b19f987069ef0025f9ce5f8cc52781f340 >>>> >>>> Author: Jan Kiszka >>>> Date: Thu Jan 8 14:30:52 2015 +0100 >>>> >>>> sysregd: Install as suid >>>> >>>> sysregd has to run with root privileges in order to be able to clean up >>>> the mounts of unprivileged users. >>>> >>>> Signed-off-by: Jan Kiszka >>>> >>> >>> This one assumes root id on "make install", which is not a prerequisite >>> for installing a Mercury setup. This leads to sysregd losing root >>> privileges on execution, which contradicts the purpose. >>> >>> We need sudo detection and use for this, just like we do in the top >>> level Makefile for creating /dev entries. >> >> OK. > > Is there a way to maintain that sudo test code only in one place? I'm > currently not finding an obvious one. Forget it, the logic is too different anyway on second look. Jan -- Siemens AG, Corporate Technology, CT RTC ITP SES-DE Corporate Competence Center Embedded Linux