/third_party/selinux/libselinux/src/ |
H A D | load_policy.c | 5 #include <sys/mount.h> 221 * We only need the hardcoded definition for the initial mount 244 rc = mount("proc", "/proc", "proc", 0, 0); in selinux_init_load_policy() 277 * mount it if present for use in the calls below. in selinux_init_load_policy() 281 if (mount("sysfs", "/sys", "sysfs", 0, 0) == 0 || errno == EBUSY) { in selinux_init_load_policy() 283 if (mount(SELINUXFS, SELINUXMNT, SELINUXFS, MS_NOEXEC | MS_NOSUID, 0) == 0 || errno == EBUSY) { in selinux_init_load_policy() 287 if (mount(SELINUXFS, OLDSELINUXMNT, SELINUXFS, 0, 0) == 0 || errno == EBUSY) { in selinux_init_load_policy() 293 if (mount(SELINUXFS, OLDSELINUXMNT, SELINUXFS, 0, 0) == 0 || errno == EBUSY) { in selinux_init_load_policy()
|
/third_party/ltp/testcases/kdump/ |
H A D | runkdump.sh | 63 mount "${EXT3_PART}" /mnt 71 mount -L "${EXT3_LABEL}" /mnt 79 mount "/dev/disk/by-uuid/${EXT3_UID}" /mnt 113 mount "${NFS_PATH}" /mnt
|
/third_party/ltp/testcases/network/nfs/nfs_stress/ |
H A D | nfs_lib.sh | 36 TST_NEEDS_CMDS="$TST_NEEDS_CMDS mount exportfs mount.nfs" 137 local mnt_cmd="mount -v -t nfs $opts $mount_dir $local_dir" 141 tst_rhost_run -c "$mnt_cmd" > mount.log 143 $mnt_cmd > mount.log 147 cat mount.log 153 if grep -iq "Protocol not supported" mount.log; then 157 tst_brk TBROK "mount command failed" 182 tst_res TINFO "$(mount.nfs -V)"
|
/third_party/musl/src/linux/ |
H A D | mount.c | 1 #include <sys/mount.h> 4 int mount(const char *special, const char *dir, const char *fstype, unsigned long flags, const void *data) in mount() function
|
/third_party/musl/libc-test/src/functionalext/supplement/linux/ |
H A D | mount.c | 17 #include <sys/mount.h> 29 int rev = mount(special, target, "", 0, ""); in mount_0100()
|
/third_party/ltp/testcases/kernel/containers/mountns/ |
H A D | mountns04.c | 10 * Tests an unbindable mount: unbindable mount is an unbindable 11 * private mount. 14 * - Unshares mount namespace and makes it private (so mounts/umounts have no 18 * - Check if bind mount unbindable DIRA to DIRB fails as expected 22 #include <sys/mount.h> 38 if (mount(DIRA, DIRB, "none", MS_BIND, NULL) == -1) { in run() 39 tst_res(TPASS, "unbindable mount passed"); in run() 42 tst_res(TFAIL, "unbindable mount faled"); in run()
|
/third_party/ltp/testcases/kernel/fs/fs_bind/move/ |
H A D | fs_bind_move20.sh | 18 EXPECT_PASS mount --bind "$FS_BIND_DISK1" parent1/child1 20 EXPECT_PASS mount --move parent1 parent2
|
H A D | fs_bind_move14.sh | 20 EXPECT_PASS mount --move dir parent2/child2 22 EXPECT_PASS mount --bind parent2 share2
|
H A D | fs_bind_move13.sh | 18 EXPECT_PASS mount --bind parent2 share2 21 EXPECT_FAIL mount --move dir parent2/child2
|
/third_party/ltp/lib/ |
H A D | tst_fs_setup.c | 5 #include <sys/mount.h> 32 ret = mount("overlay", OVL_MNT, "overlay", 0, in mount_overlay() 47 "overlayfs mount failed"); in mount_overlay()
|
/third_party/ltp/testcases/kernel/fs/fs_bind/rbind/ |
H A D | fs_bind_rbind39.sh | 17 EXPECT_PASS mount --bind "$FS_BIND_DISK1" parent1/child1 19 EXPECT_PASS mount --rbind parent1 parent2
|
/third_party/ltp/testcases/kernel/security/tomoyo/ |
H A D | newns.c | 26 #include <sys/mount.h> 37 mount("/tmp/", "/tmp/", "tmpfs", 0, NULL); in child()
|
/third_party/rust/crates/nix/test/ |
H A D | test_mount.rs | 4 // use of user and mount namespaces. On systems that allow unprivileged user 19 use nix::mount::{mount, umount, MsFlags}; 34 mount( in test_mount_tmpfs_without_flags_allows_rwx() 41 .unwrap_or_else(|e| panic!("mount failed: {}", e)); in test_mount_tmpfs_without_flags_allows_rwx() 100 mount( in test_mount_rdonly_disallows_write() 107 .unwrap_or_else(|e| panic!("mount failed: {}", e)); in test_mount_rdonly_disallows_write() 125 mount( in test_mount_noexec_disallows_exec() 132 .unwrap_or_else(|e| panic!("mount failed: {}", e)); in test_mount_noexec_disallows_exec() 178 mount( in test_mount_bind() [all...] |
/third_party/f2fs-tools/scripts/ |
H A D | spo_test.sh | 30 mount -t f2fs -o disable_roll_forward $DEV $MNT || exit 37 mount -t f2fs $DEV $MNT || exit 42 mount -t f2fs $DEV $MNT || exit
|
/third_party/eudev/test/ |
H A D | test-udev.c | 31 #include <sys/mount.h> 55 { "test/sys", "/sys", "failed to mount test /sys" }, in fake_filesystems() 56 { "test/dev", "/dev", "failed to mount test /dev" }, in fake_filesystems() 57 { "test/run", UDEV_ROOT_RUN, "failed to mount test " UDEV_ROOT_RUN }, in fake_filesystems() 58 { "test/run", "/etc/udev/rules.d", "failed to mount empty /etc/udev/rules.d" }, in fake_filesystems() 59 { "test/run", "/lib/udev/rules.d", "failed to mount empty /lib/udev/rules.d" }, in fake_filesystems() 71 if (mount(NULL, "/", NULL, MS_PRIVATE|MS_REC, NULL) < 0) { in fake_filesystems() 73 fprintf(stderr, "failed to mount / as private: %m\n"); in fake_filesystems() 78 err = mount(fakefss[i].src, fakefss[i].target, NULL, MS_BIND, NULL); in fake_filesystems()
|
/third_party/ltp/testcases/kernel/syscalls/mount/ |
H A D | mount07.c | 10 * It is a basic test for MS_NOSYMFOLLOW mount option and is copied 23 #include <sys/mount.h> 26 #include "lapi/mount.h" 147 TST_EXP_PASS_SILENT(mount(tst_device->dev, MNTPOINT, tst_device->fs_type, in run() 154 TST_EXP_PASS_SILENT(mount(tst_device->dev, MNTPOINT, tst_device->fs_type, in run()
|
/third_party/ltp/testcases/kernel/mce-test/lib/ |
H A D | mce.sh | 303 mount|grep /sys/kernel/debug > /dev/null 2>&1 304 [ ! $? -eq 0 ] && mount -t debugfs none /sys/kernel/debug 305 mount|grep /sys/kernel/debug > /dev/null 2>&1 312 DEBUGFS=`mount | grep debugfs | cut -d ' ' -f3 | head -1`
|
/third_party/libwebsockets/minimal-examples/http-server/minimal-http-server-proxy/ |
H A D | minimal-http-server-proxy.c | 17 static const struct lws_http_mount mount = { variable 65 info.mounts = &mount; in main()
|
/third_party/libwebsockets/minimal-examples/client-server/minimal-ws-proxy/ |
H A D | minimal-ws-proxy.c | 14 * To keep it simple, it serves stuff in the subdirectory "./mount-origin" of 16 * You can change that by changing mount.origin. 35 static const struct lws_http_mount mount = { variable 38 /* .origin */ "./mount-origin", /* serve from dir */ 85 info.mounts = &mount; in main()
|
/third_party/ltp/testcases/kernel/fs/squashfs/ |
H A D | squashfs01.c | 34 #include <sys/mount.h> 90 if (mount(tst_device->dev, MOUNT_DIR, "squashfs", 0, NULL) != 0) in run()
|
/third_party/libwebsockets/minimal-examples/http-server/minimal-http-server/ |
H A D | minimal-http-server.c | 12 * "./mount-origin" of the directory it was started in. 13 * You can change that by changing mount.origin below. 22 static const struct lws_http_mount mount = { variable 25 /* .origin */ "./mount-origin", /* serve from dir */ 70 info.mounts = &mount; in main()
|
/third_party/libwebsockets/minimal-examples/http-server/minimal-http-server-basicauth/ |
H A D | minimal-http-server-basicauth.c | 9 * This demonstrates a minimal http server with a second mount that 13 * "./mount-origin" of the directory it was started in. 15 * You can change that by changing mount.origin below. 25 /* override the default mount for /secret in the URL space */ 30 /* .origin */ "./mount-secret-origin", 47 /* default mount serves the URL space from ./mount-origin */ 49 static const struct lws_http_mount mount = { variable 52 /* .origin */ "./mount-origin", /* serve from dir */ 97 info.mounts = &mount; in main() [all...] |
/third_party/libwebsockets/minimal-examples/http-server/minimal-http-server-mimetypes/ |
H A D | minimal-http-server-mimetypes.c | 12 * "./mount-origin" of the directory it was started in. 13 * You can change that by changing mount.origin below. 29 static const struct lws_http_mount mount = { variable 32 /* .origin */ "./mount-origin", /* serve from dir */ 77 info.mounts = &mount; in main()
|
/third_party/libwebsockets/minimal-examples/ws-server/minimal-ws-broker/ |
H A D | minimal-ws-broker.c | 12 * To keep it simple, it serves stuff in the subdirectory "./mount-origin" of 14 * You can change that by changing mount.origin. 32 static const struct lws_http_mount mount = { variable 35 /* .origin */ "./mount-origin", /* serve from dir */ 80 info.mounts = &mount; in main()
|
/third_party/libwebsockets/minimal-examples/ws-server/minimal-ws-server-ring/ |
H A D | minimal-ws-server-ring.c | 12 * To keep it simple, it serves stuff in the subdirectory "./mount-origin" of 14 * You can change that by changing mount.origin. 32 static const struct lws_http_mount mount = { variable 35 /* .origin */ "./mount-origin", /* serve from dir */ 80 info.mounts = &mount; in main()
|