~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/include/uapi/linux/mount.h

Version: ~ [ linux-6.11.5 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.58 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.114 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.169 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.228 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.284 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.322 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /include/uapi/linux/mount.h (Version linux-6.11.5) and /include/uapi/linux/mount.h (Version linux-5.18.19)


  1 #ifndef _UAPI_LINUX_MOUNT_H                         1 #ifndef _UAPI_LINUX_MOUNT_H
  2 #define _UAPI_LINUX_MOUNT_H                         2 #define _UAPI_LINUX_MOUNT_H
  3                                                     3 
  4 #include <linux/types.h>                            4 #include <linux/types.h>
  5                                                     5 
  6 /*                                                  6 /*
  7  * These are the fs-independent mount-flags: u      7  * These are the fs-independent mount-flags: up to 32 flags are supported
  8  *                                                  8  *
  9  * Usage of these is restricted within the ker      9  * Usage of these is restricted within the kernel to core mount(2) code and
 10  * callers of sys_mount() only.  Filesystems s     10  * callers of sys_mount() only.  Filesystems should be using the SB_*
 11  * equivalent instead.                             11  * equivalent instead.
 12  */                                                12  */
 13 #define MS_RDONLY        1      /* Mount read-     13 #define MS_RDONLY        1      /* Mount read-only */
 14 #define MS_NOSUID        2      /* Ignore suid     14 #define MS_NOSUID        2      /* Ignore suid and sgid bits */
 15 #define MS_NODEV         4      /* Disallow ac     15 #define MS_NODEV         4      /* Disallow access to device special files */
 16 #define MS_NOEXEC        8      /* Disallow pr     16 #define MS_NOEXEC        8      /* Disallow program execution */
 17 #define MS_SYNCHRONOUS  16      /* Writes are      17 #define MS_SYNCHRONOUS  16      /* Writes are synced at once */
 18 #define MS_REMOUNT      32      /* Alter flags     18 #define MS_REMOUNT      32      /* Alter flags of a mounted FS */
 19 #define MS_MANDLOCK     64      /* Allow manda     19 #define MS_MANDLOCK     64      /* Allow mandatory locks on an FS */
 20 #define MS_DIRSYNC      128     /* Directory m     20 #define MS_DIRSYNC      128     /* Directory modifications are synchronous */
 21 #define MS_NOSYMFOLLOW  256     /* Do not foll     21 #define MS_NOSYMFOLLOW  256     /* Do not follow symlinks */
 22 #define MS_NOATIME      1024    /* Do not upda     22 #define MS_NOATIME      1024    /* Do not update access times. */
 23 #define MS_NODIRATIME   2048    /* Do not upda     23 #define MS_NODIRATIME   2048    /* Do not update directory access times */
 24 #define MS_BIND         4096                       24 #define MS_BIND         4096
 25 #define MS_MOVE         8192                       25 #define MS_MOVE         8192
 26 #define MS_REC          16384                      26 #define MS_REC          16384
 27 #define MS_VERBOSE      32768   /* War is peac     27 #define MS_VERBOSE      32768   /* War is peace. Verbosity is silence.
 28                                    MS_VERBOSE      28                                    MS_VERBOSE is deprecated. */
 29 #define MS_SILENT       32768                      29 #define MS_SILENT       32768
 30 #define MS_POSIXACL     (1<<16) /* VFS does no     30 #define MS_POSIXACL     (1<<16) /* VFS does not apply the umask */
 31 #define MS_UNBINDABLE   (1<<17) /* change to u     31 #define MS_UNBINDABLE   (1<<17) /* change to unbindable */
 32 #define MS_PRIVATE      (1<<18) /* change to p     32 #define MS_PRIVATE      (1<<18) /* change to private */
 33 #define MS_SLAVE        (1<<19) /* change to s     33 #define MS_SLAVE        (1<<19) /* change to slave */
 34 #define MS_SHARED       (1<<20) /* change to s     34 #define MS_SHARED       (1<<20) /* change to shared */
 35 #define MS_RELATIME     (1<<21) /* Update atim     35 #define MS_RELATIME     (1<<21) /* Update atime relative to mtime/ctime. */
 36 #define MS_KERNMOUNT    (1<<22) /* this is a k     36 #define MS_KERNMOUNT    (1<<22) /* this is a kern_mount call */
 37 #define MS_I_VERSION    (1<<23) /* Update inod     37 #define MS_I_VERSION    (1<<23) /* Update inode I_version field */
 38 #define MS_STRICTATIME  (1<<24) /* Always perf     38 #define MS_STRICTATIME  (1<<24) /* Always perform atime updates */
 39 #define MS_LAZYTIME     (1<<25) /* Update the      39 #define MS_LAZYTIME     (1<<25) /* Update the on-disk [acm]times lazily */
 40                                                    40 
 41 /* These sb flags are internal to the kernel *     41 /* These sb flags are internal to the kernel */
 42 #define MS_SUBMOUNT     (1<<26)                    42 #define MS_SUBMOUNT     (1<<26)
 43 #define MS_NOREMOTELOCK (1<<27)                    43 #define MS_NOREMOTELOCK (1<<27)
 44 #define MS_NOSEC        (1<<28)                    44 #define MS_NOSEC        (1<<28)
 45 #define MS_BORN         (1<<29)                    45 #define MS_BORN         (1<<29)
 46 #define MS_ACTIVE       (1<<30)                    46 #define MS_ACTIVE       (1<<30)
 47 #define MS_NOUSER       (1<<31)                    47 #define MS_NOUSER       (1<<31)
 48                                                    48 
 49 /*                                                 49 /*
 50  * Superblock flags that can be altered by MS_     50  * Superblock flags that can be altered by MS_REMOUNT
 51  */                                                51  */
 52 #define MS_RMT_MASK     (MS_RDONLY|MS_SYNCHRON     52 #define MS_RMT_MASK     (MS_RDONLY|MS_SYNCHRONOUS|MS_MANDLOCK|MS_I_VERSION|\
 53                          MS_LAZYTIME)              53                          MS_LAZYTIME)
 54                                                    54 
 55 /*                                                 55 /*
 56  * Old magic mount flag and mask                   56  * Old magic mount flag and mask
 57  */                                                57  */
 58 #define MS_MGC_VAL 0xC0ED0000                      58 #define MS_MGC_VAL 0xC0ED0000
 59 #define MS_MGC_MSK 0xffff0000                      59 #define MS_MGC_MSK 0xffff0000
 60                                                    60 
 61 /*                                                 61 /*
 62  * open_tree() flags.                              62  * open_tree() flags.
 63  */                                                63  */
 64 #define OPEN_TREE_CLONE         1                  64 #define OPEN_TREE_CLONE         1               /* Clone the target tree and attach the clone */
 65 #define OPEN_TREE_CLOEXEC       O_CLOEXEC          65 #define OPEN_TREE_CLOEXEC       O_CLOEXEC       /* Close the file on execve() */
 66                                                    66 
 67 /*                                                 67 /*
 68  * move_mount() flags.                             68  * move_mount() flags.
 69  */                                                69  */
 70 #define MOVE_MOUNT_F_SYMLINKS           0x0000     70 #define MOVE_MOUNT_F_SYMLINKS           0x00000001 /* Follow symlinks on from path */
 71 #define MOVE_MOUNT_F_AUTOMOUNTS         0x0000     71 #define MOVE_MOUNT_F_AUTOMOUNTS         0x00000002 /* Follow automounts on from path */
 72 #define MOVE_MOUNT_F_EMPTY_PATH         0x0000     72 #define MOVE_MOUNT_F_EMPTY_PATH         0x00000004 /* Empty from path permitted */
 73 #define MOVE_MOUNT_T_SYMLINKS           0x0000     73 #define MOVE_MOUNT_T_SYMLINKS           0x00000010 /* Follow symlinks on to path */
 74 #define MOVE_MOUNT_T_AUTOMOUNTS         0x0000     74 #define MOVE_MOUNT_T_AUTOMOUNTS         0x00000020 /* Follow automounts on to path */
 75 #define MOVE_MOUNT_T_EMPTY_PATH         0x0000     75 #define MOVE_MOUNT_T_EMPTY_PATH         0x00000040 /* Empty to path permitted */
 76 #define MOVE_MOUNT_SET_GROUP            0x0000     76 #define MOVE_MOUNT_SET_GROUP            0x00000100 /* Set sharing group instead */
 77 #define MOVE_MOUNT_BENEATH              0x0000 !!  77 #define MOVE_MOUNT__MASK                0x00000177
 78 #define MOVE_MOUNT__MASK                0x0000 << 
 79                                                    78 
 80 /*                                                 79 /*
 81  * fsopen() flags.                                 80  * fsopen() flags.
 82  */                                                81  */
 83 #define FSOPEN_CLOEXEC          0x00000001         82 #define FSOPEN_CLOEXEC          0x00000001
 84                                                    83 
 85 /*                                                 84 /*
 86  * fspick() flags.                                 85  * fspick() flags.
 87  */                                                86  */
 88 #define FSPICK_CLOEXEC          0x00000001         87 #define FSPICK_CLOEXEC          0x00000001
 89 #define FSPICK_SYMLINK_NOFOLLOW 0x00000002         88 #define FSPICK_SYMLINK_NOFOLLOW 0x00000002
 90 #define FSPICK_NO_AUTOMOUNT     0x00000004         89 #define FSPICK_NO_AUTOMOUNT     0x00000004
 91 #define FSPICK_EMPTY_PATH       0x00000008         90 #define FSPICK_EMPTY_PATH       0x00000008
 92                                                    91 
 93 /*                                                 92 /*
 94  * The type of fsconfig() call made.               93  * The type of fsconfig() call made.
 95  */                                                94  */
 96 enum fsconfig_command {                            95 enum fsconfig_command {
 97         FSCONFIG_SET_FLAG       = 0,    /* Set     96         FSCONFIG_SET_FLAG       = 0,    /* Set parameter, supplying no value */
 98         FSCONFIG_SET_STRING     = 1,    /* Set     97         FSCONFIG_SET_STRING     = 1,    /* Set parameter, supplying a string value */
 99         FSCONFIG_SET_BINARY     = 2,    /* Set     98         FSCONFIG_SET_BINARY     = 2,    /* Set parameter, supplying a binary blob value */
100         FSCONFIG_SET_PATH       = 3,    /* Set     99         FSCONFIG_SET_PATH       = 3,    /* Set parameter, supplying an object by path */
101         FSCONFIG_SET_PATH_EMPTY = 4,    /* Set    100         FSCONFIG_SET_PATH_EMPTY = 4,    /* Set parameter, supplying an object by (empty) path */
102         FSCONFIG_SET_FD         = 5,    /* Set    101         FSCONFIG_SET_FD         = 5,    /* Set parameter, supplying an object by fd */
103         FSCONFIG_CMD_CREATE     = 6,    /* Cre !! 102         FSCONFIG_CMD_CREATE     = 6,    /* Invoke superblock creation */
104         FSCONFIG_CMD_RECONFIGURE = 7,   /* Inv    103         FSCONFIG_CMD_RECONFIGURE = 7,   /* Invoke superblock reconfiguration */
105         FSCONFIG_CMD_CREATE_EXCL = 8,   /* Cre << 
106 };                                                104 };
107                                                   105 
108 /*                                                106 /*
109  * fsmount() flags.                               107  * fsmount() flags.
110  */                                               108  */
111 #define FSMOUNT_CLOEXEC         0x00000001        109 #define FSMOUNT_CLOEXEC         0x00000001
112                                                   110 
113 /*                                                111 /*
114  * Mount attributes.                              112  * Mount attributes.
115  */                                               113  */
116 #define MOUNT_ATTR_RDONLY       0x00000001 /*     114 #define MOUNT_ATTR_RDONLY       0x00000001 /* Mount read-only */
117 #define MOUNT_ATTR_NOSUID       0x00000002 /*     115 #define MOUNT_ATTR_NOSUID       0x00000002 /* Ignore suid and sgid bits */
118 #define MOUNT_ATTR_NODEV        0x00000004 /*     116 #define MOUNT_ATTR_NODEV        0x00000004 /* Disallow access to device special files */
119 #define MOUNT_ATTR_NOEXEC       0x00000008 /*     117 #define MOUNT_ATTR_NOEXEC       0x00000008 /* Disallow program execution */
120 #define MOUNT_ATTR__ATIME       0x00000070 /*     118 #define MOUNT_ATTR__ATIME       0x00000070 /* Setting on how atime should be updated */
121 #define MOUNT_ATTR_RELATIME     0x00000000 /*     119 #define MOUNT_ATTR_RELATIME     0x00000000 /* - Update atime relative to mtime/ctime. */
122 #define MOUNT_ATTR_NOATIME      0x00000010 /*     120 #define MOUNT_ATTR_NOATIME      0x00000010 /* - Do not update access times. */
123 #define MOUNT_ATTR_STRICTATIME  0x00000020 /*     121 #define MOUNT_ATTR_STRICTATIME  0x00000020 /* - Always perform atime updates */
124 #define MOUNT_ATTR_NODIRATIME   0x00000080 /*     122 #define MOUNT_ATTR_NODIRATIME   0x00000080 /* Do not update directory access times */
125 #define MOUNT_ATTR_IDMAP        0x00100000 /*     123 #define MOUNT_ATTR_IDMAP        0x00100000 /* Idmap mount to @userns_fd in struct mount_attr. */
126 #define MOUNT_ATTR_NOSYMFOLLOW  0x00200000 /*     124 #define MOUNT_ATTR_NOSYMFOLLOW  0x00200000 /* Do not follow symlinks */
127                                                   125 
128 /*                                                126 /*
129  * mount_setattr()                                127  * mount_setattr()
130  */                                               128  */
131 struct mount_attr {                               129 struct mount_attr {
132         __u64 attr_set;                           130         __u64 attr_set;
133         __u64 attr_clr;                           131         __u64 attr_clr;
134         __u64 propagation;                        132         __u64 propagation;
135         __u64 userns_fd;                          133         __u64 userns_fd;
136 };                                                134 };
137                                                   135 
138 /* List of all mount_attr versions. */            136 /* List of all mount_attr versions. */
139 #define MOUNT_ATTR_SIZE_VER0    32 /* sizeof f    137 #define MOUNT_ATTR_SIZE_VER0    32 /* sizeof first published struct */
140                                                << 
141                                                << 
142 /*                                             << 
143  * Structure for getting mount/superblock/file << 
144  *                                             << 
145  * The interface is similar to statx(2): indiv << 
146  * selected with the @mask argument of statmou << 
147  * field according to the supported fields.    << 
148  *                                             << 
149  * If string fields are selected, then the cal << 
150  * has space after the fixed part of the struc << 
151  * copied there and offsets relative to @str a << 
152  * If the buffer is too small, then EOVERFLOW  << 
153  * size is returned in @size.                  << 
154  */                                            << 
155 struct statmount {                             << 
156         __u32 size;             /* Total size, << 
157         __u32 mnt_opts;         /* [str] Mount << 
158         __u64 mask;             /* What result << 
159         __u32 sb_dev_major;     /* Device ID * << 
160         __u32 sb_dev_minor;                    << 
161         __u64 sb_magic;         /* ..._SUPER_M << 
162         __u32 sb_flags;         /* SB_{RDONLY, << 
163         __u32 fs_type;          /* [str] Files << 
164         __u64 mnt_id;           /* Unique ID o << 
165         __u64 mnt_parent_id;    /* Unique ID o << 
166         __u32 mnt_id_old;       /* Reused IDs  << 
167         __u32 mnt_parent_id_old;               << 
168         __u64 mnt_attr;         /* MOUNT_ATTR_ << 
169         __u64 mnt_propagation;  /* MS_{SHARED, << 
170         __u64 mnt_peer_group;   /* ID of share << 
171         __u64 mnt_master;       /* Mount recei << 
172         __u64 propagate_from;   /* Propagation << 
173         __u32 mnt_root;         /* [str] Root  << 
174         __u32 mnt_point;        /* [str] Mount << 
175         __u64 mnt_ns_id;        /* ID of the m << 
176         __u64 __spare2[49];                    << 
177         char str[];             /* Variable si << 
178 };                                             << 
179                                                << 
180 /*                                             << 
181  * Structure for passing mount ID and miscella << 
182  * and listmount(2).                           << 
183  *                                             << 
184  * For statmount(2) @param represents the requ << 
185  * For listmount(2) @param represents the last << 
186  */                                            << 
187 struct mnt_id_req {                            << 
188         __u32 size;                            << 
189         __u32 spare;                           << 
190         __u64 mnt_id;                          << 
191         __u64 param;                           << 
192         __u64 mnt_ns_id;                       << 
193 };                                             << 
194                                                << 
195 /* List of all mnt_id_req versions. */         << 
196 #define MNT_ID_REQ_SIZE_VER0    24 /* sizeof f << 
197 #define MNT_ID_REQ_SIZE_VER1    32 /* sizeof s << 
198                                                << 
199 /*                                             << 
200  * @mask bits for statmount(2)                 << 
201  */                                            << 
202 #define STATMOUNT_SB_BASIC              0x0000 << 
203 #define STATMOUNT_MNT_BASIC             0x0000 << 
204 #define STATMOUNT_PROPAGATE_FROM        0x0000 << 
205 #define STATMOUNT_MNT_ROOT              0x0000 << 
206 #define STATMOUNT_MNT_POINT             0x0000 << 
207 #define STATMOUNT_FS_TYPE               0x0000 << 
208 #define STATMOUNT_MNT_NS_ID             0x0000 << 
209 #define STATMOUNT_MNT_OPTS              0x0000 << 
210                                                << 
211 /*                                             << 
212  * Special @mnt_id values that can be passed t << 
213  */                                            << 
214 #define LSMT_ROOT               0xffffffffffff << 
215 #define LISTMOUNT_REVERSE       (1 << 0) /* Li << 
216                                                   138 
217 #endif /* _UAPI_LINUX_MOUNT_H */                  139 #endif /* _UAPI_LINUX_MOUNT_H */
218                                                   140 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php