mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-18 06:03:42 +03:00
parent
a420d71793
commit
0764e3a327
@ -462,22 +462,58 @@ struct mount_attr {
|
|||||||
struct mount_attr;
|
struct mount_attr;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef MOUNT_ATTR_RDONLY
|
||||||
|
#define MOUNT_ATTR_RDONLY 0x00000001 /* Mount read-only */
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef MOUNT_ATTR_NOSUID
|
||||||
|
#define MOUNT_ATTR_NOSUID 0x00000002 /* Ignore suid and sgid bits */
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef MOUNT_ATTR_NODEV
|
||||||
|
#define MOUNT_ATTR_NODEV 0x00000004 /* Disallow access to device special files */
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef MOUNT_ATTR_NOEXEC
|
||||||
|
#define MOUNT_ATTR_NOEXEC 0x00000008 /* Disallow program execution */
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef MOUNT_ATTR__ATIME
|
||||||
|
#define MOUNT_ATTR__ATIME 0x00000070 /* Setting on how atime should be updated */
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef MOUNT_ATTR_RELATIME
|
||||||
|
#define MOUNT_ATTR_RELATIME 0x00000000 /* - Update atime relative to mtime/ctime. */
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef MOUNT_ATTR_NOATIME
|
||||||
|
#define MOUNT_ATTR_NOATIME 0x00000010 /* - Do not update access times. */
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef MOUNT_ATTR_STRICTATIME
|
||||||
|
#define MOUNT_ATTR_STRICTATIME 0x00000020 /* - Always perform atime updates */
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef MOUNT_ATTR_NODIRATIME
|
||||||
|
#define MOUNT_ATTR_NODIRATIME 0x00000080 /* Do not update directory access times */
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef MOUNT_ATTR_IDMAP
|
#ifndef MOUNT_ATTR_IDMAP
|
||||||
#define MOUNT_ATTR_IDMAP 0x00100000
|
#define MOUNT_ATTR_IDMAP 0x00100000 /* Idmap mount to @userns_fd in struct mount_attr. */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef MOUNT_ATTR_NOSYMFOLLOW
|
#ifndef MOUNT_ATTR_NOSYMFOLLOW
|
||||||
#define MOUNT_ATTR_NOSYMFOLLOW 0x00200000
|
#define MOUNT_ATTR_NOSYMFOLLOW 0x00200000 /* Do not follow symlinks */
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef MOUNT_ATTR_SIZE_VER0
|
||||||
|
#define MOUNT_ATTR_SIZE_VER0 32 /* sizeof first published struct */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef AT_RECURSIVE
|
#ifndef AT_RECURSIVE
|
||||||
#define AT_RECURSIVE 0x8000
|
#define AT_RECURSIVE 0x8000
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef MOUNT_ATTR_SIZE_VER0
|
|
||||||
#define MOUNT_ATTR_SIZE_VER0 32
|
|
||||||
#endif
|
|
||||||
|
|
||||||
static inline int missing_mount_setattr(
|
static inline int missing_mount_setattr(
|
||||||
int dfd,
|
int dfd,
|
||||||
const char *path,
|
const char *path,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user