tools/toCOPY/cgcs_overlay/mount_wrappers/overlay_mount.c
Dean Troyer 62bd0253f0 Add build tools
This includes Docker containers to perform the StarlingX build
and a set of scripts to maintain a local mirror of binary CentOS
and other packages required to populate the final ISO file.

Change-Id: I8140fd8fa2d00e7aa98c895a8e4962ab3748669d
2018-06-08 17:01:43 -05:00

20 lines
333 B
C

#include <unistd.h>
#include <sys/types.h>
#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
int main(int argc, char *const argv[])
{
int rc;
rc = setuid(0);
if ( rc != 0 )
{
printf("setuid returned %d\n", rc);
exit(1);
}
return execv("/usr/bin/overlay_mount.sh", argv);
}