diff options
| author | Laurent Bercot <ska-skaware@skarnet.org> | 2021-04-20 00:00:22 +0000 |
|---|---|---|
| committer | Laurent Bercot <ska-skaware@skarnet.org> | 2021-04-20 00:00:22 +0000 |
| commit | 1172c1e817d26d5f9bb0ec289dd9a71aadf2759c (patch) | |
| tree | 6c7e5eb2ebb255c7be81d1535559fa7c4a63af4b /src/os/linux-os_mount_devtmpfs.c | |
| parent | 3bde455795bb3273922ec7be293e3911913576c2 (diff) | |
| download | s6-linux-init-1172c1e817d26d5f9bb0ec289dd9a71aadf2759c.tar.gz | |
Add portability infrastructure
Diffstat (limited to 'src/os/linux-os_mount_devtmpfs.c')
| -rw-r--r-- | src/os/linux-os_mount_devtmpfs.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/os/linux-os_mount_devtmpfs.c b/src/os/linux-os_mount_devtmpfs.c new file mode 100644 index 0000000..b3f34a1 --- /dev/null +++ b/src/os/linux-os_mount_devtmpfs.c @@ -0,0 +1,10 @@ +/* ISC license. */ + +#include <sys/mount.h> + +#include "os.h" + +int os_mount_devtmpfs (char const *point) +{ + return mount("dev", point, "devtmpfs", MS_NOSUID | MS_NOEXEC, "") ; +} |
