Lines Matching full:mount
12 #include <sys/mount.h>
210 ret = mount("devpts", mntpoint, "devpts", MS_NOSUID | MS_NOEXEC, in verify_non_standard_devpts_mount()
213 fprintf(stderr, "Failed to mount devpts fs to \"%s\" in new " in verify_non_standard_devpts_mount()
214 "mount namespace: %s\n", mntpoint, in verify_non_standard_devpts_mount()
238 ret = mount("/dev/pts/ptmx", "/dev/ptmx", NULL, MS_BIND, NULL); in verify_ptmx_bind_mount()
240 fprintf(stderr, "Failed to bind mount \"/dev/pts/ptmx\" to " in verify_ptmx_bind_mount()
241 "\"/dev/ptmx\" mount namespace\n"); in verify_ptmx_bind_mount()
265 ret = mount("/dev/pts/ptmx", ptmx, NULL, MS_BIND, NULL); in verify_invalid_ptmx_bind_mount()
268 fprintf(stderr, "Failed to bind mount \"/dev/pts/ptmx\" to " in verify_invalid_ptmx_bind_mount()
269 "\"%s\" mount namespace\n", ptmx); in verify_invalid_ptmx_bind_mount()
292 fprintf(stderr, "Failed to unshare mount namespace\n"); in main()
296 ret = mount("", "/", NULL, MS_PRIVATE | MS_REC, 0); in main()
298 fprintf(stderr, "Failed to make \"/\" MS_PRIVATE in new mount " in main()