File: move_mount.c

package info (click to toggle)
trinity 1.9%2Bgit20200331.4d2343bd18c7b-2%2Bdeb11u1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 3,080 kB
  • sloc: ansic: 32,746; sh: 536; makefile: 164
file content (27 lines) | stat: -rw-r--r-- 761 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/*
 *  SYSCALL_DEFINE5(move_mount, int, from_dfd, const char *, from_pathname,
 *     int, to_dfd, const char *, to_pathname,  unsigned int, flags)
 */
#include "sanitise.h"
#include "compat.h"

static unsigned long move_mount_flags[] = {
	MOVE_MOUNT_F_SYMLINKS, MOVE_MOUNT_F_AUTOMOUNTS, MOVE_MOUNT_F_EMPTY_PATH, MOVE_MOUNT_T_SYMLINKS,
	MOVE_MOUNT_T_AUTOMOUNTS, MOVE_MOUNT_T_EMPTY_PATH,
};

struct syscallentry syscall_move_mount = {
	.name = "move_mount",
	.num_args = 5,
	.arg1name = "from_dfd",
	.arg1type = ARG_FD,
	.arg2name = "from_pathname",
	.arg2type = ARG_PATHNAME,
	.arg3name = "to_dfd",
	.arg3type = ARG_FD,
	.arg4name = "to_pathname",
	.arg4type = ARG_PATHNAME,
	.arg5name = "flags",
	.arg5type = ARG_OP,
	.arg5list = ARGLIST(move_mount_flags),
};