core:sandbox: lets make /lib/modules/ inaccessible on ProtectKernelModules=
authorDjalal Harouni <tixxdz@opendz.org>
Wed, 12 Oct 2016 12:11:16 +0000 (14:11 +0200)
committerDjalal Harouni <tixxdz@opendz.org>
Wed, 12 Oct 2016 12:11:16 +0000 (14:11 +0200)
commitc575770b75b6cd15684fbacd249147bf5fd6ead7
tree1dbde008e50d9ab2780168dd26ead86a762959dc
parentac246d9868bd476297e2702e0a7ef52294f9cfa8
core:sandbox: lets make /lib/modules/ inaccessible on ProtectKernelModules=

Lets go further and make /lib/modules/ inaccessible for services that do
not have business with modules, this is a minor improvment but it may
help on setups with custom modules and they are limited... in regard of
kernel auto-load feature.

This change introduce NameSpaceInfo struct which we may embed later
inside ExecContext but for now lets just reduce the argument number to
setup_namespace() and merge ProtectKernelModules feature.
man/systemd.exec.xml
src/core/execute.c
src/core/namespace.c
src/core/namespace.h
src/test/test-ns.c