[tomoyo-dev-en 370] Re: [PATCH 1/2] init_policy: drop unneededexceptions when systemd installed

Back to archive index

Shawn Landden shawn****@churc*****
Thu Dec 5 05:36:57 JST 2013


On Wed, Dec 4, 2013 at 8:03 AM, Shawn Landden <shawn****@churc*****> wrote:
> On Sun, Dec 1, 2013 at 3:31 AM, Tetsuo Handa
> <from-****@i-lov*****> wrote:
>> Hello Shawn.
>>
>> I applied below patches with some modification, for I thought we should not
>> remove (e.g.) /usr/sbin/sshd from initialize_domain entries (even if the
>> system uses systemd) in case (e.g.) /usr/sbin/sshd is directly executed from
>> the shell.
>>
>>   [PATCH 1/2] init_policy: drop unneededexceptions when systemd installed
> When systemd is installed, it actually hijacks /etc/init.d/* scripts
> to run systemd, so they
> get run by systemd even if called from the shell. So this patch, with
> the exception of direct binary execution
> like the /usr/sbin/sshd example you gave, should still, IMHO, be applied.

It can do this becuase most of those scripts do this:

. /lib/lsb/init-functions

which is then hooked by systemd
>>   [PATCH 2/2] init_policy: add Debian multi-archlib directories to make_ldconfig_readable_files()
> thanks
>>   [PATCH] init_policy: do not let 'systemctldaemon-reexec' confuse tomoyo
> your modification is fine.
>>
>> If you have problems with my modification, please let me know.
>>
>> Thank you.
>>
>> _______________________________________________
>> tomoyo-dev-en mailing list
>> tomoy****@lists*****
>> http://lists.sourceforge.jp/mailman/listinfo/tomoyo-dev-en




More information about the tomoyo-dev-en mailing list
Back to archive index