mount-setup.c revision 53f7d807bff9c39e9e565ad2fb20f29b4306af40
0N/A along with systemd; If not, see <http://www.gnu.org/licenses/>.
0N/A#include "mount-setup.h"
0N/Atypedef struct MountPoint {
0N/A { "cgroup", "/cgroup/systemd", "cgroup", "none,name=systemd", MS_NOSUID|MS_NOEXEC|MS_NODEV, true },
0N/A { "binfmt_misc", "/proc/sys/fs/binfmt_misc", "binfmt_misc", NULL, MS_NOSUID|MS_NOEXEC|MS_NODEV, false },
0N/Astatic int mount_cgroup_controllers(void) {
0N/A MountPoint p;
goto finish;
r = -ENOMEM;
goto finish;
zero(p);
p.fatal = false;
r = mount_one(&p);
goto finish;
fclose(f);
int mount_setup(void) {
return mount_cgroup_controllers();